Relative Content

Tag Archive for swiftuiswiftui-tabview

SwiftUI textfields reset on app backgrounded

I have a tab-based SwiftUI app that uses .sheet() to present a View that contains email and passwords fields. If I type into those fields then background and foreground the app, the fields are cleared, which makes it impossible to use a password manager. If instead, the view is inlined within the .sheet()‘s content, the fields are not cleared.

Delay in highlighting accent color of an icon in a TabView

I have a TabView with 2 items in it. First item has a toolbar with button inside it. Whenever this button is tapped, it opens a sheet modal. Whenever I drag this sheet modal to dismiss it, the heart icon experiences lag in reflecting that its the highlighted tab.