mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Use @StateObject for iOS 15+ alert modifier. (#1860)
This commit is contained in:
@@ -40,7 +40,7 @@ extension View {
|
||||
// NB: Workaround for iOS 14 runtime crashes during iOS 15 availability checks.
|
||||
@available(iOS 15, macOS 12, tvOS 15, watchOS 8, *)
|
||||
private struct NewConfirmationDialogModifier<Action>: ViewModifier {
|
||||
@ObservedObject var viewStore: ViewStore<ConfirmationDialogState<Action>?, Action>
|
||||
@StateObject var viewStore: ViewStore<ConfirmationDialogState<Action>?, Action>
|
||||
let dismiss: Action
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
|
||||
Reference in New Issue
Block a user