SANDWICH APP ISSUES
Add & Edit button appear on bottom bar. FIX = code below
Preview perfectly works, but when i run it on the Simulator it reads 0 sandwiches.
Zoom animations don’t work when there are more than 1 preview (ContentView). FIX = comment out extra windows
“Add” button disappears.
“<Sandwiches” back button only works for sandwich titles less than 10 letters. all other either read “<Back” or “<“
“flame.fill” icon not vertically aligning with text.
.navigationTitle("Sandwiches")
.toolbar {
ToolbarItem(placement: .navigationBarLeading){
Button("Add", action: makeSandwich)
}
#if os(iOS)
ToolbarItem(placement: .navigationBarTrailing){
EditButton()
}
#endif
}
Post
Replies
Boosts
Views
Activity
:: the same problem with the "Add" button disappearing after you tap it or the Edit button.
:: the zoom animations don't work if you have more than 1 preview window. fix = comment out the extra ContentView lines.
:: the Back (previous window) button changes from : <Sandwiches (only appears for sandwich[0]&[1] )
<Back
<
.navigationTitle("Sandwiches")
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Button("Add", action: makeSandwich)
}
#if os(iOS)
ToolbarItem(placement: .navigationBarTrailing) {
EditButton()
}
#endif
}