0xwdg/swiftextras
SwiftExtras is a Swift Package containing Extensions and Helpers for Swift which I use on a regular basis, or find useful.
Requirements
- Swift 5.9+ (Xcode 15+)
- iOS 16+, macOS 13+, tvOS 16+, watchOS 9+
Installation (Pakage.swift)
dependencies: [
.package(url: "https://github.com/0xWDG/SwiftExtras.git", branch: "main"),
],
targets: [
.target(name: "MyTarget", dependencies: [
.product(name: "SwiftExtras", package: "SwiftExtras"),
]),
]Installation (Xcode)
- In Xcode, open your project and navigate to File β Swift Packages β Add Package Dependency...
- Paste the repository URL (
https://github.com/0xWDG/SwiftExtras) and click Next. - Click Finish.
Update Screenshots
swift run SwiftExtrasScreenshots
Custom Views (+ Screenshots)
The screenshot assets are shared with the DocC catalog and can be refreshed with the command above.
| View | Screenshot | | --- | --- | | CardView | [CardView screenshot] | | CarouselView | [CarouselView screenshot] | | ConfirmationButton | [ConfirmationButton screenshot] | | DisclosureSection | [DisclosureSection screenshot] | | HorizontalStepper | [HorizontalStepper screenshot] | | IndexedList | [IndexedList screenshot] | | LabeledTextField | [LabeledTextField screenshot] | | LimitedTextField | [LimitedTextField screenshot] | | MonthYearPickerView | [MonthYearPickerView screenshot] | | MultiSelectPickerView | [MultiSelectPickerView screenshot] | | MultiSelectView | [MultiSelectView screenshot] | | NotificationView | [NotificationView screenshot] | | SEAcknowledgementView | [SEAcknowledgementView screenshot] | | SEChangeLogView | [SEChangeLogView screenshot] | | SplitActionButton | [SplitActionButton screenshot] | | WStack | [WStack screenshot] |
Contact
π¦ @0xWDG π mastodon.social/@0xWDG π¦ @0xWDG π§΅ @0xWDG π wesleydegroot.nl π€ Discord
Interested learning more about Swift? Check out my blog.
Package Metadata
Repository: 0xwdg/swiftextras
Default branch: main
README: README.md