NilCoalescing / SwiftUI-Code-Examples

In this repository we are collecting our solutions to interesting SwiftUI problems that we encounter when developing our apps.
MIT License
254 stars 40 forks source link

Fix issue where + New Note button is offscreen #4

Closed khalwat closed 1 year ago

khalwat commented 1 year ago

My son was trying to get your example code to work on the latest XCode / iOS SDK, and we were puzzled by the empty screen that appears by using the code presented here.

It looks like the Spacer() is pushing the button offscreen, so it doesn't appear at all. Removing the line fixes the issue.

nataliapanferova commented 1 year ago

Thank you for the fix!