Repository navigation
Redesign example app in SwiftUI - #2
Merged
Merged
Conversation
Replace the storyboard screens with a single SwiftUI camera screen: - live AVCaptureSession preview on device, animated mesh scene in the Simulator, graceful handling of denied camera access - glass bottom bar with Photo/Video modes, shutter and last-capture thumbnail; recording timer and progress ring with an auto-stop limit - Playground sheet that edits every CameraButton property live and shows copyable Swift code - SwiftUI / UIKit switch: CameraShutterButton vs CameraButton + delegate Project: example target uses a synchronized folder and a generated Info.plist; deployment target iOS 18. New example.gif (4.4 MB, was 5.7). Library: CameraShutterButton gains a `configure` closure for the rest of the CameraButton properties; appearance setters skip unchanged values so repeated SwiftUI updates no longer cancel running animations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1 (
release/1.0.0). Once #1 is merged, GitHub retargets this PR tomaster.Summary
The example app becomes a modern showcase and the source of the README GIF.
AVCaptureSessionpreview on device; animated mesh gradient in the Simulator, so Liquid Glass is visible; a clear state when camera access is deniedCameraButtonproperty, with copyable Swift code for the current setupCameraShutterButtonor throughCameraButtonwithCameraButtonDelegateProject
example.gif: 4.4 MB, previously 5.7 MBLibrary changes (small, additive)
CameraShutterButton(..., configure:)closure to set the remainingCameraButtonproperties from SwiftUITest plan
xcodebuildexample and package for iOS Simulator (Xcode 27.1), no warnings