Would you be able to provide a sample of your code? I just created a new Xcode project, matching your noted configuration (File -> New Project -> Augmented Reality App, choosing RealityKit as the content technology, SwiftUI as the interface, and Swift as the language), and launched on an iPhone 11 Pro Max, as well as an 11" iPad Pro, 2nd Generation. On both devices, the AR view was full-screen and did not show any borders on the top or bottom.
For posterity, this is the code Xcode automatically generated for my
ContentView;
Code Block import SwiftUI |
import RealityKit |
|
struct ContentView : View { |
var body: some View { |
return ARViewContainer().edgesIgnoringSafeArea(.all) |
} |
} |
|
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) {} |
} |
|
#if DEBUG |
struct ContentView_Previews : PreviewProvider { |
static var previews: some View { |
ContentView() |
} |
} |
#endif |