SwiftUIKit

2.7.0

SwiftUIKit contains additional functionality for SwiftUI.
danielsaidi/SwiftUIKit

What's New

2022-06-19T10:32:49Z

New features

  • Color has new hex string- and int-based initializers.
  • ColorRepresentable is a new typealias that bridges NSColor and UIColor.
  • ColorRepresentable has new hex string- and int-based initializers.
  • ErrorAlerter is a new protocol that can be implemented by any type that can alert errors using an AlertContext.
  • ErrorAlertConvertible is a new protocol that can be implemented by any error that can describe itself as an error Alert.
  • FontRepresentable is a new typealias that bridges NSFont and UIFont.
  • Persisted can now be used with SwiftUI and will properly update observing views.

💡 Behavior changes

  • PresentationContext is now open instead of public.
  • DocumentCamera now passes on its actions instead of itself.
  • Unit tests no longer use Quick and Nimble.

🗑 Deprecations

  • DocumentGroupOnboardingScreen has been renamed to DocumentGroupSheet.
  • DocumentGroupOnboardingScreenError has been renamed to DocumentGroupSheetError.
  • DocumentGroupOnboardingScreen presentAsOnboarding has been renamed to presentFromDocumentGroup.
  • ImageResource has been renamed to ImageRepresentable.
  • ShadowStyle has been renamed to ViewShadowStyle to not conflict with the new SwiftUI 4 ShadowStyle that comes in Xcode 14.

SwiftUIKit

Version Swift UI Swift 5.3 MIT License Twitter: @danielsaidi

About SwiftUIKit

SwiftUIKit adds extra functionality to SwiftUI, like extensions to existing types and completely new views, pickers, utilities, services, etc.

You can explore the various sections in the documentation and the demo app.

IMPORTANT Moving to 3.0, many parts will be moved from this library to separate libraries, for instance, functionality that consists of many types (like the list and picker utils) and views that have great value in themselves. This will make the things in this library easier to understand and document since they will require less context and coupling.

Supported Platforms

SwiftUIKit supports iOS 13, macOS 11, tvOS 13 and watchOS 6.

Installation

The best way to add SwiftUIKit to your app is to use the Swift Package Manager.

https://github.com/danielsaidi/SwiftUIKit.git

SwiftUIKit also supports CocoaPods:

pod DSSwiftUIKit

You can also clone the repository and build the library locally.

Documentation

The online documentation contains more information, code examples, etc., and makes it easy to overview the various parts of the library.

The online documentation is currently iOS only. To generate documentation for other platforms, open the package in Xcode, select a simulator then run Product/Build Documentation.

Demo Application

This project contains a demo app that lets you explore SwiftUIKit on iOS and macOS. To run it, just open and run Demo/Demo.xcodeproj.

Support

You can sponsor this project on GitHub Sponsors or get in touch for paid support.

Contact

Feel free to reach out if you have questions or if you want to contribute in any way:

License

SwiftUIKit is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Fri Jul 01 2022 18:36:06 GMT-0500 (GMT-05:00)