SwiftUIKit contains additional functionality for SwiftUI.

What's New


This version adds a UrlOpener, as well as new extensions:

  • EdgeInsets+Edge simplifies getting the inset for a certain edge.
  • View+Screenshot can be used to snapshot any SwiftUI view.
  • View+Visible has conditional extensions to hide or show a view.

Version Swift UI Swift 5.2 License Twitter: @danielsaidi

About SwiftUIKit

SwiftUIKit adds functionality to SwiftUI, both things that most probably will be part of the SwiftUI in the next upcoming versions, as well as custom useful functionality.

You can read more about the different parts of SwiftUIKit in separate readmes:

As things that exist in this library are added to SwiftUI, the corresponding functionality in this library will be deprecated and refer to those new features.

Demo App

This project contains a demo app that shows all available system blur styles. To run the demo app, just open and run the SwiftUIKit.xcodeproj project.


Swift Package Manager



pod DSSwiftUIKit

Note that you have to import SwiftUIKit with import DSSwiftUIKit if you add it with CocoaPods. The name SwiftUIKit was (not surprising) already taken.

Why a big "Kit"?

Having a big "kit" is a bad idea, since it may become too generic and hard to overview. For instance, if I want a SwiftUI toast, I'm not going to dig around in SwiftUIKit for one, but rather use the best single-purpose toast library.

The GitHub stars confirm this as well. Many years ago, I started putting reusable iOS functionality into a library I call iExtra. I think it's an amazing library and I use it in most of my apps. To this day, it has 12 stars.

However, each project comes with overhead. If I decided to create a new library for each little thing I make, I'd spend a lot of time setting up each new project. There are funny names to come up with, icons and logos to be made, maintenance etc.

SO instead of honoring every little idea with a new library, I'm going to put most here until they are either too large or too good to be a part of this library. When that happens, they'll break out of their little cage and move into a library of their own.

Contact me

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


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


  • Swift Tools 5.2.0


  • None
Last updated: Thu Oct 29 2020 20:29:39 GMT-0500 (GMT-05:00)