Swiftpack.co - Package - perrystreetsoftware/CombineBackgroundUploading

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.


Enable background uploading with URLSession uploadTasks and Combine


This class implements background uploading using URLSession uploadTask using the Combine framework

Why isn't this built in?

See this stack post.

URLSession.DataTaskPublisher is built on top of URLSessionDataTask and sets a completion handler on the task. So you cannot use DataTaskPublisher with a background session.


Parts of this library use MultipartFormData from the Alamofire project.