Post

Replies

Boosts

Views

Activity

Reply to Unable to change TabView's background color
Hello, Yes I tried them all. Most of those answers are about changing the color of the TabView bar, not the background of the TabView. Here is what I tried: Added the following to both init() and .onAppear() let appearance = UITabBarAppearance() appearance.configureWithTransparentBackground() appearance.backgroundColor = .clear UITabBar.appearance().standardAppearance = appearance Background modifier TabView{...}.background(.clear) Toolbar modifier TabView{...}.toolbarBackground(.clear, for: .tabBar) TabView{...}.toolbarBackground(.visible, for: .tabBar) None of the above worked. The background for TabView remained white (or black if the device has Dark Mode enabled). The only thing that allows me to make the background of the TabView clear is if I add this: TabView{...}.tabViewStyle(.page) TabView{...}.indexViewStyle(.page(backgroundDisplayMode: .always)) But this then changes the TabView behavior to a page view. This is with Xcode 16.0, happening both in the Simulator and on device running on iOS 18.1.1.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Reply to Unable to change TabView's background color
Hello, Yes I tried them all. Most of those answers are about changing the color of the TabView bar, not the background of the TabView. Here is what I tried: Added the following to both init() and .onAppear() let appearance = UITabBarAppearance() appearance.configureWithTransparentBackground() appearance.backgroundColor = .clear UITabBar.appearance().standardAppearance = appearance Background modifier TabView{...}.background(.clear) Toolbar modifier TabView{...}.toolbarBackground(.clear, for: .tabBar) TabView{...}.toolbarBackground(.visible, for: .tabBar) None of the above worked. The background for TabView remained white (or black if the device has Dark Mode enabled). The only thing that allows me to make the background of the TabView clear is if I add this: TabView{...}.tabViewStyle(.page) TabView{...}.indexViewStyle(.page(backgroundDisplayMode: .always)) But this then changes the TabView behavior to a page view. This is with Xcode 16.0, happening both in the Simulator and on device running on iOS 18.1.1.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to session.openApplication() -- how to pass data from the extension to the application?
For SwiftUI use: onContinueUserActivity and for AppDelegate use application(application: continue: restorationHandler:) to grab the NSUserActivityTypeLockedCameraCapture userInfo.
Replies
Boosts
Views
Activity
Oct ’24
Reply to dyld[434]: Library not loaded: error when running LockedCameraCapture compatible app on iOS 15
Figured it out: my Capture Extension View (UIViewControllerRepresentable) file had a target membership linked to the main app. Added by accident, removing it was the fix 😅
Replies
Boosts
Views
Activity
Oct ’24
Reply to How to detect when Camera Control button pressed in iPhone 16
Hello, You use AVCaptureEventInteraction to detect when the camera button is pressed: https://developer.apple.com/documentation/AVKit/AVCaptureEventInteraction And this guide shows how to work with camera controls: https://developer.apple.com/documentation/avfoundation/capture_setup/enhancing_your_app_experience_with_the_camera_control
Replies
Boosts
Views
Activity
Oct ’24
Reply to "Terminated due to signal 9" when launching app from camera button (iPhone 16 Pro)
It looks like the app is being kicked out if it doesn't handle AVCaptureEventInteraction. In my app you could previously remap each volume button for specific controls. Since AVCaptureInteraction doesn't distinguish between the buttons, this is definitely a downgrade. Bit of a shame!
Replies
Boosts
Views
Activity
Sep ’24
Reply to Flag to avoid "shared is unavailable in application extensions" error?
Thank you, I believe that's what I was looking for!
Replies
Boosts
Views
Activity
Sep ’24
Reply to Capture Extension Icon
Thank you Greg! Quick test confirmed this solved it 🥳
Replies
Boosts
Views
Activity
Sep ’24
Reply to [Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)
Just want to bump that I am also having trouble with this, all calls to requestGeometryUpdate() are denied. iOS 16 beta 4, iPhone 12 Pro
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’22