Post

Replies

Boosts

Views

Activity

iOS 17 Beta 4 - SwiftUI @State properties reset when app enters the background

From my understanding it is common practice to use @State properties for views such as a boolean used to determine whether or not a view is being shown or a DisclosureGroup is expanded. On iOS 17 Beta 4, I've noticed that when the app enters the background, these properties are reset. This results in views being close, changed values being reset, etc. This does not happen on iOS 16.4/16.5 and below. Is anyone else experiencing this? Should we expect that this is the normal SwiftUI behavior for iOS 17 and prepare for it?
6
0
960
Jul ’23
SwiftUI Buttons in a List do not highlight when tapped
SwiftUI Buttons in a List no longer highlight when tapped. Seems to have stopped highlighting after iOS 16.0 I've only tested on an iPhone/simulators so not sure if iPad has the same issue. The issue has been carried over to iOS 17 Beta 4. My app does not feel Apple like as there is no visual feedback for the user when a button in the list is pressed. Does anyone know why this is occurring? Is this a bug on Apple's end?
4
6
2.5k
Jul ’23