Swiftpack.co - Swift Packages by henrik-dmg

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

Packages published by henrik-dmg

henrik-dmg/HPOpenWeather 5.0.0
Request OpenWeather data with ease in Swift
⭐️ 20
🕓 2 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Concurrency support
2 years ago
This release adds support for Swift 5.5 new concurrency features as well as some new properties for the weather responses
Version 4.0.0
3 years ago
I've made some breaking changes, so my early Christmas present to you is version 4.0.0. Most notable changes: - Renamed `HPOpenWeather` to `OpenWeather` - Updated some method signatures - greatly simplified decoding of responses which improves readability - expanded documentation - added weather alerts
The Housekeeping Update
3 years ago
Changes in this version: - dependencies were updated, including some fixes to the completion handling of the networking stack - the completion is now called on the correct queue if the weather request could not be constructed
Combine Publishers
3 years ago
This release brings you Combine publishers for weather request and automatic response decoding. Here's an example: ```swift let someCoordinate = CLLocationCoordinate2D(latitude: 42.989, longitude: -25.128) let request = WeatherRequest(coordinate: someCoordinate) let cancellable = request.makePublisher(apiKey: TestSecret.apiKey) ``` `cancellable` will be a publisher of type `AnyPublisher<OpenWeatherRequest.Output, Error>`
Support for custom URLSession
3 years ago
Support for specifying finishing queue
3 years ago
Also refactored towards global settings and not having to set language and API key on every request
Fix init is inaccessible due to internal protection level
3 years ago
This closes #4
4 years ago
4 years ago
4 years ago
iOS macOS watchOS tvOS
henrik-dmg/HPNetwork 4.0.0
A protocol-based networking stack written in Swift
⭐️ 2
🕓 4 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
swift-http-types
1 week ago
## Overview This release migrates a lot of the types to use the `swift-http-types` package by Apple. It brings breaking changes, so new major version. ## Mocking There's a new `NetworkClientProtocol` type that you can schedule network requests on. To mock network requests, you can use `NetworkClientMock` from the new `HPNetworkMock` library. Example usage: ```swift networkClient.mockRequest(ofType: SomeRequest.self) { _ in ReturnTypeOfRequest() // or throw an error } // To remove all mocks networkClient.removeAllMocks() ``` You can also specify whether `NetworkClientMock` should just fall-back to regular networking if there are no mocks configured for the request it's about the execute by using `fallbackToURLSessionIfNoMatchingMock` If you need to go deeper, for example if you don't want to migrate to `NetworkClient`, you can use `URLSessionMock` to use with `URLSession` Example usage of `URLSessionMock`: ```swift lazy var mockedURLSession: URLSession = { let configuration = URLSessionConfiguration.ephemeral configuration.protocolClasses = [URLSessionMock.self] return URLSession(configuration: configuration) }() // ... _ = URLSessionMock.mockRequest(to: url, ignoresQuery: false) { _ in let response = HTTPURLResponse( url: url, statusCode: 200, httpVersion: nil, headerFields: ["Content-Type": ContentType.applicationJSON.rawValue] )! return (someDataYouWant, response) } ``` **Full Changelog**: https://github.com/henrik-dmg/HPNetwork/compare/3.1.2...4.0.0
Throwing URL Construction
3 years ago
This release is not really a v2 release, but it brings breaking changes. The `url: URL?` property on `NetworkRequest` has been removed and replaced by `makeURL() throws -> URL`
Synchronous requests and more
3 years ago
This release brings a couple new features and changes: - you can schedule requests synchronously by calling `scheduleSynchronously(...` on a `Network` instance or directly on your request instance. This will return the result of the request directly instead of a `NetworkTask` - the order of arguments for `URLBuilder` query items has been changed to match that of `URLQueryItem` - you can now opt out of the JSON injection for `DecodableRequest` by providing `injectJSONOnError: Bool`
Some QOL improvements
3 years ago
Not much new in this one, here's an overview: - `musicUserToken` is not an authentication method anymore but rather a static property of `NetworkRequestHeaderField` (`.musicUserToken(userToken)`) - the method `urlRequest() -> URLRequest` on `NetworkRequest` is now private (this wasn't meant to be configurable anyways) - you can now schedule a request directly by passing a `Network` instance to it, like this for example: ```swift // ... request.schedule { result in // Handle result } ```
Ability to supply custom URLSession
3 years ago
You are now required to supply a `URLSession` object to any type that conforms to `NetworkRequest` - the built in `DecodableRequest` and `ImageDownloadRequest` already support this in their initialiser
Support for specifying finishing queue
3 years ago
4 years ago
4 years ago
4 years ago
iOS macOS watchOS tvOS
henrik-dmg/HPImageResizer 1.0.0
A light-weight Swift package to resize images with ease on iOS and macOS
⭐️ 1
🕓 3 years ago
iOS macOS
henrik-dmg/CLIFoundation 0.8.0
A collection of helper methods and types to make creating CLI in Swift a breeze.
⭐️ 0
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
CommandBuilder API
2 years ago
With Swift 5.4, we finally got `@resultBuilder` so now there's a new `CommandBuilder` to make construction commands even easier. You can use it like this: ```swift let command = Command("jazzy") { Argument("some-argument") Option("theme", value: "full-width") if someCondition { Flag("verbose") } } ``` As you might have noticed though, `ShellCommand` has been renamed to `Command`
4 years ago
4 years ago
4 years ago
4 years ago
henrik-dmg/HPURLBuilder 1.1.0
A Swift library to construct URLs in a SwiftUI-like style
⭐️ 0
🕓 2 years ago
henrik-dmg/HPLayout 2.0.1
A simple layout DSL to make your Autolayout life a little easier
⭐️ 0
🕓 2 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Initial Release
3 years ago
iOS macOS watchOS tvOS
henrik-dmg/HPKeychain 0.0.1
A lightweight Swift library for convenient keychain access
⭐️ 0
🕓 2 years ago
iOS macOS watchOS tvOS
henrik-dmg/AboutUI 0.0.2
Build a beautiful "About" section in SwiftUI with ease
⭐️ 0
🕓 2 years ago
iOS macOS
henrik-dmg/HPDarkSky 1.2.0
Swift library to communicate with the DarkSky weather API
⭐️ 0
🕓 4 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Added back SPM product
4 years ago
Added system icons for alert severity
4 years ago
Fully documented package, added type alias for response
4 years ago
Fixed Date Decoding bug
4 years ago
This release fixes a bug where the date objects were not correctly decoded when parsing the JSON response
Initial Release
4 years ago
Releasing first alpha
4 years ago
iOS macOS watchOS tvOS
henrik-dmg/HPStorage 1.0.0
Read and write Codable types from and to disk with ease
⭐️ 0
🕓 2 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Initial Release
2 years ago
henrik-dmg/FirebaseREST 0.0.6
A Swift wrapper for the Firebase REST API
⭐️ 0
🕓 2 years ago
iOS macOS watchOS tvOS

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