Build Information
Failed to build SwipeActions, reference main (71cca4), with Swift 6.3 for macOS (SPM) on 21 Apr 2026 15:14:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
1276 |
1277 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1292:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
1288 | }
1289 |
1290 | public extension AnyTransition {
| `- note: add '@available' attribute to enclosing extension
1291 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1292 | static var swipeDelete: AnyTransition {
| | `- error: 'AnyTransition' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
1293 | .modifier(
1294 | active: SwipeDeleteModifier(visibility: 0),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1290:18: error: 'AnyTransition' is only available in macOS 10.15 or newer
1288 | }
1289 |
1290 | public extension AnyTransition {
| | `- error: 'AnyTransition' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
1291 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1292 | static var swipeDelete: AnyTransition {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1304:42: error: 'Path' is only available in macOS 10.15 or newer
1299 |
1300 | /// Custom shape that changes height as `animatableData` changes.
1301 | public struct SwipeDeleteMaskShape: Shape {
| `- note: add '@available' attribute to enclosing struct
1302 | public var animatableData: Double
1303 |
1304 | public func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1305 | var maskRect = rect
1306 | maskRect.size.height = rect.size.height * animatableData
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1317:64: error: 'View' is only available in macOS 10.15 or newer
1312 |
1313 | /// A style to remove the "press" effect on buttons.
1314 | public struct SwipeActionButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
1315 | public init() {}
1316 |
1317 | public func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1318 | return configuration.label
1319 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1351:26: error: 'DragGesture' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
| `- error: 'DragGesture' is only available in macOS 10.15 or newer
1352 | @State var current: DragGesture.Value?
1353 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1351:6: error: 'State' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
| `- error: 'State' is only available in macOS 10.15 or newer
1352 | @State var current: DragGesture.Value?
1353 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1352:25: error: 'DragGesture' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
| `- error: 'DragGesture' is only available in macOS 10.15 or newer
1353 |
1354 | func update(_ value: DragGesture.Value) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1352:6: error: 'State' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
| `- error: 'State' is only available in macOS 10.15 or newer
1353 |
1354 | func update(_ value: DragGesture.Value) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1354:26: error: 'DragGesture' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
1353 |
1354 | func update(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1355 | if current != nil {
1356 | previous = current
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1398:59: error: '_EndedGesture' is only available in macOS 10.15 or newer
1395 | }
1396 |
1397 | extension Gesture where Value == DragGesture.Value {
| `- note: add '@available' attribute to enclosing extension
1398 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
| | `- error: '_EndedGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1399 | onChanged { value in
1400 | velocity.update(value)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1397:11: error: 'Gesture' is only available in macOS 10.15 or newer
1395 | }
1396 |
1397 | extension Gesture where Value == DragGesture.Value {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
1398 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
1399 | onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1397:34: error: 'DragGesture' is only available in macOS 10.15 or newer
1395 | }
1396 |
1397 | extension Gesture where Value == DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
1398 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
1399 | onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1414:61: error: 'View' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1413:11: error: 'View' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
1415 | return background(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:70:21: error: 'leading' is only available in macOS 10.15 or newer
50 |
51 | /// Either `leading` or `trailing`.
52 | public enum SwipeSide {
| `- note: add '@available' attribute to enclosing enum
53 | case leading
54 | case trailing
:
65 |
66 | /// Convert to `SwiftUI`'s `Alignment` struct.
67 | var alignment: Alignment {
| `- note: add '@available' attribute to enclosing property
68 | switch self {
69 | case .leading:
70 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | case .trailing:
72 | return .trailing
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:72:21: error: 'trailing' is only available in macOS 10.15 or newer
50 |
51 | /// Either `leading` or `trailing`.
52 | public enum SwipeSide {
| `- note: add '@available' attribute to enclosing enum
53 | case leading
54 | case trailing
:
65 |
66 | /// Convert to `SwiftUI`'s `Alignment` struct.
67 | var alignment: Alignment {
| `- note: add '@available' attribute to enclosing property
68 | switch self {
69 | case .leading:
70 | return .leading
71 | case .trailing:
72 | return .trailing
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:80:21: error: 'trailing' is only available in macOS 10.15 or newer
50 |
51 | /// Either `leading` or `trailing`.
52 | public enum SwipeSide {
| `- note: add '@available' attribute to enclosing enum
53 | case leading
54 | case trailing
:
75 |
76 | /// Used when there's only one action.
77 | var edgeTriggerAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
78 | switch self {
79 | case .leading:
80 | return .trailing
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | case .trailing:
82 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:82:21: error: 'leading' is only available in macOS 10.15 or newer
50 |
51 | /// Either `leading` or `trailing`.
52 | public enum SwipeSide {
| `- note: add '@available' attribute to enclosing enum
53 | case leading
54 | case trailing
:
75 |
76 | /// Used when there's only one action.
77 | var edgeTriggerAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
78 | switch self {
79 | case .leading:
80 | return .trailing
81 | case .trailing:
82 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:226:14: error: 'environment' is only available in macOS 10.15 or newer
213 |
214 | */
215 | public struct SwipeViewGroup<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
216 | @ViewBuilder var content: () -> Content
217 |
:
222 | }
223 |
224 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
225 | content()
226 | .environment(\.swipeViewGroupSelection, $selection)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
227 | }
228 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:278:29: error: 'Alignment' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
| |- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
279 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return .center }
280 | if swipeContext.numberOfActions == 1 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:279:79: error: 'center' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
279 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return .center }
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | if swipeContext.numberOfActions == 1 {
281 | if swipeContext.state.wrappedValue == .triggering || swipeContext.state.wrappedValue == .triggered {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:285:21: error: 'center' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
283 | }
284 | }
285 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | }()
287 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:296:9: error: 'Button' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
294 | }()
295 |
296 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | background(highlighted)
298 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:298:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
296 | Button(action: action) {
297 | background(highlighted)
298 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 | label(highlighted)
300 | .opacity(labelOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:300:26: error: 'opacity' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
298 | .overlay(
299 | label(highlighted)
300 | .opacity(labelOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
302 | .padding(.horizontal, labelHorizontalPadding),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:301:26: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
299 | label(highlighted)
300 | .opacity(labelOpacity)
301 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | .padding(.horizontal, labelHorizontalPadding),
303 | alignment: labelAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:302:26: error: 'padding' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
300 | .opacity(labelOpacity)
301 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
302 | .padding(.horizontal, labelHorizontalPadding),
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
303 | alignment: labelAlignment
304 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:306:10: error: 'opacity' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
304 | )
305 | }
306 | .opacity(totalOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
307 | ._onButtonGesture { pressing in
308 | self.highlighted = pressing
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:307:10: error: '_onButtonGesture(pressing:perform:)' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
305 | }
306 | .opacity(totalOpacity)
307 | ._onButtonGesture { pressing in
| |- error: '_onButtonGesture(pressing:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 | self.highlighted = pressing
309 | } perform: {}
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:308:13: error: setter for 'highlighted' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
306 | .opacity(totalOpacity)
307 | ._onButtonGesture { pressing in
308 | self.highlighted = pressing
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | } perform: {}
310 | .buttonStyle(SwipeActionButtonStyle())
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:310:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
308 | self.highlighted = pressing
309 | } perform: {}
310 | .buttonStyle(SwipeActionButtonStyle())
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
311 | .onChange(of: swipeContext.state.wrappedValue) { state in /// Read changes in state.
312 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:311:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
309 | } perform: {}
310 | .buttonStyle(SwipeActionButtonStyle())
311 | .onChange(of: swipeContext.state.wrappedValue) { state in /// Read changes in state.
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
312 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return }
313 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:316:21: error: setter for 'highlighted' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
314 | if let state {
315 | if state == .triggering || state == .triggered {
316 | highlighted = true
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | } else {
318 | highlighted = false
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:318:21: error: setter for 'highlighted' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
316 | highlighted = true
317 | } else {
318 | highlighted = false
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 | }
320 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:325:17: error: setter for 'highlighted' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
323 | }
324 | } else {
325 | highlighted = false
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
326 | }
327 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:328:10: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
231 |
232 | /// For use in `SwipeView`'s `leading` or `trailing` side.
233 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
234 | // MARK: - Properties
235 |
:
274 | }
275 |
276 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
277 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
278 | let labelAlignment: Alignment = {
:
326 | }
327 | }
328 | .preference(key: AllowSwipeToTriggerKey.self, value: allowSwipeToTrigger)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
329 | }
330 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:470:33: error: cannot find 'UIImpactFeedbackGenerator' in scope
468 |
469 | if changed, options.enableTriggerHaptics { /// Generate haptic feedback if necessary.
470 | let generator = UIImpactFeedbackGenerator(style: .rigid)
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
471 | generator.impactOccurred()
472 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:481:33: error: cannot find 'UIImpactFeedbackGenerator' in scope
479 |
480 | if changed, options.enableTriggerHaptics {
481 | let generator = UIImpactFeedbackGenerator(style: .rigid)
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
482 | generator.impactOccurred()
483 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:477:17: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
475 |
476 | let changed =
477 | trailingState == .triggering && newValue == nil ||
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
478 | trailingState == nil && newValue == .triggering
479 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:552:9: error: '_VariadicView' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
550 | }()
551 |
552 | _VariadicView.Tree(
| |- error: '_VariadicView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
553 | SwipeActionsLayout(
554 | numberOfActions: numberOfActions,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:561:32: error: 'Binding' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
559 | )
560 | ) {
561 | let stateBinding = Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | state.wrappedValue
563 | } set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:567:21: error: setter for 'currentSide' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
565 |
566 | if newValue == .closed {
567 | currentSide = nil /// If closed, set `currentSide` to nil.
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
568 | } else {
569 | currentSide = side /// Set the current side to the action's side.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:569:21: error: setter for 'currentSide' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
567 | currentSide = nil /// If closed, set `currentSide` to nil.
568 | } else {
569 | currentSide = side /// Set the current side to the action's side.
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
570 | }
571 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:586:10: error: 'mask' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
584 | actions(context) /// Call the `actions` view and pass in context.
585 | }
586 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
587 | Color.clear.overlay(
588 | /// Clip the swipe actions as they're being revealed.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:587:13: error: 'Color' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
585 | }
586 | .mask(
587 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
588 | /// Clip the swipe actions as they're being revealed.
589 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:587:19: error: 'clear' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
585 | }
586 | .mask(
587 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
588 | /// Clip the swipe actions as they're being revealed.
589 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:587:25: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
585 | }
586 | .mask(
587 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
588 | /// Clip the swipe actions as they're being revealed.
589 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:589:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
587 | Color.clear.overlay(
588 | /// Clip the swipe actions as they're being revealed.
589 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
590 | .frame(width: visibleWidth),
591 | alignment: side.alignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:590:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
521 | // MARK: - Actions view
522 |
523 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
524 | /// The swipe actions.
525 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add '@available' attribute to enclosing instance method
526 | side: SwipeSide,
527 | state: Binding<SwipeState?>,
:
588 | /// Clip the swipe actions as they're being revealed.
589 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
590 | .frame(width: visibleWidth),
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
591 | alignment: side.alignment
592 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:612:33: warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
610 | switch side {
611 | case .leading:
612 | return children.first?.id
| |- warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
613 | case .trailing:
614 | return children.last?.id
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:614:33: warning: conformance of '_VariadicView_Children' to 'BidirectionalCollection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
612 | return children.first?.id
613 | case .trailing:
614 | return children.last?.id
| |- warning: conformance of '_VariadicView_Children' to 'BidirectionalCollection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
615 | }
616 | }()
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:618:9: error: 'HStack' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
616 | }()
617 |
618 | HStack(spacing: options.spacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
620 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:618:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
616 | }()
617 |
618 | HStack(spacing: options.spacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
620 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:618:42: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
616 | }()
617 |
618 | HStack(spacing: options.spacing) {
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
620 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:618:42: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
616 | }()
617 |
618 | HStack(spacing: options.spacing) {
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
620 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:13: error: 'ForEach' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:21: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:21: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:21: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:27: warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_VariadicView_Children' to 'Sequence' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:40: warning: conformance of '_VariadicView_Children' to 'RandomAccessCollection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_VariadicView_Children' to 'RandomAccessCollection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:671:45: warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
669 | switch side {
670 | case .leading:
671 | return children.count - index - 1 /// Left-most views should be on top.
| |- warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
672 | case .trailing:
673 | return index
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:677:21: error: 'Color' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
675 | }()
676 |
677 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
678 | child
679 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:677:27: error: 'clear' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
675 | }()
676 |
677 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
678 | child
679 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:677:33: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
675 | }()
676 |
677 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
678 | child
679 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:679:30: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
677 | Color.clear.overlay(
678 | child
679 | .frame(maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
680 | .frame(width: width)
681 | .opacity(shown ? 1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:680:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
678 | child
679 | .frame(maxHeight: .infinity)
680 | .frame(width: width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
681 | .opacity(shown ? 1 : 0)
682 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:681:30: error: 'opacity' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
679 | .frame(maxHeight: .infinity)
680 | .frame(width: width)
681 | .opacity(shown ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
682 | .mask(
683 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:682:30: error: 'mask' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
680 | .frame(width: width)
681 | .opacity(shown ? 1 : 0)
682 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
683 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
684 | ),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:683:33: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
681 | .opacity(shown ? 1 : 0)
682 | .mask(
683 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
684 | ),
685 | alignment: side.edgeTriggerAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:687:22: error: 'zIndex' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
685 | alignment: side.edgeTriggerAlignment
686 | )
687 | .zIndex(Double(zIndex))
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
688 | } else {
689 | child
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:666:53: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
664 | }()
665 |
666 | if options.actionsStyle == .cascade {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
667 | /// Overlapping views require a `zIndex`.
668 | let zIndex: Int = {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:690:26: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
688 | } else {
689 | child
690 | .frame(maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
691 | .frame(width: width)
692 | .opacity(shown ? 1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:691:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
689 | child
690 | .frame(maxHeight: .infinity)
691 | .frame(width: width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
692 | .opacity(shown ? 1 : 0)
693 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:692:26: error: 'opacity' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
690 | .frame(maxHeight: .infinity)
691 | .frame(width: width)
692 | .opacity(shown ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
693 | .mask(
694 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:693:26: error: 'mask' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
691 | .frame(width: width)
692 | .opacity(shown ? 1 : 0)
693 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
694 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
695 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:694:29: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
692 | .opacity(shown ? 1 : 0)
693 | .mask(
694 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
695 | )
696 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:688:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
686 | )
687 | .zIndex(Double(zIndex))
688 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
689 | child
690 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:619:73: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
617 |
618 | HStack(spacing: options.spacing) {
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
620 | let isEdge = child.id == edgeID
621 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:618:42: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
616 | }()
617 |
618 | HStack(spacing: options.spacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
619 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
620 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:699:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
697 | }
698 | }
699 | .frame(width: options.actionsStyle == .cascade ? visibleWidth : nil)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
700 | .animation(options.actionContentTriggerAnimation, value: state)
701 | .onAppear { /// Set the number of actions here.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:700:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
698 | }
699 | .frame(width: options.actionsStyle == .cascade ? visibleWidth : nil)
700 | .animation(options.actionContentTriggerAnimation, value: state)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
701 | .onAppear { /// Set the number of actions here.
702 | numberOfActions = children.count
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:701:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
699 | .frame(width: options.actionsStyle == .cascade ? visibleWidth : nil)
700 | .animation(options.actionContentTriggerAnimation, value: state)
701 | .onAppear { /// Set the number of actions here.
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
702 | numberOfActions = children.count
703 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:702:13: error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
700 | .animation(options.actionContentTriggerAnimation, value: state)
701 | .onAppear { /// Set the number of actions here.
702 | numberOfActions = children.count
| |- error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
703 | }
704 | .onChange(of: children.count) { count in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:702:40: warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
700 | .animation(options.actionContentTriggerAnimation, value: state)
701 | .onAppear { /// Set the number of actions here.
702 | numberOfActions = children.count
| |- warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
703 | }
704 | .onChange(of: children.count) { count in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:704:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
702 | numberOfActions = children.count
703 | }
704 | .onChange(of: children.count) { count in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
705 | numberOfActions = count
706 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:704:32: warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
702 | numberOfActions = children.count
703 | }
704 | .onChange(of: children.count) { count in
| |- warning: conformance of '_VariadicView_Children' to 'Collection' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
705 | numberOfActions = count
706 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:705:13: error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
597 | // MARK: - Actions Layout
598 |
599 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add '@available' attribute to enclosing struct
600 | @Binding var numberOfActions: Int
601 | var side: SwipeSide
:
605 |
606 | @ViewBuilder
607 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add '@available' attribute to enclosing instance method
608 | /// The ID of the edge action.
609 | let edgeID: AnyHashable? = {
:
703 | }
704 | .onChange(of: children.count) { count in
705 | numberOfActions = count
| |- error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
706 | }
707 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:819:9: error: 'withAnimation' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
816 | }
817 |
818 | func close(velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
819 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
820 | savedOffset = 0
821 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:819:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
816 | }
817 |
818 | func close(velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
819 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
820 | savedOffset = 0
821 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:820:13: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
816 | }
817 |
818 | func close(velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
819 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
820 | savedOffset = 0
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
821 | currentOffset = 0
822 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:821:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
816 | }
817 |
818 | func close(velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
819 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
820 | savedOffset = 0
821 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
822 | }
823 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:826:9: error: 'withAnimation' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
823 | }
824 |
825 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
826 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
827 | switch side {
828 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:826:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
823 | }
824 |
825 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
826 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
827 | switch side {
828 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:829:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
823 | }
824 |
825 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
826 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
827 | switch side {
828 | case .leading:
829 | savedOffset = leadingTriggeredOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
830 | case .trailing:
831 | savedOffset = trailingTriggeredOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:831:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
823 | }
824 |
825 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
826 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
827 | switch side {
:
829 | savedOffset = leadingTriggeredOffset
830 | case .trailing:
831 | savedOffset = trailingTriggeredOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
832 | }
833 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:833:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
823 | }
824 |
825 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
826 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
827 | switch side {
:
831 | savedOffset = trailingTriggeredOffset
832 | }
833 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
834 | }
835 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:838:9: error: 'withAnimation' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
835 | }
836 |
837 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
838 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
839 | switch side {
840 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:838:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
835 | }
836 |
837 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
838 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
839 | switch side {
840 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:841:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
835 | }
836 |
837 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
838 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
839 | switch side {
840 | case .leading:
841 | savedOffset = leadingExpandedOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
842 | case .trailing:
843 | savedOffset = trailingExpandedOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:843:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
835 | }
836 |
837 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
838 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
839 | switch side {
:
841 | savedOffset = leadingExpandedOffset
842 | case .trailing:
843 | savedOffset = trailingExpandedOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
844 | }
845 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:845:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
800 | // MARK: - State
801 |
802 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
803 | /// Call this after programmatically setting the state to update the view's offset.
804 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
835 | }
836 |
837 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add '@available' attribute to enclosing instance method
838 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
839 | switch side {
:
843 | savedOffset = trailingExpandedOffset
844 | }
845 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
846 | }
847 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:855:9: error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
854 | /// Back up the value.
855 | latestDragGestureValueBackup = value
| |- error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
856 |
857 | /// Set the current side.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:862:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
854 | /// Back up the value.
855 | latestDragGestureValueBackup = value
:
860 | // Adjust side for RTL: flip the direction if layout is RTL.
861 | if (layoutDirection == .leftToRight && dx > 0) || (layoutDirection == .rightToLeft && dx < 0) {
862 | currentSide = .leading
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
863 | } else {
864 | currentSide = .trailing
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:864:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
854 | /// Back up the value.
855 | latestDragGestureValueBackup = value
:
862 | currentSide = .leading
863 | } else {
864 | currentSide = .trailing
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:887:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
885 | // Rubber-banding effect for leading edge in RTL if no actions available
886 | let constrainedExceededOffset = pow(totalOffset, options.stretchRubberBandingPower)
887 | currentOffset = constrainedExceededOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
888 | leadingState = nil
889 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:888:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
886 | let constrainedExceededOffset = pow(totalOffset, options.stretchRubberBandingPower)
887 | currentOffset = constrainedExceededOffset - savedOffset
888 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
889 | trailingState = nil
890 | } else if numberOfTrailingActions == 0 || disallowedSide == .trailing, totalOffset < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:889:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
887 | currentOffset = constrainedExceededOffset - savedOffset
888 | leadingState = nil
889 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
890 | } else if numberOfTrailingActions == 0 || disallowedSide == .trailing, totalOffset < 0 {
891 | // Rubber-banding effect for trailing edge in RTL if no actions available
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:893:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
891 | // Rubber-banding effect for trailing edge in RTL if no actions available
892 | let constrainedExceededOffset = -pow(-totalOffset, options.stretchRubberBandingPower)
893 | currentOffset = constrainedExceededOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
894 | leadingState = nil
895 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:894:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
892 | let constrainedExceededOffset = -pow(-totalOffset, options.stretchRubberBandingPower)
893 | currentOffset = constrainedExceededOffset - savedOffset
894 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
895 | trailingState = nil
896 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:895:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
893 | currentOffset = constrainedExceededOffset - savedOffset
894 | leadingState = nil
895 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
896 | } else {
897 | // Handle swipe actions and triggering logic
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:903:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
901 | setCurrentOffset = true
902 | if swipeToTriggerLeadingEdge {
903 | currentOffset = adjustedTranslation
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
904 | leadingState = .triggering
905 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:904:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
902 | if swipeToTriggerLeadingEdge {
903 | currentOffset = adjustedTranslation
904 | leadingState = .triggering
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
905 | trailingState = nil
906 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:905:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
903 | currentOffset = adjustedTranslation
904 | leadingState = .triggering
905 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
906 | } else {
907 | let exceededOffset = totalOffset - leadingReadyToTriggerOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:910:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
908 | let constrainedExceededOffset = pow(exceededOffset, options.stretchRubberBandingPower)
909 | let constrainedTotalOffset = leadingReadyToTriggerOffset + constrainedExceededOffset
910 | currentOffset = constrainedTotalOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
911 | leadingState = nil
912 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:911:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
909 | let constrainedTotalOffset = leadingReadyToTriggerOffset + constrainedExceededOffset
910 | currentOffset = constrainedTotalOffset - savedOffset
911 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
912 | trailingState = nil
913 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:912:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
910 | currentOffset = constrainedTotalOffset - savedOffset
911 | leadingState = nil
912 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
913 | }
914 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:919:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
917 | setCurrentOffset = true
918 | if swipeToTriggerTrailingEdge {
919 | currentOffset = adjustedTranslation
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
920 | trailingState = .triggering
921 | leadingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:920:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
918 | if swipeToTriggerTrailingEdge {
919 | currentOffset = adjustedTranslation
920 | trailingState = .triggering
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
921 | leadingState = nil
922 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:921:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
919 | currentOffset = adjustedTranslation
920 | trailingState = .triggering
921 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
922 | } else {
923 | let exceededOffset = totalOffset - trailingReadyToTriggerOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:926:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
924 | let constrainedExceededOffset = -pow(-exceededOffset, options.stretchRubberBandingPower)
925 | let constrainedTotalOffset = trailingReadyToTriggerOffset + constrainedExceededOffset
926 | currentOffset = constrainedTotalOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
927 | leadingState = nil
928 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:927:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
925 | let constrainedTotalOffset = trailingReadyToTriggerOffset + constrainedExceededOffset
926 | currentOffset = constrainedTotalOffset - savedOffset
927 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
928 | trailingState = nil
929 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:928:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
926 | currentOffset = constrainedTotalOffset - savedOffset
927 | leadingState = nil
928 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
929 | }
930 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:934:17: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
932 | // If no other offset was set, default to translation width
933 | if !setCurrentOffset {
934 | currentOffset = adjustedTranslation
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
935 | leadingState = nil
936 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:935:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
933 | if !setCurrentOffset {
934 | currentOffset = adjustedTranslation
935 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
936 | trailingState = nil
937 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:936:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
874 | }
875 |
876 | func change(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
877 | // Get adjusted direction for RTL layouts
878 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
934 | currentOffset = adjustedTranslation
935 | leadingState = nil
936 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
937 | }
938 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:942:9: error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
939 | }
940 |
941 | func onEnded(value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
942 | latestDragGestureValueBackup = nil
| |- error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
943 |
944 | // Adjust velocity for RTL
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:959:13: error: setter for 'currentSide' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
957 |
958 | if getDisallowedSide(totalOffset: totalPredictedOffset) != nil {
959 | currentSide = nil
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
960 | leadingState = .closed
961 | trailingState = .closed
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:960:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
958 | if getDisallowedSide(totalOffset: totalPredictedOffset) != nil {
959 | currentSide = nil
960 | leadingState = .closed
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
961 | trailingState = .closed
962 | close(velocity: velocity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:961:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
959 | currentSide = nil
960 | leadingState = .closed
961 | trailingState = .closed
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
962 | close(velocity: velocity)
963 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:968:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
966 | // Trigger actions based on leading or trailing states in RTL
967 | if trailingState == .triggering {
968 | trailingState = .triggered
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
969 | trigger(side: .trailing, velocity: velocity)
970 | } else if leadingState == .triggering {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:971:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
969 | trigger(side: .trailing, velocity: velocity)
970 | } else if leadingState == .triggering {
971 | leadingState = .triggered
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
972 | trigger(side: .leading, velocity: velocity)
973 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:975:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
973 | } else {
974 | if totalPredictedOffset > leadingReadyToExpandOffset, numberOfLeadingActions > 0 {
975 | leadingState = .expanded
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
976 | expand(side: .leading, velocity: velocity)
977 | } else if totalPredictedOffset < trailingReadyToExpandOffset, numberOfTrailingActions > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:978:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
976 | expand(side: .leading, velocity: velocity)
977 | } else if totalPredictedOffset < trailingReadyToExpandOffset, numberOfTrailingActions > 0 {
978 | trailingState = .expanded
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
979 | expand(side: .trailing, velocity: velocity)
980 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:981:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
979 | expand(side: .trailing, velocity: velocity)
980 | } else {
981 | currentSide = nil
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
982 | leadingState = .closed
983 | trailingState = .closed
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:982:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
980 | } else {
981 | currentSide = nil
982 | leadingState = .closed
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
983 | trailingState = .closed
984 | let draggedPastTrailingSide = totalOffset > 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:983:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
850 | // MARK: - Gestures
851 |
852 | extension SwipeView {
| `- note: add '@available' attribute to enclosing extension
853 | func onChanged(value: DragGesture.Value) {
854 | /// Back up the value.
:
948 |
949 | /// Represents the end of a gesture.
950 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add '@available' attribute to enclosing instance method
951 | // Adjust totalOffset and totalPredictedOffset for RTL
952 | let adjustedTranslation = layoutDirection == .rightToLeft ? -value.translation.width : value.translation.width
:
981 | currentSide = nil
982 | leadingState = .closed
983 | trailingState = .closed
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
984 | let draggedPastTrailingSide = totalOffset > 0
985 | // Adjust velocity sign for RTL
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1005:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1003 | action: @escaping () -> Void
1004 | ) {
1005 | self.init(action: action) { highlight in
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1006 | Text(title)
1007 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1005:14: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1003 | action: @escaping () -> Void
1004 | ) {
1005 | self.init(action: action) { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1006 | Text(title)
1007 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1004 | ) {
1005 | self.init(action: action) { highlight in
1006 | Text(title)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1007 | } background: { highlight in
1008 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:13: error: 'Text' is only available in macOS 10.15 or newer
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1004 | ) {
1005 | self.init(action: action) { highlight in
1006 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1007 | } background: { highlight in
1008 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1004 | ) {
1005 | self.init(action: action) { highlight in
1006 | Text(title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1007 | } background: { highlight in
1008 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1005:35: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1003 | action: @escaping () -> Void
1004 | ) {
1005 | self.init(action: action) { highlight in
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1006 | Text(title)
1007 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1008:13: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1006 | Text(title)
1007 | } background: { highlight in
1008 | backgroundColor
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1009 | .opacity(highlight ? highlightOpacity : 1)
1010 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1009:18: error: 'opacity' is only available in macOS 10.15 or newer
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1007 | } background: { highlight in
1008 | backgroundColor
1009 | .opacity(highlight ? highlightOpacity : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1010 | }
1011 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1007:23: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
996 | // MARK: Convenience views
997 |
998 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add '@available' attribute to enclosing extension
999 | init(
| `- note: add '@available' attribute to enclosing initializer
1000 | _ title: LocalizedStringKey,
1001 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1005 | self.init(action: action) { highlight in
1006 | Text(title)
1007 | } background: { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1008 | backgroundColor
1009 | .opacity(highlight ? highlightOpacity : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1021:14: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1019 | action: @escaping () -> Void
1020 | ) {
1021 | self.init(action: action) { highlight in
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1022 | Image(systemName: systemImage)
1023 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1021:14: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1019 | action: @escaping () -> Void
1020 | ) {
1021 | self.init(action: action) { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1022 | Image(systemName: systemImage)
1023 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1022:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1020 | ) {
1021 | self.init(action: action) { highlight in
1022 | Image(systemName: systemImage)
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1023 | } background: { highlight in
1024 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1022:13: error: 'Image' is only available in macOS 10.15 or newer
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1020 | ) {
1021 | self.init(action: action) { highlight in
1022 | Image(systemName: systemImage)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1023 | } background: { highlight in
1024 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1022:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1020 | ) {
1021 | self.init(action: action) { highlight in
1022 | Image(systemName: systemImage)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
1023 | } background: { highlight in
1024 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1021:35: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1019 | action: @escaping () -> Void
1020 | ) {
1021 | self.init(action: action) { highlight in
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1022 | Image(systemName: systemImage)
1023 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1024:13: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1022 | Image(systemName: systemImage)
1023 | } background: { highlight in
1024 | backgroundColor
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1025 | .opacity(highlight ? highlightOpacity : 1)
1026 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1025:18: error: 'opacity' is only available in macOS 10.15 or newer
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1023 | } background: { highlight in
1024 | backgroundColor
1025 | .opacity(highlight ? highlightOpacity : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1026 | }
1027 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1023:23: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1012 | }
1013 |
1014 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1015 | init(
| `- note: add '@available' attribute to enclosing initializer
1016 | systemImage: String,
1017 | backgroundColor: Color = Color.primary.opacity(0.1),
:
1021 | self.init(action: action) { highlight in
1022 | Image(systemName: systemImage)
1023 | } background: { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1024 | backgroundColor
1025 | .opacity(highlight ? highlightOpacity : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1039:14: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1037 | action: @escaping () -> Void
1038 | ) {
1039 | self.init(action: action) { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1040:13: error: 'VStack' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1038 | ) {
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1041 | Image(systemName: systemImage)
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1041:17: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1042:42: error: 'ModifiedContent' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
| |- error: 'ModifiedContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1043 |
1044 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1041:17: error: 'Image' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1041:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1042:22: error: 'font' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1040 | VStack(spacing: 8) {
1041 | Image(systemName: systemImage)
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1043 |
1044 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1044:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
1044 | Text(title)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1045 | }
1046 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1044:17: error: 'Text' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
1044 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1045 | }
1046 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1044:17: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
1043 |
1044 | Text(title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1045 | }
1046 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1040:32: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1038 | ) {
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1041 | Image(systemName: systemImage)
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1040:32: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1038 | ) {
1039 | self.init(action: action) { highlight in
1040 | VStack(spacing: 8) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1041 | Image(systemName: systemImage)
1042 | .font(imageFont) as! ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1047:13: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1045 | }
1046 | } background: { highlight in
1047 | backgroundColor
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1048 | .opacity(highlight ? highlightOpacity : 1)
1049 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1048:18: error: 'opacity' is only available in macOS 10.15 or newer
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1046 | } background: { highlight in
1047 | backgroundColor
1048 | .opacity(highlight ? highlightOpacity : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1049 | }
1050 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1046:23: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1028 | }
1029 |
1030 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add '@available' attribute to enclosing extension
1031 | init(
| `- note: add '@available' attribute to enclosing initializer
1032 | _ title: LocalizedStringKey,
1033 | systemImage: String,
:
1044 | Text(title)
1045 | }
1046 | } background: { highlight in
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1047 | backgroundColor
1048 | .opacity(highlight ? highlightOpacity : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1279:14: error: 'mask' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1280 | Color.clear.overlay(
1281 | SwipeDeleteMaskShape(animatableData: visibility)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1280:17: error: 'Color' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
1280 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1281 | SwipeDeleteMaskShape(animatableData: visibility)
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1280:23: error: 'clear' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
1280 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1281 | SwipeDeleteMaskShape(animatableData: visibility)
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1280:29: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
1280 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1281 | SwipeDeleteMaskShape(animatableData: visibility)
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1282:26: error: 'padding' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
1280 | Color.clear.overlay(
1281 | SwipeDeleteMaskShape(animatableData: visibility)
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1283 | .padding(.vertical, -10), /// Prevent vertical clipping
1284 | alignment: .top
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1283:26: error: 'padding' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
:
1281 | SwipeDeleteMaskShape(animatableData: visibility)
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
1283 | .padding(.vertical, -10), /// Prevent vertical clipping
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1284 | alignment: .top
1285 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1284:33: error: 'top' is only available in macOS 10.15 or newer
1272 |
1273 | /// Modifier for a clipped delete transition effect.
1274 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
1275 | var visibility: Double
1276 |
1277 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1278 | content
1279 | .mask(
:
1282 | .padding(.horizontal, -100) /// Prevent horizontal clipping
1283 | .padding(.vertical, -10), /// Prevent vertical clipping
1284 | alignment: .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1285 | )
1286 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1293:10: error: 'modifier(active:identity:)' is only available in macOS 10.15 or newer
1288 | }
1289 |
1290 | public extension AnyTransition {
| `- note: add '@available' attribute to enclosing extension
1291 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1292 | static var swipeDelete: AnyTransition {
| `- note: add '@available' attribute to enclosing static property
1293 | .modifier(
| |- error: 'modifier(active:identity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1294 | active: SwipeDeleteModifier(visibility: 0),
1295 | identity: SwipeDeleteModifier(visibility: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1307:16: error: 'Path' is only available in macOS 10.15 or newer
1299 |
1300 | /// Custom shape that changes height as `animatableData` changes.
1301 | public struct SwipeDeleteMaskShape: Shape {
| `- note: add '@available' attribute to enclosing struct
1302 | public var animatableData: Double
1303 |
1304 | public func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
1305 | var maskRect = rect
1306 | maskRect.size.height = rect.size.height * animatableData
1307 | return Path(maskRect)
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1308 | }
1309 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1356:13: error: setter for 'previous' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
1353 |
1354 | func update(_ value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
1355 | if current != nil {
1356 | previous = current
| |- error: setter for 'previous' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1357 | }
1358 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1359:9: error: setter for 'current' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
1353 |
1354 | func update(_ value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
1355 | if current != nil {
1356 | previous = current
1357 | }
1358 |
1359 | current = value
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1360 | }
1361 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1363:9: error: setter for 'previous' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
:
1360 | }
1361 |
1362 | func reset() {
| `- note: add '@available' attribute to enclosing instance method
1363 | previous = nil
| |- error: setter for 'previous' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1364 | current = nil
1365 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1364:9: error: setter for 'current' is only available in macOS 10.15 or newer
1348 | */
1349 | @propertyWrapper
1350 | struct GestureVelocity: DynamicProperty {
| `- note: add '@available' attribute to enclosing struct
1351 | @State var previous: DragGesture.Value?
1352 | @State var current: DragGesture.Value?
:
1360 | }
1361 |
1362 | func reset() {
| `- note: add '@available' attribute to enclosing instance method
1363 | previous = nil
1364 | current = nil
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1365 | }
1366 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1399:9: error: 'onChanged' is only available in macOS 10.15 or newer
1395 | }
1396 |
1397 | extension Gesture where Value == DragGesture.Value {
| `- note: add '@available' attribute to enclosing extension
1398 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
| `- note: add '@available' attribute to enclosing instance method
1399 | onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1400 | velocity.update(value)
1401 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1402:10: error: 'onEnded' is only available in macOS 10.15 or newer
1395 | }
1396 |
1397 | extension Gesture where Value == DragGesture.Value {
| `- note: add '@available' attribute to enclosing extension
1398 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
| `- note: add '@available' attribute to enclosing instance method
1399 | onChanged { value in
1400 | velocity.update(value)
1401 | }
1402 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1403 | velocity.reset()
1404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1415:16: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1416 | GeometryReader { geometry in
1417 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1416:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1417 | Color.clear
1418 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1417:17: error: 'Color' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
1417 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1418 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1419 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1417:23: error: 'clear' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
1417 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1418 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1419 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1418:22: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
1417 | Color.clear
1418 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1419 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
1420 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1419:22: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
1417 | Color.clear
1418 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1419 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1420 | DispatchQueue.main.async {
1421 | size(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1425:14: error: 'hidden()' is only available in macOS 10.15 or newer
1411 | From https://stackoverflow.com/a/66822461/14351818
1412 | */
1413 | extension View {
| `- note: add '@available' attribute to enclosing extension
1414 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add '@available' attribute to enclosing instance method
1415 | return background(
1416 | GeometryReader { geometry in
:
1423 | }
1424 | }
1425 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1426 | )
1427 | }
BUILD FAILURE 6.3 macosSpm