Post

Replies

Boosts

Views

Activity

Change the Navigation Bar color of each screen on SwiftUI.
I am creating an app that uses ARKit. I set it to display the AR screen by navigating with NavigationLink, but when the device is sideways, it does not become full screen due to the status bar. But if set in init() { } they will break the navigationview's initial screen. If you hide the NavigationBar, you cannot return to the original screen. Please tell me how to make the Navigation Bar transparent only on some screens.
0
0
731
Aug ’20
WidgetKit blur
The iOS 14 battery widget has blur. But if you implement them yourself in WidgetKit, you'll get 🚫 on a yellow background. How should I implement it? struct VisualEffectView: UIViewRepresentable {     var effect: UIVisualEffect?     func makeUIView(context: UIViewRepresentableContext<Self>) -> UIVisualEffectView { UIVisualEffectView() }     func updateUIView(_ uiView: UIVisualEffectView, context: UIViewRepresentableContext<Self>) { uiView.effect = effect } } struct BackgroundSunView : View {     var body: some View {         VisualEffectView(effect: UIBlurEffect(style: .dark))                        .edgesIgnoringSafeArea(.all)     } } struct WidgetKitEntryView : View {     var body: some View {         ZStack {             BackgroundSunView()             VStack {                 Text("Hello")             }         }     } }
7
0
4.5k
Jul ’20
Standard code gives an error
I chose to use the standard code created by selecting "Augmented Reality App" in Xcode and using it.But I get the error Use of unresolved identifier 'Experience'How can I solve this?ARView.swiftimport SwiftUI import RealityKit struct ARViewContainer: UIViewRepresentable { func makeUIView(context: Context) -> ARView { let arView = ARView(frame: .zero) // Load the "Box" scene from the "Experience" Reality File let boxAnchor = try! Experience.loadBox() // Add the box anchor to the scene arView.scene.anchors.append(boxAnchor) return arView } func updateUIView(_ uiView: ARView, context: Context) {} }ARKitView.swiftimport SwiftUI struct ARKitView: View { var body: some View { return ARViewContainer().edgesIgnoringSafeArea(.all) } } struct ARKitView_Previews: PreviewProvider { static var previews: some View { ARKitView() } }Experience.rcproject「Box」Seen
3
0
2.4k
Apr ’20
Apple product icons for use within the app
When incorporating Apple product icons into the app, use genuine icons because their own images are prohibited, but they cannot be found in SF Symbols.You can find the same icon in "Apple Product Compatibility Icons", but using it incorrectly is prohibited.What should I do when using these icons?* Use translation
1
0
476
Apr ’20