You can achieve this by using a VStack and a Spacer, but you also have to constrain the RealityView's frame as it has a higher priority than the Spacer does.
var body: some View {
VStack {
Spacer()
RealityView { content in
if let scene = try? await Entity(named: "Volume", in: realityKitContentBundle) {
content.add(scene)
bookEntity = scene.findEntity(named: "Book")
crossEntity = scene.findEntity(named: "Cross")
}
}
.toolbar {
if (isShowToolbar) {
ToolbarItemGroup(placement: .bottomOrnament) {
Text("The toolbar is shown")
}
}
}
.gesture(tapGesture())
.frame(height: 150)
}
}