iOS 14 requires the scope bar modifier to be on the first subview of
the NavView. This is because a VStack wraps the content.
A bug was that the segmented picker was being overlaid due to the
scope bar modifier having an AppStorage call. The AppStorage call
updated the modifier which for some reason added another HostingView.
I am not sure why this happens, but avoid using AppStorage in the modifier
to make sure this doesn't happen again.
Signed-off-by: kingbri <bdashore3@proton.me>
Introspect now properly updates on every view lifecycle change, so
add a check to a reference on the UIHostingController and see if it
has been instantiated already.
Also clean up view struct names to reflect what is a modifier.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-02-18 11:39:03 -05:00
Renamed from Ferrite/Views/CommonViews/Modifiers/SearchAppearance.swift (Browse further)