BTW, I can put a toolbar at the bottom of the window, but it isn't separated a fixed distance from the window like Safari's is.
From my reading of Apple's HIG on toolbars, this is the proper place to put toolbar items in visionOS.
Should I go with this design (which looks like Apple HIG's preferred design) as opposed to following Safari's design?
struct ContentView: View {
var body: some View {
Text("This is some text")
.toolbar {
// .bottomOrnament only placement that works
ToolbarItemGroup(placement: .bottomOrnament) {
Button("Hello") {
print("World")
}
Button("Goodbye") {
print("cruel world")
}
}
}
}
}
Topic:
Spatial Computing
SubTopic:
General
Tags: