In swiftui
In ToolbarItem
If you want to set it to the bottom right,
ToolbarItem(placement:.bottomBar)
If so,
It does not appear.
What should I do?
swiftui
It must be declared under NavigationStack.
struct ContentView:View {
varbody:someView {
NavigationStack {
Text ("Hello")
US>.toolbar{
ToolbarItem(placement:.bottomBar){
Button("Button"){}
}
}
}
}
}
© 2024 OneMinuteCode. All rights reserved.