-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lazar Otasevic
committed
Sep 7, 2024
1 parent
bf33ec4
commit 804d7cc
Showing
7 changed files
with
551 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import SwiftUI | ||
|
||
extension TestElement { | ||
enum Gesture { | ||
typealias _AnyGesture = SameBaseElement<AnyGesture<Never>> | ||
|
||
@available(tvOS, unavailable) | ||
typealias _DragGesture = SameTypeElement<DragGesture> | ||
|
||
typealias _ExclusiveGesture = SameBaseElement<ExclusiveGesture<Never, Never>> | ||
|
||
typealias _GestureStateGesture = SameBaseElement<GestureStateGesture<Never, Never>> | ||
|
||
@available(tvOS 14.0, *) | ||
typealias _LongPressGesture = SameTypeElement<LongPressGesture> | ||
|
||
@available(iOS, introduced: 13.0, deprecated: 100000.0, renamed: "MagnifyGesture") | ||
@available(macOS, introduced: 10.15, deprecated: 100000.0, renamed: "MagnifyGesture") | ||
@available(watchOS, unavailable) | ||
@available(tvOS, unavailable) | ||
@available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "MagnifyGesture") | ||
typealias _MagnificationGesture = SameTypeElement<MagnificationGesture> | ||
|
||
@available(iOS 17.0, macOS 14.0, *) | ||
@available(watchOS, unavailable) | ||
@available(tvOS, unavailable) | ||
typealias _MagnifyGesture = SameTypeElement<MagnifyGesture> | ||
|
||
@available(iOS 17.0, macOS 14.0, *) | ||
@available(watchOS, unavailable) | ||
@available(tvOS, unavailable) | ||
typealias _RotateGesture = SameTypeElement<RotateGesture> | ||
|
||
@available(iOS, introduced: 13.0, deprecated: 100000.0, renamed: "RotateGesture") | ||
@available(macOS, introduced: 10.15, deprecated: 100000.0, renamed: "RotateGesture") | ||
@available(tvOS, unavailable) | ||
@available(watchOS, unavailable) | ||
@available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "RotateGesture") | ||
typealias _RotationGesture = SameTypeElement<RotationGesture> | ||
|
||
typealias _SequenceGesture = SameBaseElement<SequenceGesture<Never, Never>> | ||
|
||
typealias _SimultaneousGesture = SameBaseElement<SimultaneousGesture<Never, Never>> | ||
|
||
#if swift(>=6.0) | ||
@available(iOS 18.0, macOS 15.0, watchOS 11.0, *) | ||
@available(tvOS, unavailable) | ||
typealias _SpatialEventGesture = SameTypeElement<SpatialEventGesture> | ||
#endif | ||
|
||
@available(iOS 16.0, macOS 13.0, watchOS 9.0, *) | ||
@available(tvOS, unavailable) | ||
typealias _SpatialTapGesture = SameTypeElement<SpatialTapGesture> | ||
|
||
@available(tvOS 16.0, *) | ||
typealias _TapGesture = SameTypeElement<TapGesture> | ||
|
||
#if swift(>=6.0) | ||
@available(macOS 15.0, *) | ||
@available(iOS, unavailable) | ||
@available(watchOS, unavailable) | ||
@available(tvOS, unavailable) | ||
@available(visionOS, unavailable) | ||
typealias _WindowDragGesture = SameTypeElement<WindowDragGesture> | ||
#endif | ||
} | ||
} |
Oops, something went wrong.