Davide De Rosa
dbc007b184
Restore .navigation for SettingsMenu
2022-04-19 23:20:04 +02:00
Davide De Rosa
5b2ccaa110
Reposition Organizer toolbar
2022-04-19 23:02:19 +02:00
Davide De Rosa
3c2480d3b7
Rewrite ProfilesList without ReloadingContent
...
Make sure to update localHeaders contextually with
removeProfiles() to avoid a second update in onChange(). The
equality check in onChange() guards against setting localHeaders
twice.
Not doing so may break animation in swipe-to-delete due to the
overlapping animations (it certainly does break on iOS 14).
2022-04-19 22:47:06 +02:00
Davide De Rosa
17a383bc9c
Redo ReloadingContent with @ObservedObject
...
Proper way to listen to changes in elements is observing their
parent.
2022-04-19 21:22:13 +02:00
Davide De Rosa
923ea923ab
Fix active profile not preselected on launch
...
Function called multiple times sets isFirstLaunch to true even if
not active profile.
2022-04-19 21:19:43 +02:00
Davide De Rosa
18e9f7cbb5
Clear profile selection if current profile removed
...
Do it before ForEach rearranges NavigationLink elements, because
it may trigger undesired navigation to a deleted profile.
Restore related assertion.
2022-04-19 21:19:43 +02:00
Davide De Rosa
7128352a9c
Fix settings menu not shown on iOS 14
...
Change to .navigation placement.
2022-04-19 21:19:43 +02:00
Davide De Rosa
bf65f76401
Merge project into iOS + macOS
...
Share views with both platforms initially. Will split specific
views step by step.
2022-04-19 16:14:23 +02:00