How do I place a button in the status bar like in the Photos app?
I dare say Apple would have placed it without using ignoresSafeArea.
I did something similar with the code below.
VStack {
HStack {
Button(action: addItem) {
Label("Add Item", systemImage: "plus")
}.padding([.top, .leading], 25)
Spacer()
}.ignoresSafeArea()
Node()
}
My code
New contributor
kiki-Development is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.