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.
Post
Replies
Boosts
Views
Activity
For SwiftUI use:
onContinueUserActivity
and for AppDelegate use
application(application: continue: restorationHandler:)
to grab the NSUserActivityTypeLockedCameraCapture userInfo.
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 😅
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
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!
Thank you, I believe that's what I was looking for!
Thank you Greg! Quick test confirmed this solved it 🥳
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