Skip to content

Commit 0f9c299

Browse files
committed
Fix animationsDisabled
1 parent 1f5ee1e commit 0f9c299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/OpenSwiftUICore/Graph/GraphInputs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public struct _GraphInputs {
144144

145145
package var animationsDisabled: Bool {
146146
get { options.contains(.animationsDisabled) }
147-
set { options.formUnion(.animationsDisabled) }
147+
set { options.setValue(newValue, for: .animationsDisabled) }
148148
}
149149

150150
package var needsStableDisplayListIDs: Bool {

Sources/OpenSwiftUICore/View/Input/ViewInputs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public struct _ViewInputs {
2828
set { base.customInputs = newValue }
2929
}
3030

31-
package subscript<T>(input: T.Type) -> T.Value where T : ViewInput {
31+
package subscript<T>(input: T.Type) -> T.Value where T: ViewInput {
3232
get { base[input] }
3333
set { base[input] = newValue }
3434
}
3535

36-
package subscript<T>(input: T.Type) -> T.Value where T : ViewInput, T.Value : GraphReusable {
36+
package subscript<T>(input: T.Type) -> T.Value where T: ViewInput, T.Value: GraphReusable {
3737
get { base[input] }
3838
set { base[input] = newValue }
3939
}

0 commit comments

Comments
 (0)