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.
Post
Replies
Boosts
Views
Activity
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")
}
}
}
}
I am making an app that issues tickets within the app.
How to issue a QR code pass there.
How to create NFC path.
How to authenticate NFC pass.(TouchID or FaceID)
please teach me.
I want to use the Apple product icon in my app. Is it possible to display with SF Symbols etc.?
Is it possible to get it from Apple's homepage and use it?
Is it possible to use the icon I created?
In the app, I set the brand color for the background.
So I want to change the color of the status bar to white, but on other pages I want to be able to change the color automatically.
How can I implement it in SwiftUI?
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
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
I want to define theme colors in SwiftUI.For example, in the default "Watch" app, all letters are orange.Please tell me how to specify the theme color of the application in this way.
I want to drag and drop is AR.How can I drag and drop 3D data with RealityKit and Reality Composer?
iPadOS has Split View and Slide Over.How can I determine them using CSS?