Swiftpack.co -  erd-s/Butter as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Networking Layer Swift Package
.package(url: "https://github.com/erd-s/Butter.git", from: "1.0.7")



A lightweight networking library.


  • Swift 5.2.0
  • Xcode 11.4

Running the Sample

To run the sample change to the ButterSample directory and open ButterSample.xcodeproj. The sample endpoints point to a local server which can be run by following the instructions in ButterLocalServer/README.md.

You can configure the endpoints to point to whatever you'd like, you may need to make changes to how the data is returned in setOutputTextViewText(jsonData:).

Running Tests for Butter

You can either open the sample and use the Butter scheme to run the tests or open the swift package itself and run them directly from there.

Starting the server


Python 3.8 runtime

Install required packages:

pip3 install -r requirements.txt

Start the server:

python3 main.py

Shut down the server:


Changing IP or server Port:

Edit main.py to use the IP and port of your choice, make sure your SampleEndpointA B and C are updated as well.


Stars: 1
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API