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 tried to judge iPad OS with JavaScript, but it is recognized as mac OS instead of iPad OS.Please tell me the script that can be recognized as iOS for iOS12 and iPad OS for iPad OS.
I want to drag and drop is AR.How can I drag and drop 3D data with RealityKit and Reality Composer?
When NavigationLink is displayed on iPad OS, it automatically disappears when the iPad is vertical and slidesCan be displayed.However, these are not possible if the iPad is on the side and NavigationLink is fixed.How can I hide NavigationLink so that it can be scrolled even when the iPad is on the side?
I want to use ARKit with NavigationView.I couldn't do it.No error will occur, but the app will stop.Procedure:1.Launch app2.Show AR View3.Return to the first screen4.Open AR View again5.App stopsPlease tell me how to fix it or an alternative.Xcode: 11.2.1 (11B500)iOS: iPadOS13.3 beta3 (Japanese)Device: iPad Pro (11-inch, 2018)I tried two types of code.(oneView is an AR view)Code:import SwiftUI
import RealityKit
struct ContentView: View {
var body: some View {
NavigationView {
List {
VStack {
NavigationLink(destination: oneView()) {
Text("Watch")
}
}.navigationBarTitle("AR")
}
}.navigationViewStyle(StackNavigationViewStyle())
}
}
#if DEBUG
struct ContentView_Previews : PreviewProvider {
static var previews: some View {
ContentView()
}
}
#endifCode:import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
NavigationLink(destination: oneView()) {
Text("Show Next")
}
}
}
}
}
I want to display the Present View in full screen.I was a beginner even if I searched on the Internet.Please tell me the specific code.
I want to use ARKit with NavigationView.However, when the AR is displayed using it, and it returns to Navigation View and redisplays, the app crashes.Please tell me how to fix it or an alternative.
iPadOS has Split View and Slide Over.How can I determine them using CSS?