/SwiftUI-Examples

Various things built with SwiftUI

Primary LanguageSwiftMIT LicenseMIT

SwiftUI-Examples

Compatible with Swift 5.1 Tested with Xcode 11.2 Tested with iOS 13.2

This is a personal repo for me to post useful or interesting SwiftUI views and extensions I come up with. I'll try to keep things up to date as Swift and SwiftUI continue to evolve, but no promises on timeliness.

I've added a sample Xcode project, but each example is contained within its own folder, and will work if you drag only the contained files into your own project.

Contents

An experimental view to try "flowing" views into multiple rows based on the length of the individual views. Uses GeometryReader and PreferenceKey.

This is, as it sounds, a vertical version of Slider. I made it because I ran into lots of problems trying to rotate SwiftUI's built-in Slider view. It should be feature-equivalent to Slider, with the exception of labels.