File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ public typealias CurrentLayerInputDataEntity = LayerInputDataEntity_V22
9393public typealias CurrentCanvasItemId = CanvasItemId_V22
9494public typealias CurrentLayerInputCoordinate = LayerInputCoordinate_V22
9595public typealias CurrentLayerOutputCoordinate = LayerOutputCoordinate_V22
96+ public typealias CurrentPinToId = PinToId_V22
9697
9798// MARK: - end
9899
@@ -182,6 +183,7 @@ public typealias LayerInputDataEntity = CurrentLayerInputDataEntity.LayerInputDa
182183public typealias CanvasItemId = CurrentCanvasItemId . CanvasItemId
183184public typealias LayerInputCoordinate = CurrentLayerInputCoordinate . LayerInputCoordinate
184185public typealias LayerOutputCoordinate = CurrentLayerOutputCoordinate . LayerOutputCoordinate
186+ public typealias PinToId = CurrentPinToId . PinToId
185187
186188public enum StitchSchemaVersion : Int , VersionType {
187189 case _V1 = 1
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public enum PortValue_V22: StitchSchemaVersionable {
5959 public typealias StitchSpacing = StitchSpacing_V22 . StitchSpacing
6060 public typealias StitchPadding = StitchPadding_V22 . StitchPadding
6161 public typealias SizingScenario = SizingScenario_V22 . SizingScenario
62+ public typealias PinToId = PinToId_V22 . PinToId
6263 // MARK: - end
6364
6465 public enum PortValue : Codable , Equatable {
@@ -116,6 +117,7 @@ public enum PortValue_V22: StitchSchemaVersionable {
116117 case spacing( StitchSpacing )
117118 case padding( StitchPadding )
118119 case sizingScenario( SizingScenario )
120+ case pinTo( PinToId )
119121 }
120122}
121123
Original file line number Diff line number Diff line change 1+ //
2+ // File.swift
3+ //
4+ //
5+ // Created by Christian J Clampitt on 7/25/24.
6+ //
7+
8+ import Foundation
9+
10+ public enum PinToId_V22 : StitchSchemaVersionable {
11+ // MARK: - ensure versions are correct
12+ static let version = StitchSchemaVersion . _V22
13+ public typealias PreviousInstance = Self . PinToId
14+ // MARK: - end
15+
16+ // A version of SwiftUI's ContentMode that is Codable and that we own.
17+ public enum PinToId : Equatable , Hashable , Codable {
18+ case root,
19+ parent,
20+ layer( LayerNodeId_V22 . LayerNodeId )
21+ }
22+ }
23+
24+ extension PinToId_V22 . PinToId : StitchVersionedCodable {
25+ public init ( previousInstance: PinToId_V22 . PreviousInstance ) {
26+ fatalError ( ) // Added in V22
27+ }
28+ }
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public enum UserVisibleType_V22: StitchSchemaVersionable {
6969 case spacing = " Spacing "
7070 case padding = " Padding "
7171 case sizingScenario = " Sizing Scenario "
72+ case pinToId = " Pin To "
7273 }
7374}
7475
You can’t perform that action at this time.
0 commit comments