Build Information
Failed to build SwipeActions, reference 1.1.0 (41e6f6
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 08:52:29 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
592 | var side: SwipeSide
593 | var options: SwipeOptions
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:598:32: error: '_VariadicView' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| | `- error: '_VariadicView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:598:64: error: 'View' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:597:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
595 | var visibleWidth: Double
596 |
597 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:844:27: error: 'DragGesture' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:920:25: error: 'DragGesture' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
918 | }
919 |
920 | func onEnded(value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
921 | latestDragGestureValueBackup = nil
922 | let velocity = velocity.dx / currentOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:927:21: error: 'DragGesture' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:971:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
972 | backgroundColor: Color = Color.primary.opacity(0.1),
973 | highlightOpacity: Double = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:972:26: error: 'Color' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
973 | highlightOpacity: Double = 0.5,
974 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:972:34: error: 'Color' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
973 | highlightOpacity: Double = 0.5,
974 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:972:40: error: 'primary' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'primary' is only available in macOS 10.15 or newer
973 | highlightOpacity: Double = 0.5,
974 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:972:48: error: 'opacity' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'opacity' is only available in macOS 10.15 or newer
973 | highlightOpacity: Double = 0.5,
974 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:969:45: error: 'Text' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
970 | init(
971 | _ title: LocalizedStringKey,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:969:65: error: 'Color' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
970 | init(
971 | _ title: LocalizedStringKey,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:988:26: error: 'Color' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
989 | highlightOpacity: Double = 0.5,
990 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:988:34: error: 'Color' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
989 | highlightOpacity: Double = 0.5,
990 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:988:40: error: 'primary' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'primary' is only available in macOS 10.15 or newer
989 | highlightOpacity: Double = 0.5,
990 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:988:48: error: 'opacity' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'opacity' is only available in macOS 10.15 or newer
989 | highlightOpacity: Double = 0.5,
990 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:985:45: error: 'Image' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
986 | init(
987 | systemImage: String,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:985:66: error: 'Color' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
986 | init(
987 | systemImage: String,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1003:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1005:20: error: 'Font' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
| `- error: 'Font' is only available in macOS 10.15 or newer
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
1007 | highlightOpacity: Double = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:26: error: 'Color' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
1007 | highlightOpacity: Double = 0.5,
1008 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1005:29: error: 'title2' is only available in macOS 11.0 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
| `- error: 'title2' is only available in macOS 11.0 or newer
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
1007 | highlightOpacity: Double = 0.5,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:34: error: 'Color' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'Color' is only available in macOS 10.15 or newer
1007 | highlightOpacity: Double = 0.5,
1008 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:40: error: 'primary' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'primary' is only available in macOS 10.15 or newer
1007 | highlightOpacity: Double = 0.5,
1008 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1006:48: error: 'opacity' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| `- note: add @available attribute to enclosing extension
1002 | init(
| `- note: add @available attribute to enclosing initializer
1003 | _ title: LocalizedStringKey,
1004 | systemImage: String,
1005 | imageFont: Font? = .title2,
1006 | backgroundColor: Color = Color.primary.opacity(0.1),
| `- error: 'opacity' is only available in macOS 10.15 or newer
1007 | highlightOpacity: Double = 0.5,
1008 | action: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1001:45: error: 'VStack' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| | `- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1002 | init(
1003 | _ title: LocalizedStringKey,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1001:149: error: 'Color' is only available in macOS 10.15 or newer
999 | }
1000 |
1001 | public extension SwipeAction where Label == VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Font?>>, Text)>>, Background == Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1002 | init(
1003 | _ title: LocalizedStringKey,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1027:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1023 |
1024 | /// A `SwipeView` with leading actions only.
1025 | public extension SwipeView where TrailingActions == EmptyView {
| `- note: add @available attribute to enclosing extension
1026 | init(
| `- note: add @available attribute to enclosing initializer
1027 | @ViewBuilder label: @escaping () -> Label,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
1028 | @ViewBuilder leadingActions: @escaping (SwipeContext) -> LeadingActions
1029 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1028:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1023 |
1024 | /// A `SwipeView` with leading actions only.
1025 | public extension SwipeView where TrailingActions == EmptyView {
| `- note: add @available attribute to enclosing extension
1026 | init(
| `- note: add @available attribute to enclosing initializer
1027 | @ViewBuilder label: @escaping () -> Label,
1028 | @ViewBuilder leadingActions: @escaping (SwipeContext) -> LeadingActions
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
1029 | ) {
1030 | self.init(label: label, leadingActions: leadingActions) { _ in }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1025:53: error: 'EmptyView' is only available in macOS 10.15 or newer
1023 |
1024 | /// A `SwipeView` with leading actions only.
1025 | public extension SwipeView where TrailingActions == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1026 | init(
1027 | @ViewBuilder label: @escaping () -> Label,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1037:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1033 |
1034 | /// A `SwipeView` with trailing actions only.
1035 | public extension SwipeView where LeadingActions == EmptyView {
| `- note: add @available attribute to enclosing extension
1036 | init(
| `- note: add @available attribute to enclosing initializer
1037 | @ViewBuilder label: @escaping () -> Label,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
1038 | @ViewBuilder trailingActions: @escaping (SwipeContext) -> TrailingActions
1039 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1038:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1033 |
1034 | /// A `SwipeView` with trailing actions only.
1035 | public extension SwipeView where LeadingActions == EmptyView {
| `- note: add @available attribute to enclosing extension
1036 | init(
| `- note: add @available attribute to enclosing initializer
1037 | @ViewBuilder label: @escaping () -> Label,
1038 | @ViewBuilder trailingActions: @escaping (SwipeContext) -> TrailingActions
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
1039 | ) {
1040 | self.init(label: label, leadingActions: { _ in }, trailingActions: trailingActions)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1035:52: error: 'EmptyView' is only available in macOS 10.15 or newer
1033 |
1034 | /// A `SwipeView` with trailing actions only.
1035 | public extension SwipeView where LeadingActions == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1036 | init(
1037 | @ViewBuilder label: @escaping () -> Label,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1046:11: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1043 |
1044 | /// A `SwipeView` with no actions.
1045 | public extension SwipeView where LeadingActions == EmptyView, TrailingActions == EmptyView {
| `- note: add @available attribute to enclosing extension
1046 | init(@ViewBuilder label: @escaping () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
1047 | self.init(label: label) { _ in } trailingActions: { _ in }
1048 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1045:52: error: 'EmptyView' is only available in macOS 10.15 or newer
1043 |
1044 | /// A `SwipeView` with no actions.
1045 | public extension SwipeView where LeadingActions == EmptyView, TrailingActions == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1046 | init(@ViewBuilder label: @escaping () -> Label) {
1047 | self.init(label: label) { _ in } trailingActions: { _ in }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1045:82: error: 'EmptyView' is only available in macOS 10.15 or newer
1043 |
1044 | /// A `SwipeView` with no actions.
1045 | public extension SwipeView where LeadingActions == EmptyView, TrailingActions == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1046 | init(@ViewBuilder label: @escaping () -> Label) {
1047 | self.init(label: label) { _ in } trailingActions: { _ in }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1071:60: error: 'View' is only available in macOS 10.15 or newer
1051 | // MARK: - Convenience modifiers
1052 |
1053 | public extension SwipeAction {
| `- note: add @available attribute to enclosing extension
1054 | /**
1055 | Apply this to the edge action to enable drag-to-trigger.
:
1069 | }
1070 | */
1071 | func allowSwipeToTrigger(_ value: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
1072 | var view = self
1073 | view.allowSwipeToTrigger = value
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1199:54: error: 'Animation' is only available in macOS 10.15 or newer
1097 | }
1098 |
1099 | public extension SwipeView {
| `- note: add @available attribute to enclosing extension
1100 | /// The minimum distance needed to drag to start the gesture. Should be more than 0 for best compatibility with other gestures/buttons.
1101 | func swipeMinimumDistance(_ value: Double) -> SwipeView {
:
1197 |
1198 | /// The animation used for adjusting the content's view when it's triggered.
1199 | func swipeActionContentTriggerAnimation(_ value: Animation) -> SwipeView {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
1200 | var view = self
1201 | view.options.actionContentTriggerAnimation = value
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1234:48: error: 'View' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | 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
1235 | content
1236 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1247:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
1243 | }
1244 |
1245 | public extension AnyTransition {
| `- note: add @available attribute to enclosing extension
1246 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1247 | static var swipeDelete: AnyTransition {
| | `- error: 'AnyTransition' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
1248 | .modifier(
1249 | active: SwipeDeleteModifier(visibility: 0),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1245:18: error: 'AnyTransition' is only available in macOS 10.15 or newer
1243 | }
1244 |
1245 | public extension AnyTransition {
| | `- error: 'AnyTransition' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1246 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1247 | static var swipeDelete: AnyTransition {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1259:42: error: 'Path' is only available in macOS 10.15 or newer
1254 |
1255 | /// Custom shape that changes height as `animatableData` changes.
1256 | public struct SwipeDeleteMaskShape: Shape {
| `- note: add @available attribute to enclosing struct
1257 | public var animatableData: Double
1258 |
1259 | 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
1260 | var maskRect = rect
1261 | maskRect.size.height = rect.size.height * animatableData
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1272:64: error: 'View' is only available in macOS 10.15 or newer
1267 |
1268 | /// A style to remove the "press" effect on buttons.
1269 | public struct SwipeActionButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
1270 | public init() {}
1271 |
1272 | 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
1273 | return configuration.label
1274 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1306:26: error: 'DragGesture' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
| `- error: 'DragGesture' is only available in macOS 10.15 or newer
1307 | @State var current: DragGesture.Value?
1308 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1306:6: error: 'State' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
| `- error: 'State' is only available in macOS 10.15 or newer
1307 | @State var current: DragGesture.Value?
1308 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1307:25: error: 'DragGesture' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
| `- error: 'DragGesture' is only available in macOS 10.15 or newer
1308 |
1309 | func update(_ value: DragGesture.Value) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1307:6: error: 'State' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
| `- error: 'State' is only available in macOS 10.15 or newer
1308 |
1309 | func update(_ value: DragGesture.Value) {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1309:26: error: 'DragGesture' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
1308 |
1309 | func update(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
1310 | if current != nil {
1311 | previous = current
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1353:59: error: '_EndedGesture' is only available in macOS 10.15 or newer
1350 | }
1351 |
1352 | extension Gesture where Value == DragGesture.Value {
| `- note: add @available attribute to enclosing extension
1353 | 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
1354 | onChanged { value in
1355 | velocity.update(value)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1352:11: error: 'Gesture' is only available in macOS 10.15 or newer
1350 | }
1351 |
1352 | extension Gesture where Value == DragGesture.Value {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1353 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
1354 | onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1352:34: error: 'DragGesture' is only available in macOS 10.15 or newer
1350 | }
1351 |
1352 | extension Gesture where Value == DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1353 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
1354 | onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1369:61: error: 'View' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | 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
1370 | return background(
1371 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1368:11: error: 'View' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
1370 | 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:219:14: error: 'environment' is only available in macOS 10.15 or newer
206 |
207 | */
208 | public struct SwipeViewGroup<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
209 | @ViewBuilder var content: () -> Content
210 |
:
215 | }
216 |
217 | public var body: some View {
| `- note: add @available attribute to enclosing property
218 | content()
219 | .environment(\.swipeViewGroupSelection, $selection)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | }
221 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:271:29: error: 'Alignment' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
| |- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return .center }
273 | if swipeContext.numberOfActions == 1 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:272:79: error: 'center' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
272 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return .center }
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
273 | if swipeContext.numberOfActions == 1 {
274 | if swipeContext.state.wrappedValue == .triggering || swipeContext.state.wrappedValue == .triggered {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:278:21: error: 'center' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
276 | }
277 | }
278 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
279 | }()
280 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:289:9: error: 'Button' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
287 | }()
288 |
289 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | background(highlighted)
291 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:291:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
289 | Button(action: action) {
290 | background(highlighted)
291 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
292 | label(highlighted)
293 | .opacity(labelOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:293:26: error: 'opacity' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
291 | .overlay(
292 | label(highlighted)
293 | .opacity(labelOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
294 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
295 | .padding(.horizontal, labelHorizontalPadding),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:294:26: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
292 | label(highlighted)
293 | .opacity(labelOpacity)
294 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | .padding(.horizontal, labelHorizontalPadding),
296 | alignment: labelAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:295:26: error: 'padding' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
293 | .opacity(labelOpacity)
294 | .fixedSize(horizontal: labelFixedSize, vertical: labelFixedSize)
295 | .padding(.horizontal, labelHorizontalPadding),
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
296 | alignment: labelAlignment
297 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:299:10: error: 'opacity' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
297 | )
298 | }
299 | .opacity(totalOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
300 | ._onButtonGesture { pressing in
301 | self.highlighted = pressing
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:300:10: error: '_onButtonGesture(pressing:perform:)' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
298 | }
299 | .opacity(totalOpacity)
300 | ._onButtonGesture { pressing in
| |- error: '_onButtonGesture(pressing:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | self.highlighted = pressing
302 | } perform: {}
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:301:13: error: setter for 'highlighted' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
299 | .opacity(totalOpacity)
300 | ._onButtonGesture { pressing in
301 | self.highlighted = pressing
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | } perform: {}
303 | .buttonStyle(SwipeActionButtonStyle())
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:303:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
301 | self.highlighted = pressing
302 | } perform: {}
303 | .buttonStyle(SwipeActionButtonStyle())
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | .onChange(of: swipeContext.state.wrappedValue) { state in /// Read changes in state.
305 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:304:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
302 | } perform: {}
303 | .buttonStyle(SwipeActionButtonStyle())
304 | .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
305 | guard let allowSwipeToTrigger, allowSwipeToTrigger else { return }
306 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:309:21: error: setter for 'highlighted' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
307 | if let state {
308 | if state == .triggering || state == .triggered {
309 | highlighted = true
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
310 | } else {
311 | highlighted = false
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:311:21: error: setter for 'highlighted' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
309 | highlighted = true
310 | } else {
311 | highlighted = false
| |- error: setter for 'highlighted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | }
313 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:318:17: error: setter for 'highlighted' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
316 | }
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:321:10: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
224 |
225 | /// For use in `SwipeView`'s `leading` or `trailing` side.
226 | public struct SwipeAction<Label: View, Background: View>: View {
| `- note: add @available attribute to enclosing generic struct
227 | // MARK: - Properties
228 |
:
267 | }
268 |
269 | public var body: some View {
| `- note: add @available attribute to enclosing property
270 | /// Usually `.center`, but if there's only one action and it's triggered, move it closer to the center.
271 | let labelAlignment: Alignment = {
:
319 | }
320 | }
321 | .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
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:461:33: error: cannot find 'UIImpactFeedbackGenerator' in scope
459 |
460 | if changed, options.enableTriggerHaptics { /// Generate haptic feedback if necessary.
461 | let generator = UIImpactFeedbackGenerator(style: .rigid)
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
462 | generator.impactOccurred()
463 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:472:33: error: cannot find 'UIImpactFeedbackGenerator' in scope
470 |
471 | if changed, options.enableTriggerHaptics {
472 | let generator = UIImpactFeedbackGenerator(style: .rigid)
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
473 | generator.impactOccurred()
474 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:400:32: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
398 | }
399 |
400 | public var body: some View {
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
401 | HStack {
402 | label()
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:543:9: error: '_VariadicView' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
541 | }()
542 |
543 | _VariadicView.Tree(
| |- error: '_VariadicView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
544 | SwipeActionsLayout(
545 | numberOfActions: numberOfActions,
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:552:32: error: 'Binding' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
550 | )
551 | ) {
552 | let stateBinding = Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
553 | state.wrappedValue
554 | } set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:558:21: error: setter for 'currentSide' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
556 |
557 | if newValue == .closed {
558 | 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
559 | } else {
560 | currentSide = side /// Set the current side to the action's side.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:560:21: error: setter for 'currentSide' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
558 | currentSide = nil /// If closed, set `currentSide` to nil.
559 | } else {
560 | 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
561 | }
562 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:577:10: error: 'mask' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
575 | actions(context) /// Call the `actions` view and pass in context.
576 | }
577 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
578 | Color.clear.overlay(
579 | /// Clip the swipe actions as they're being revealed.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:578:13: error: 'Color' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
576 | }
577 | .mask(
578 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
579 | /// Clip the swipe actions as they're being revealed.
580 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:578:19: error: 'clear' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
576 | }
577 | .mask(
578 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
579 | /// Clip the swipe actions as they're being revealed.
580 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:578:25: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
576 | }
577 | .mask(
578 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
579 | /// Clip the swipe actions as they're being revealed.
580 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:580:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
578 | Color.clear.overlay(
579 | /// Clip the swipe actions as they're being revealed.
580 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
581 | .frame(width: visibleWidth),
582 | alignment: side.alignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:581:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
512 | // MARK: - Actions view
513 |
514 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
515 | /// The swipe actions.
516 | @ViewBuilder func actionsView<Actions: View>(
| `- note: add @available attribute to enclosing instance method
517 | side: SwipeSide,
518 | state: Binding<SwipeState?>,
:
579 | /// Clip the swipe actions as they're being revealed.
580 | RoundedRectangle(cornerRadius: options.actionsMaskCornerRadius, style: .continuous)
581 | .frame(width: visibleWidth),
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
582 | alignment: side.alignment
583 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:603: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
601 | switch side {
602 | case .leading:
603 | 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
604 | case .trailing:
605 | return children.last?.id
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:605: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
603 | return children.first?.id
604 | case .trailing:
605 | 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
606 | }
607 | }()
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:609:9: error: 'HStack' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
607 | }()
608 |
609 | HStack(spacing: options.spacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
610 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
611 | let isEdge = child.id == edgeID
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
608 |
609 | HStack(spacing: options.spacing) {
610 | ForEach(Array(zip(children.indices, children)), id: \.1.id) { index, child in
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
611 | let isEdge = child.id == edgeID
612 |
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610:13: error: 'ForEach' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:662: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
660 | switch side {
661 | case .leading:
662 | 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
663 | case .trailing:
664 | return index
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:668:21: error: 'Color' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
666 | }()
667 |
668 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
669 | child
670 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:668:27: error: 'clear' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
666 | }()
667 |
668 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
669 | child
670 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:668:33: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
666 | }()
667 |
668 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
669 | child
670 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:670:30: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
668 | Color.clear.overlay(
669 | child
670 | .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
671 | .frame(width: width)
672 | .opacity(shown ? 1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:671:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
669 | child
670 | .frame(maxHeight: .infinity)
671 | .frame(width: width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
672 | .opacity(shown ? 1 : 0)
673 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:672:30: error: 'opacity' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
670 | .frame(maxHeight: .infinity)
671 | .frame(width: width)
672 | .opacity(shown ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
673 | .mask(
674 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:673:30: error: 'mask' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
671 | .frame(width: width)
672 | .opacity(shown ? 1 : 0)
673 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
674 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
675 | ),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:674:33: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
672 | .opacity(shown ? 1 : 0)
673 | .mask(
674 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
675 | ),
676 | alignment: side.edgeTriggerAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:678:22: error: 'zIndex' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
676 | alignment: side.edgeTriggerAlignment
677 | )
678 | .zIndex(Double(zIndex))
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
679 | } else {
680 | child
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:657:53: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
655 | }()
656 |
657 | if options.actionsStyle == .cascade {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
658 | /// Overlapping views require a `zIndex`.
659 | let zIndex: Int = {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:681:26: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
679 | } else {
680 | child
681 | .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
682 | .frame(width: width)
683 | .opacity(shown ? 1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:682:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
680 | child
681 | .frame(maxHeight: .infinity)
682 | .frame(width: width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
683 | .opacity(shown ? 1 : 0)
684 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:683:26: error: 'opacity' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
681 | .frame(maxHeight: .infinity)
682 | .frame(width: width)
683 | .opacity(shown ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
684 | .mask(
685 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:684:26: error: 'mask' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
682 | .frame(width: width)
683 | .opacity(shown ? 1 : 0)
684 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
685 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
686 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:685:29: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
683 | .opacity(shown ? 1 : 0)
684 | .mask(
685 | RoundedRectangle(cornerRadius: options.actionCornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
686 | )
687 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:679:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
677 | )
678 | .zIndex(Double(zIndex))
679 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
680 | child
681 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:610: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
608 |
609 | HStack(spacing: options.spacing) {
610 | 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
611 | let isEdge = child.id == edgeID
612 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:690:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
688 | }
689 | }
690 | .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
691 | .animation(options.actionContentTriggerAnimation, value: state)
692 | .onAppear { /// Set the number of actions here.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:691:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
689 | }
690 | .frame(width: options.actionsStyle == .cascade ? visibleWidth : nil)
691 | .animation(options.actionContentTriggerAnimation, value: state)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
692 | .onAppear { /// Set the number of actions here.
693 | numberOfActions = children.count
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:692:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
690 | .frame(width: options.actionsStyle == .cascade ? visibleWidth : nil)
691 | .animation(options.actionContentTriggerAnimation, value: state)
692 | .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
693 | numberOfActions = children.count
694 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:693:13: error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
691 | .animation(options.actionContentTriggerAnimation, value: state)
692 | .onAppear { /// Set the number of actions here.
693 | numberOfActions = children.count
| |- error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
694 | }
695 | .onChange(of: children.count) { count in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:693: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
691 | .animation(options.actionContentTriggerAnimation, value: state)
692 | .onAppear { /// Set the number of actions here.
693 | 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
694 | }
695 | .onChange(of: children.count) { count in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:695:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
693 | numberOfActions = children.count
694 | }
695 | .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
696 | numberOfActions = count
697 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:695: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
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
693 | numberOfActions = children.count
694 | }
695 | .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
696 | numberOfActions = count
697 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:696:13: error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
588 | // MARK: - Actions Layout
589 |
590 | struct SwipeActionsLayout: _VariadicView_UnaryViewRoot {
| `- note: add @available attribute to enclosing struct
591 | @Binding var numberOfActions: Int
592 | var side: SwipeSide
:
596 |
597 | @ViewBuilder
598 | public func body(children: _VariadicView.Children) -> some View {
| `- note: add @available attribute to enclosing instance method
599 | /// The ID of the edge action.
600 | let edgeID: AnyHashable? = {
:
694 | }
695 | .onChange(of: children.count) { count in
696 | numberOfActions = count
| |- error: setter for 'numberOfActions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
697 | }
698 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:810:9: error: 'withAnimation' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
807 | }
808 |
809 | func close(velocity: Double) {
| `- note: add @available attribute to enclosing instance method
810 | 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
811 | savedOffset = 0
812 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:810:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
807 | }
808 |
809 | func close(velocity: Double) {
| `- note: add @available attribute to enclosing instance method
810 | 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
811 | savedOffset = 0
812 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:811:13: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
807 | }
808 |
809 | func close(velocity: Double) {
| `- note: add @available attribute to enclosing instance method
810 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
811 | savedOffset = 0
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
812 | currentOffset = 0
813 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:812:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
807 | }
808 |
809 | func close(velocity: Double) {
| `- note: add @available attribute to enclosing instance method
810 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
811 | savedOffset = 0
812 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
813 | }
814 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:817:9: error: 'withAnimation' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
814 | }
815 |
816 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
817 | 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
818 | switch side {
819 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:817:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
814 | }
815 |
816 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
817 | 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
818 | switch side {
819 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:820:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
814 | }
815 |
816 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
817 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
818 | switch side {
819 | case .leading:
820 | savedOffset = leadingTriggeredOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
821 | case .trailing:
822 | savedOffset = trailingTriggeredOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:822:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
814 | }
815 |
816 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
817 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
818 | switch side {
:
820 | savedOffset = leadingTriggeredOffset
821 | case .trailing:
822 | savedOffset = trailingTriggeredOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
823 | }
824 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:824:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
814 | }
815 |
816 | func trigger(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
817 | withAnimation(.interpolatingSpring(stiffness: options.offsetTriggerAnimationStiffness, damping: options.offsetTriggerAnimationDamping, initialVelocity: velocity)) {
818 | switch side {
:
822 | savedOffset = trailingTriggeredOffset
823 | }
824 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
825 | }
826 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:829:9: error: 'withAnimation' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
826 | }
827 |
828 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
829 | 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
830 | switch side {
831 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:829:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
826 | }
827 |
828 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
829 | 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
830 | switch side {
831 | case .leading:
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:832:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
826 | }
827 |
828 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
829 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
830 | switch side {
831 | case .leading:
832 | savedOffset = leadingExpandedOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
833 | case .trailing:
834 | savedOffset = trailingExpandedOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:834:17: error: setter for 'savedOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
826 | }
827 |
828 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
829 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
830 | switch side {
:
832 | savedOffset = leadingExpandedOffset
833 | case .trailing:
834 | savedOffset = trailingExpandedOffset
| |- error: setter for 'savedOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
835 | }
836 | currentOffset = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:836:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
791 | // MARK: - State
792 |
793 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
794 | /// Call this after programmatically setting the state to update the view's offset.
795 | func updateOffset(side: SwipeSide, to state: SwipeState?) {
:
826 | }
827 |
828 | func expand(side: SwipeSide, velocity: Double) {
| `- note: add @available attribute to enclosing instance method
829 | withAnimation(.interpolatingSpring(stiffness: options.offsetExpandAnimationStiffness, damping: options.offsetExpandAnimationDamping, initialVelocity: velocity)) {
830 | switch side {
:
834 | savedOffset = trailingExpandedOffset
835 | }
836 | currentOffset = 0
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
837 | }
838 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:846:9: error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
| |- error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
847 |
848 | /// Set the current side.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:852:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
850 | let dx = value.location.x - value.startLocation.x
851 | if dx > 0 {
852 | currentSide = .leading
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
853 | } else {
854 | currentSide = .trailing
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:854:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
852 | currentSide = .leading
853 | } else {
854 | currentSide = .trailing
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
855 | }
856 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:867:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
865 | if numberOfLeadingActions == 0 || disallowedSide == .leading, totalOffset > 0 {
866 | let constrainedExceededOffset = pow(totalOffset, options.stretchRubberBandingPower)
867 | currentOffset = constrainedExceededOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
868 | leadingState = nil
869 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:868:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
866 | let constrainedExceededOffset = pow(totalOffset, options.stretchRubberBandingPower)
867 | currentOffset = constrainedExceededOffset - savedOffset
868 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
869 | trailingState = nil
870 | } else if numberOfTrailingActions == 0 || disallowedSide == .trailing, totalOffset < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:869:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
867 | currentOffset = constrainedExceededOffset - savedOffset
868 | leadingState = nil
869 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
870 | } else if numberOfTrailingActions == 0 || disallowedSide == .trailing, totalOffset < 0 {
871 | let constrainedExceededOffset = -pow(-totalOffset, options.stretchRubberBandingPower)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:872:13: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
870 | } else if numberOfTrailingActions == 0 || disallowedSide == .trailing, totalOffset < 0 {
871 | let constrainedExceededOffset = -pow(-totalOffset, options.stretchRubberBandingPower)
872 | currentOffset = constrainedExceededOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
873 | leadingState = nil
874 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:873:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
871 | let constrainedExceededOffset = -pow(-totalOffset, options.stretchRubberBandingPower)
872 | currentOffset = constrainedExceededOffset - savedOffset
873 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
874 | trailingState = nil
875 | } else { /// Otherwise, attempt to trigger the swipe actions.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:874:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
872 | currentOffset = constrainedExceededOffset - savedOffset
873 | leadingState = nil
874 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
875 | } else { /// Otherwise, attempt to trigger the swipe actions.
876 | /// Flag to keep track of whether `currentOffset` was set or not — if `false`, then set to the default of `value.translation.width`.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:882:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
880 | setCurrentOffset = true
881 | if swipeToTriggerLeadingEdge {
882 | currentOffset = value.translation.width
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
883 | leadingState = .triggering
884 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:883:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
881 | if swipeToTriggerLeadingEdge {
882 | currentOffset = value.translation.width
883 | leadingState = .triggering
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
884 | trailingState = nil
885 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:884:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
882 | currentOffset = value.translation.width
883 | leadingState = .triggering
884 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
885 | } else {
886 | let exceededOffset = totalOffset - leadingReadyToTriggerOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:889:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
887 | let constrainedExceededOffset = pow(exceededOffset, options.stretchRubberBandingPower)
888 | let constrainedTotalOffset = leadingReadyToTriggerOffset + constrainedExceededOffset
889 | currentOffset = constrainedTotalOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
890 | leadingState = nil
891 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:890:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
888 | let constrainedTotalOffset = leadingReadyToTriggerOffset + constrainedExceededOffset
889 | currentOffset = constrainedTotalOffset - savedOffset
890 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
891 | trailingState = nil
892 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:891:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
889 | currentOffset = constrainedTotalOffset - savedOffset
890 | leadingState = nil
891 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
892 | }
893 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:898:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
896 | setCurrentOffset = true
897 | if swipeToTriggerTrailingEdge {
898 | currentOffset = value.translation.width
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
899 | trailingState = .triggering
900 | leadingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:899:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
897 | if swipeToTriggerTrailingEdge {
898 | currentOffset = value.translation.width
899 | trailingState = .triggering
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
900 | leadingState = nil
901 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:900:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
898 | currentOffset = value.translation.width
899 | trailingState = .triggering
900 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
901 | } else {
902 | let exceededOffset = totalOffset - trailingReadyToTriggerOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:905:21: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
903 | let constrainedExceededOffset = -pow(-exceededOffset, options.stretchRubberBandingPower)
904 | let constrainedTotalOffset = trailingReadyToTriggerOffset + constrainedExceededOffset
905 | currentOffset = constrainedTotalOffset - savedOffset
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
906 | leadingState = nil
907 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:906:21: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
904 | let constrainedTotalOffset = trailingReadyToTriggerOffset + constrainedExceededOffset
905 | currentOffset = constrainedTotalOffset - savedOffset
906 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
907 | trailingState = nil
908 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:907:21: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
905 | currentOffset = constrainedTotalOffset - savedOffset
906 | leadingState = nil
907 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
908 | }
909 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:913:17: error: setter for 'currentOffset' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
911 | /// If the offset wasn't modified already (due to rubber banding), use `value.translation.width` as the default.
912 | if !setCurrentOffset {
913 | currentOffset = value.translation.width
| |- error: setter for 'currentOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
914 | leadingState = nil
915 | trailingState = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:914:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
912 | if !setCurrentOffset {
913 | currentOffset = value.translation.width
914 | leadingState = nil
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
915 | trailingState = nil
916 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:915:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
845 | /// Back up the value.
846 | latestDragGestureValueBackup = value
:
913 | currentOffset = value.translation.width
914 | leadingState = nil
915 | trailingState = nil
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
916 | }
917 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:921:9: error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
918 | }
919 |
920 | func onEnded(value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
921 | latestDragGestureValueBackup = nil
| |- error: setter for 'latestDragGestureValueBackup' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
922 | let velocity = velocity.dx / currentOffset
923 | end(value: value, velocity: velocity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:932:13: error: setter for 'currentSide' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
930 |
931 | if getDisallowedSide(totalOffset: totalPredictedOffset) != nil {
932 | currentSide = nil
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
933 | leadingState = .closed
934 | trailingState = .closed
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:933:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
931 | if getDisallowedSide(totalOffset: totalPredictedOffset) != nil {
932 | currentSide = nil
933 | leadingState = .closed
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
934 | trailingState = .closed
935 | close(velocity: velocity)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:934:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
932 | currentSide = nil
933 | leadingState = .closed
934 | trailingState = .closed
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
935 | close(velocity: velocity)
936 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:940:13: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
938 |
939 | if trailingState == .triggering {
940 | trailingState = .triggered
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
941 | trigger(side: .trailing, velocity: velocity)
942 | } else if leadingState == .triggering {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:943:13: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
941 | trigger(side: .trailing, velocity: velocity)
942 | } else if leadingState == .triggering {
943 | leadingState = .triggered
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
944 | trigger(side: .leading, velocity: velocity)
945 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:947:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
945 | } else {
946 | if totalPredictedOffset > leadingReadyToExpandOffset, numberOfLeadingActions > 0 {
947 | leadingState = .expanded
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
948 | expand(side: .leading, velocity: velocity)
949 | } else if totalPredictedOffset < trailingReadyToExpandOffset, numberOfTrailingActions > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:950:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
948 | expand(side: .leading, velocity: velocity)
949 | } else if totalPredictedOffset < trailingReadyToExpandOffset, numberOfTrailingActions > 0 {
950 | trailingState = .expanded
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
951 | expand(side: .trailing, velocity: velocity)
952 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:953:17: error: setter for 'currentSide' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
951 | expand(side: .trailing, velocity: velocity)
952 | } else {
953 | currentSide = nil
| |- error: setter for 'currentSide' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
954 | leadingState = .closed
955 | trailingState = .closed
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:954:17: error: setter for 'leadingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
952 | } else {
953 | currentSide = nil
954 | leadingState = .closed
| |- error: setter for 'leadingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
955 | trailingState = .closed
956 | let draggedPastTrailingSide = totalOffset > 0
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:955:17: error: setter for 'trailingState' is only available in macOS 10.15 or newer
841 | // MARK: - Gestures
842 |
843 | extension SwipeView {
| `- note: add @available attribute to enclosing extension
844 | func onChanged(value: DragGesture.Value) {
845 | /// Back up the value.
:
925 |
926 | /// Represents the end of a gesture.
927 | func end(value: DragGesture.Value, velocity: CGFloat) {
| `- note: add @available attribute to enclosing instance method
928 | let totalOffset = savedOffset + value.translation.width
929 | let totalPredictedOffset = (savedOffset + value.predictedEndTranslation.width) * 0.5
:
953 | currentSide = nil
954 | leadingState = .closed
955 | trailingState = .closed
| |- error: setter for 'trailingState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
956 | let draggedPastTrailingSide = totalOffset > 0
957 | if draggedPastTrailingSide { /// if the finger is on the right of the view, make the velocity negative to return to closed quicker.
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:976: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
974 | action: @escaping () -> Void
975 | ) {
976 | 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
977 | Text(title)
978 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:976: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
974 | action: @escaping () -> Void
975 | ) {
976 | 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
977 | Text(title)
978 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:977: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
975 | ) {
976 | self.init(action: action) { highlight in
977 | 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
978 | } background: { highlight in
979 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:977:13: error: 'Text' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
975 | ) {
976 | self.init(action: action) { highlight in
977 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
978 | } background: { highlight in
979 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:977:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
975 | ) {
976 | self.init(action: action) { highlight in
977 | Text(title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
978 | } background: { highlight in
979 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:976: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
974 | action: @escaping () -> Void
975 | ) {
976 | 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
977 | Text(title)
978 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:979: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
977 | Text(title)
978 | } background: { highlight in
979 | 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
980 | .opacity(highlight ? highlightOpacity : 1)
981 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:980:18: error: 'opacity' is only available in macOS 10.15 or newer
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
978 | } background: { highlight in
979 | backgroundColor
980 | .opacity(highlight ? highlightOpacity : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
981 | }
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:978: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
967 | // MARK: Convenience views
968 |
969 | public extension SwipeAction where Label == Text, Background == Color {
| `- note: add @available attribute to enclosing extension
970 | init(
| `- note: add @available attribute to enclosing initializer
971 | _ title: LocalizedStringKey,
972 | backgroundColor: Color = Color.primary.opacity(0.1),
:
976 | self.init(action: action) { highlight in
977 | Text(title)
978 | } 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
979 | backgroundColor
980 | .opacity(highlight ? highlightOpacity : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:992: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
990 | action: @escaping () -> Void
991 | ) {
992 | 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
993 | Image(systemName: systemImage)
994 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:992: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
990 | action: @escaping () -> Void
991 | ) {
992 | 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
993 | Image(systemName: systemImage)
994 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:993: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
991 | ) {
992 | self.init(action: action) { highlight in
993 | 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
994 | } background: { highlight in
995 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:993:13: error: 'Image' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
991 | ) {
992 | self.init(action: action) { highlight in
993 | Image(systemName: systemImage)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
994 | } background: { highlight in
995 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:993:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
991 | ) {
992 | self.init(action: action) { highlight in
993 | Image(systemName: systemImage)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
994 | } background: { highlight in
995 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:992: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
990 | action: @escaping () -> Void
991 | ) {
992 | 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
993 | Image(systemName: systemImage)
994 | } background: { highlight in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:995: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
993 | Image(systemName: systemImage)
994 | } background: { highlight in
995 | 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
996 | .opacity(highlight ? highlightOpacity : 1)
997 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:996:18: error: 'opacity' is only available in macOS 10.15 or newer
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
994 | } background: { highlight in
995 | backgroundColor
996 | .opacity(highlight ? highlightOpacity : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
997 | }
998 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:994: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
983 | }
984 |
985 | public extension SwipeAction where Label == Image, Background == Color {
| `- note: add @available attribute to enclosing extension
986 | init(
| `- note: add @available attribute to enclosing initializer
987 | systemImage: String,
988 | backgroundColor: Color = Color.primary.opacity(0.1),
:
992 | self.init(action: action) { highlight in
993 | Image(systemName: systemImage)
994 | } 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
995 | backgroundColor
996 | .opacity(highlight ? highlightOpacity : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1010:35: error: conflicting arguments to generic parameter 'Content' ('VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Optional<Font>>>, Text)>>' vs. 'VStack<TupleView<(some View, Text)>>')
1008 | action: @escaping () -> Void
1009 | ) {
1010 | self.init(action: action) { highlight in
| `- error: conflicting arguments to generic parameter 'Content' ('VStack<TupleView<(ModifiedContent<Image, _EnvironmentKeyWritingModifier<Optional<Font>>>, Text)>>' vs. 'VStack<TupleView<(some View, Text)>>')
1011 | VStack(spacing: 8) {
1012 | Image(systemName: systemImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1236:14: error: 'mask' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
1235 | content
1236 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1237 | Color.clear.overlay(
1238 | SwipeDeleteMaskShape(animatableData: visibility),
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1237:17: error: 'Color' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
1235 | content
1236 | .mask(
1237 | Color.clear.overlay(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1238 | SwipeDeleteMaskShape(animatableData: visibility),
1239 | alignment: .top
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1237:23: error: 'clear' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
1235 | content
1236 | .mask(
1237 | Color.clear.overlay(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1238 | SwipeDeleteMaskShape(animatableData: visibility),
1239 | alignment: .top
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1237:29: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
1235 | content
1236 | .mask(
1237 | Color.clear.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1238 | SwipeDeleteMaskShape(animatableData: visibility),
1239 | alignment: .top
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1239:33: error: 'top' is only available in macOS 10.15 or newer
1229 |
1230 | /// Modifier for a clipped delete transition effect.
1231 | public struct SwipeDeleteModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
1232 | var visibility: Double
1233 |
1234 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
1235 | content
1236 | .mask(
1237 | Color.clear.overlay(
1238 | SwipeDeleteMaskShape(animatableData: visibility),
1239 | alignment: .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1240 | )
1241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1248:10: error: 'modifier(active:identity:)' is only available in macOS 10.15 or newer
1243 | }
1244 |
1245 | public extension AnyTransition {
| `- note: add @available attribute to enclosing extension
1246 | /// Transition that mimics iOS's default delete transition (clipped to the top).
1247 | static var swipeDelete: AnyTransition {
| `- note: add @available attribute to enclosing static property
1248 | .modifier(
| |- error: 'modifier(active:identity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1249 | active: SwipeDeleteModifier(visibility: 0),
1250 | identity: SwipeDeleteModifier(visibility: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1262:16: error: 'Path' is only available in macOS 10.15 or newer
1254 |
1255 | /// Custom shape that changes height as `animatableData` changes.
1256 | public struct SwipeDeleteMaskShape: Shape {
| `- note: add @available attribute to enclosing struct
1257 | public var animatableData: Double
1258 |
1259 | public func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
1260 | var maskRect = rect
1261 | maskRect.size.height = rect.size.height * animatableData
1262 | return Path(maskRect)
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1263 | }
1264 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1311:13: error: setter for 'previous' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
1308 |
1309 | func update(_ value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
1310 | if current != nil {
1311 | previous = current
| |- error: setter for 'previous' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1312 | }
1313 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1314:9: error: setter for 'current' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
1308 |
1309 | func update(_ value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
1310 | if current != nil {
1311 | previous = current
1312 | }
1313 |
1314 | current = value
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1315 | }
1316 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1318:9: error: setter for 'previous' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
:
1315 | }
1316 |
1317 | func reset() {
| `- note: add @available attribute to enclosing instance method
1318 | previous = nil
| |- error: setter for 'previous' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1319 | current = nil
1320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1319:9: error: setter for 'current' is only available in macOS 10.15 or newer
1303 | */
1304 | @propertyWrapper
1305 | struct GestureVelocity: DynamicProperty {
| `- note: add @available attribute to enclosing struct
1306 | @State var previous: DragGesture.Value?
1307 | @State var current: DragGesture.Value?
:
1315 | }
1316 |
1317 | func reset() {
| `- note: add @available attribute to enclosing instance method
1318 | previous = nil
1319 | current = nil
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1320 | }
1321 |
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1354:9: error: 'onChanged' is only available in macOS 10.15 or newer
1350 | }
1351 |
1352 | extension Gesture where Value == DragGesture.Value {
| `- note: add @available attribute to enclosing extension
1353 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
| `- note: add @available attribute to enclosing instance method
1354 | onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1355 | velocity.update(value)
1356 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1357:10: error: 'onEnded' is only available in macOS 10.15 or newer
1350 | }
1351 |
1352 | extension Gesture where Value == DragGesture.Value {
| `- note: add @available attribute to enclosing extension
1353 | func updatingVelocity(_ velocity: GestureVelocity) -> _EndedGesture<_ChangedGesture<Self>> {
| `- note: add @available attribute to enclosing instance method
1354 | onChanged { value in
1355 | velocity.update(value)
1356 | }
1357 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1358 | velocity.reset()
1359 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1370:16: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1371 | GeometryReader { geometry in
1372 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1371:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1372 | Color.clear
1373 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1372:17: error: 'Color' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
1372 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1373 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1374 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1372:23: error: 'clear' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
1372 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1373 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1374 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1373:22: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
1372 | Color.clear
1373 | .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
1374 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
1375 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1374:22: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
1372 | Color.clear
1373 | .preference(key: ContentSizeReaderPreferenceKey.self, value: geometry.size)
1374 | .onPreferenceChange(ContentSizeReaderPreferenceKey.self) { newValue in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1375 | DispatchQueue.main.async {
1376 | size(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwipeActions.swift:1380:14: error: 'hidden()' is only available in macOS 10.15 or newer
1366 | From https://stackoverflow.com/a/66822461/14351818
1367 | */
1368 | extension View {
| `- note: add @available attribute to enclosing extension
1369 | func readSize(size: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
1370 | return background(
1371 | GeometryReader { geometry in
:
1378 | }
1379 | }
1380 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
1381 | )
1382 | }
BUILD FAILURE 6.1 macosSpm