Post

Replies

Boosts

Views

Activity

Toolbar is appearing at the bottom
I was following along to Introduction to SwiftUI and noticed that the toolbar modifier produced a toolbar visible at the top of the navigation view. When I tried doing this using the same code, the toolbar is appearing at the bottom. The buttons are also presented in the opposite order as the video. .toolbar { #if os(iOS) EditButton() #endif Button("Add", action: makeSandwich) } I was wondering why this is the case?
10
0
5.4k
Jun ’20