From bf33ec4cbecb65a696f41a60af4809b9998de19b Mon Sep 17 00:00:00 2001 From: Lazar Otasevic <> Date: Sun, 8 Sep 2024 00:33:09 +0400 Subject: [PATCH] cleanup repo --- apple_view.py => Tools/apple_parser.py | 0 parser2.py => Tools/swiftui_parser.py | 1 - gesture.swift | 67 - parsed.json | 11687 ----------------------- view.swift | 452 - 5 files changed, 12207 deletions(-) rename apple_view.py => Tools/apple_parser.py (100%) rename parser2.py => Tools/swiftui_parser.py (99%) delete mode 100644 gesture.swift delete mode 100644 parsed.json delete mode 100644 view.swift diff --git a/apple_view.py b/Tools/apple_parser.py similarity index 100% rename from apple_view.py rename to Tools/apple_parser.py diff --git a/parser2.py b/Tools/swiftui_parser.py similarity index 99% rename from parser2.py rename to Tools/swiftui_parser.py index 808a17b..4cdede5 100644 --- a/parser2.py +++ b/Tools/swiftui_parser.py @@ -1,7 +1,6 @@ import re import json - def parse_file(input_file): try: output = [] diff --git a/gesture.swift b/gesture.swift deleted file mode 100644 index 87047d6..0000000 --- a/gesture.swift +++ /dev/null @@ -1,67 +0,0 @@ -@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) -typealias _AnyGesture = SameBaseElement> - -@available(iOS 13.0, macOS 10.15, watchOS 6.0, *) -@available(tvOS, unavailable) -typealias _DragGesture = SameTypeElement - -@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) -typealias _ExclusiveGesture = SameBaseElement> - -@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) -typealias _GestureStateGesture = SameBaseElement> - -@available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 14.0, *) -typealias _LongPressGesture = SameTypeElement - -@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 - -@available(iOS 17.0, macOS 14.0, *) -@available(watchOS, unavailable) -@available(tvOS, unavailable) -typealias _MagnifyGesture = SameTypeElement - -@available(iOS 17.0, macOS 14.0, *) -@available(watchOS, unavailable) -@available(tvOS, unavailable) -typealias _RotateGesture = SameTypeElement - -@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 - -@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) -typealias _SequenceGesture = SameBaseElement> - -@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) -typealias _SimultaneousGesture = SameBaseElement> - -#if swift(>=6.0) -@available(visionOS 1.0, iOS 18.0, macOS 15.0, watchOS 11.0, *) -@available(tvOS, unavailable) -typealias _SpatialEventGesture = SameTypeElement -#endif - -@available(iOS 16.0, macOS 13.0, watchOS 9.0, visionOS 1.0, *) -@available(tvOS, unavailable) -typealias _SpatialTapGesture = SameTypeElement - -@available(iOS 13.0, macOS 10.15, tvOS 16.0, watchOS 6.0, *) -typealias _TapGesture = SameTypeElement - -#if swift(>=6.0) -@available(macOS 15.0, *) -@available(iOS, unavailable) -@available(watchOS, unavailable) -@available(tvOS, unavailable) -@available(visionOS, unavailable) -typealias _WindowDragGesture = SameTypeElement -#endif \ No newline at end of file diff --git a/parsed.json b/parsed.json deleted file mode 100644 index 9fab23d..0000000 --- a/parsed.json +++ /dev/null @@ -1,11687 +0,0 @@ -[ - { - "struct": "public struct __DesignTimeSelectionIdentifier : Swift.Hashable {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "__DesignTimeSelectionIdentifier", - "conformances": [ - "Hashable" - ] - }, - { - "struct": "public struct __UniversalListStyle : SwiftUI.ListStyle {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "__UniversalListStyle", - "conformances": [ - "ListStyle" - ] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AccessibilityIgnoresInvertColorsViewModifier {", - "availabilities": [ - "@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)" - ], - "name": "_AccessibilityIgnoresInvertColorsViewModifier", - "conformances": [] - }, - { - "struct": "public struct _AccessibilityQuickActionStyle {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AccessibilityQuickActionStyle", - "conformances": [] - }, - { - "struct": "public struct _AccessibilityRotorEntryInputs {", - "availabilities": [ - "@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)" - ], - "name": "_AccessibilityRotorEntryInputs", - "conformances": [] - }, - { - "struct": "public struct _AccessibilityRotorEntryOutputs {", - "availabilities": [ - "@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)" - ], - "name": "_AccessibilityRotorEntryOutputs", - "conformances": [] - }, - { - "struct": "public struct _AligningContentProvider : SwiftUI._ScrollableContentProvider where Content : SwiftUICore.View {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AligningContentProvider", - "generics": [ - "Content" - ], - "conformances": [ - "_ScrollableContentProvider" - ], - "conditions": { - "Content": [ - "View" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AlignmentLayout {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AlignmentLayout", - "conformances": [] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AlignmentWritingModifier : SwiftUICore.ViewModifier {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AlignmentWritingModifier", - "conformances": [ - "ViewModifier" - ] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AllowsHitTestingModifier : Swift.Equatable {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AllowsHitTestingModifier", - "conformances": [ - "Equatable" - ] - }, - { - "struct": "@frozen public struct _AnchoredShapeStyle : SwiftUICore.ShapeStyle where S : SwiftUICore.ShapeStyle {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AnchoredShapeStyle", - "generics": [ - "S" - ], - "conformances": [ - "ShapeStyle" - ], - "conditions": { - "S": [ - "ShapeStyle" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AnchorTransformModifier : SwiftUICore.ViewModifier where Key : SwiftUICore.PreferenceKey {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AnchorTransformModifier", - "generics": [ - "AnchorValue", - "Key" - ], - "conformances": [ - "ViewModifier" - ], - "conditions": { - "Key": [ - "PreferenceKey" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AnchorWritingModifier : SwiftUICore.ViewModifier where Key : SwiftUICore.PreferenceKey {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AnchorWritingModifier", - "generics": [ - "AnchorValue", - "Key" - ], - "conformances": [ - "ViewModifier" - ], - "conditions": { - "Key": [ - "PreferenceKey" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AnimationModifier : SwiftUICore.ViewModifier where Value : Swift.Equatable {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AnimationModifier", - "generics": [ - "Value" - ], - "conformances": [ - "ViewModifier" - ], - "conditions": { - "Value": [ - "Equatable" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AnimationView : SwiftUICore.View where Content : Swift.Equatable, Content : SwiftUICore.View {", - "availabilities": [ - "@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)" - ], - "name": "_AnimationView", - "generics": [ - "Content" - ], - "conformances": [ - "View" - ], - "conditions": { - "Content": [ - "Equatable", - "View" - ] - } - }, - { - "struct": "@frozen public struct _AnyAngularGradient : SwiftUICore.ShapeStyle {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AnyAngularGradient", - "conformances": [ - "ShapeStyle" - ] - }, - { - "struct": "@frozen public struct _AnyAnimatableData : SwiftUICore.VectorArithmetic {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AnyAnimatableData", - "conformances": [ - "VectorArithmetic" - ] - }, - { - "struct": "@frozen public struct _AnyEllipticalGradient : SwiftUICore.ShapeStyle {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AnyEllipticalGradient", - "conformances": [ - "ShapeStyle" - ] - }, - { - "struct": "@frozen public struct _AnyLinearGradient : SwiftUICore.ShapeStyle {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AnyLinearGradient", - "conformances": [ - "ShapeStyle" - ] - }, - { - "struct": "@frozen public struct _AnyRadialGradient : SwiftUICore.ShapeStyle {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_AnyRadialGradient", - "conformances": [ - "ShapeStyle" - ] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AppearanceActionModifier : SwiftUICore.ViewModifier {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AppearanceActionModifier", - "conformances": [ - "ViewModifier" - ] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _AspectRatioLayout {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_AspectRatioLayout", - "conformances": [] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackdropEffect where Backdrop : SwiftUICore.View {", - "availabilities": [ - "@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)" - ], - "name": "_BackdropEffect", - "generics": [ - "Backdrop" - ], - "conformances": [], - "conditions": { - "Backdrop": [ - "View" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackdropEffectPlaceholder {", - "availabilities": [ - "@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)" - ], - "name": "_BackdropEffectPlaceholder", - "conformances": [] - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackgroundModifier : SwiftUICore.ViewModifier where Background : SwiftUICore.View {", - "availabilities": [ - "@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)" - ], - "name": "_BackgroundModifier", - "generics": [ - "Background" - ], - "conformances": [ - "ViewModifier" - ], - "conditions": { - "Background": [ - "View" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackgroundPreferenceModifier where Key : SwiftUICore.PreferenceKey, Overlay : SwiftUICore.View {", - "availabilities": [ - "@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)" - ], - "name": "_BackgroundPreferenceModifier", - "generics": [ - "Key", - "Overlay" - ], - "conformances": [], - "conditions": { - "Key": [ - "PreferenceKey" - ], - "Overlay": [ - "View" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackgroundShapeModifier : SwiftUICore.ViewModifier where Style : SwiftUICore.ShapeStyle, Bounds : SwiftUICore.Shape {", - "availabilities": [ - "@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)" - ], - "name": "_BackgroundShapeModifier", - "generics": [ - "Style", - "Bounds" - ], - "conformances": [ - "ViewModifier" - ], - "conditions": { - "Style": [ - "ShapeStyle" - ], - "Bounds": [ - "Shape" - ] - } - }, - { - "struct": "@frozen @_Concurrency.MainActor @preconcurrency public struct _BackgroundStyleModifier