Repository navigation
CameraButton 1.0: Liquid Glass, SwiftUI wrapper and bug fixes - #1
Merged
Merged
Conversation
Fixes: - Build inner shapes from bounds and rebuild them on layout changes - Remove awakeFromNib constraint hack; add 60x60 intrinsic size - Restore photo state on touch up outside; cancel no longer starts recording - Keep model layer values in sync with animations - Center the video stop square - Make a quick photo tap play a full shutter animation New: - Liquid Glass style (iOS 26+) with fallback to classic - Haptic feedback, Reduce Motion support, VoiceOver labels - Recording progress ring - SwiftUI CameraShutterButton wrapper - Liquid Glass demo screen in the example app Chore: iOS 15 minimum in Package.swift, modern CI, .gitignore, README and podspec updated to 1.0.0
Remove RKCameraButton.podspec and CocoaPods install docs; 0.0.4 stays the last published pod. Swift Package Manager is the only supported way.
2 of 4 tasks
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.
Summary
Refresh of the library for iOS 26 / Swift 6: bug fixes, Liquid Glass style and a SwiftUI wrapper. Public API stays source-compatible; all additions are opt-in.
Fixes
boundsand rebuilt on layout changes (previously taken once fromframe, broken with Auto Layout /.zeroinit)awakeFromNibconstraint hack; added a 60×60intrinsicContentSizetouchCancelno longer starts "recording" in video modeisRemovedOnCompletion = false)New
style: .classic / .glass— Liquid Glass viaUIGlassEffecton iOS 26+, falls back to classic on earlier systems and older compilersglassTintColor,isHapticFeedbackEnabled, Reduce Motion support, default VoiceOver labelsrecordingProgress,animateRecordingProgress(duration:),progressColorCameraShutterButton— thin SwiftUI wrapper over the sameCameraButtonChore
Package.swiftminimum iOS 14 → 15 to match podspec and README.gitignore, removed committed.DS_StoreTest plan
xcodebuildfor the SPM package and the example app (iOS Simulator, Xcode 27.1)macos-15runner1.0.0