Thank you for replying.
Yes, the following code does indeed work.
.toolbar {
#if os(iOS)
ToolbarItem(placement: ToolbarItemPlacement.navigationBarLeading) {
EditButton()
}
#endif
ToolbarItem(placement: ToolbarItemPlacement.navigationBarTrailing) {
Button("Add", action: makeSandwich)
}
}
The demo was presented without the ToolbarItem wrappers and the demo worked beautifully and with the iOS qualifiers as well.
The documentation link is very welcome.
You are right to mention the cross platform facet as the demo is billed as a cross platform app and I was probably panicking a little over my beloved .navigationBarItems modifier.
Post
Replies
Boosts
Views
Activity
I just downloaded and resized some images from the internet. Some people have shared GitHub repo links in this forum for their coding attempts, but I haven't tried any of those.
The following replies is pretty useful though:
I found the answer here https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/ So if your images are within the 1x (100px by 100px), 2x (200px by 200px), and 3x (300px by 300px) restraints, they will be resized appropriately by the system. Pretty cool.
I found my own image resources and have started a project on GitHub https://github.com/davidakoontz/Sandwichs-iOS14-WWDC-Tutorial
Good luck with it.
Ensure that "Include Configuration Intent" is unticked, AND, ensure that the "Project" and "Embed in Application" drop-downs are both set to Emoji Rangers.