Swiftpack.co - audente/swift-utils as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by audente.
audente/swift-utils 0.1.0
Personal utils
⭐️ 0
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/audente/swift-utils.git", from: "0.1.0")


Personal library.

View with integrated networking

NetworkView<NetworkViewResult, RequestBody>(
    networkManager: NetworkManagerProtocol, 
    service: ["service":name, "id": additionalOptionalArgs], 
    title: ViewTitle

NetworkProgressView offers a similar functionality with callbacks.

Sample services code:

        let serviceID = service["service"]!
        switch serviceID {
        case "song":
            let artist = service["artist"]!
            return URLRequest(url: URL(string: "https://itunes.apple.com/search?term=\(artist)&entity=song")!)
        case "ping":
            let id = service["id"]!
            var request = URLRequest(url: URL(string: "\(baseURL)/api/portal/ping/\(id)")!)
            return request.injectSecurity(key: self.key, claims: self.claims, body: body)
        case "verification":
            let id = service["id"]!
            guard let url = URL(string: "\(baseURL)/api/portal/verification/\(id)") else {
                return nil
            var request = URLRequest(url: url)
            return request.injectSecurity(key: self.key, claims: self.claims, body: body)


KeyChainWrapper Usage based on HacingwithSwift article


Stars: 0
Last commit: 1 year ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Initial Release
1 year ago

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