SwiftUI is an amazing tool for building declarative user interfaces. However, it’s still young and lacks built-in ways to do many common things. In this post, we’ll look at a way to read geometry information from any view in a view hierarchy.
SwiftUI and Combine makes it amazingly easy to build apps for watchOS. However, if the app is part of a larger system, you may have to adjust your architecture. In this post, we’ll take a look at the work involved in building BookBeat’s SwiftUI/Combine-based app for Apple Watch.
UIKit view controllers in SwiftUI is trivial, but things become more complicated when a controller communicates back through delegation. Since
SwiftUI views are structs, they therefore can’t be delegates. In this post, we’ll look at one way to solve this.
In this post, we’ll create a package for the Swift Package Manager. The result will be a package that adds more gestures to
SwiftUI. You can find the finished package here.
When you create a Swift Package with the
swift package init command, the generated
.gitignore will exclude all Xcode projects by default. This will cause problems if you later add an Xcode project to your package.