Closed sureshjoshi closed 4 months ago
Closes #230
Uses the solution discovered here to handle the new SwiftUI.ToggleState (instead of Bool) problem: https://github.com/soundcloud/Axt/blob/master/Sources/Axt/Native/Toggle.swift
Essentially, for iOS16+, we use a new ToggleState enum and do some unsafe pointer shenanigans to map the local enum to the SwiftUI internals enum.
Removed the forced skips from the two remaining toggle.
There could be an outstanding question of how we should handle .mixed - but I treat it as a false in this PR.
.mixed
false
That's great, thank you for the PR! This should help many people
Closes #230
Uses the solution discovered here to handle the new SwiftUI.ToggleState (instead of Bool) problem: https://github.com/soundcloud/Axt/blob/master/Sources/Axt/Native/Toggle.swift
Essentially, for iOS16+, we use a new ToggleState enum and do some unsafe pointer shenanigans to map the local enum to the SwiftUI internals enum.
Removed the forced skips from the two remaining toggle.
There could be an outstanding question of how we should handle
.mixed
- but I treat it as afalse
in this PR.