/SwiftUIToolBox

Collection of my SwiftUI experiments and findings

Primary LanguageSwift

SwiftUIToolBox

Collection of my SwiftUI experiments and findings.

Handle Keyboard

Show a way to handle keyboard event with an environment object. Check Responding to Keyboard in SwiftUI for more details.

image

Expandable Cards

Demonstrate simple animation that was hard in UIKit, but quite simple in SwiftUI.

image

Transition Animation

This is a simplified implementation of this dribbble shot.

Demonstrate complex animation can be done in SwiftUI.

image

Audio Equalizer

Set equalizer parameters through a @Binding, control equalizer on the fly in SwiftUI.

Photos and Permission

Demonstrate a method to handle PHAuthorizationStatus

If app is authorized, display photos.

If app has never prompted permission request, prompt it.

Otherwise, show Settings link

image