Build Information
Failed to build Swipy, reference main (791a11
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 13:41:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
157 | }
158 |
159 | public struct SwipyDefaults {
| `- note: add @available attribute to enclosing struct
160 | public static let swipeActionsMargin: SwipyHorizontalMargin = SwipyHorizontalMargin(leading: 0, trailing: 0)
161 | public static let swipeThreshold: @MainActor @Sendable (SwipyModel) -> Double = { $0.swipeActionsWidth }
162 | public static let swipeBehavior: SwipySwipeBehavior = .normal
163 | public static let scrollBehavior: SwipyScrollBehavior = .normal
164 | public static let swipeActions: @Sendable () -> EmptyView = { EmptyView() }
| | |- error: 'EmptyView' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static property
165 | }
166 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:169:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
170 | @Published public var isSwiping: Bool = false
171 | @Published public var isScrolling: Bool = false
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:170:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
| `- error: 'Published' is only available in macOS 10.15 or newer
171 | @Published public var isScrolling: Bool = false
172 | @Published public var isSwiped: Bool = false
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:171:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
171 | @Published public var isScrolling: Bool = false
| `- error: 'Published' is only available in macOS 10.15 or newer
172 | @Published public var isSwiped: Bool = false
173 | @Published public var swipeActionsWidth: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:172:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
171 | @Published public var isScrolling: Bool = false
172 | @Published public var isSwiped: Bool = false
| `- error: 'Published' is only available in macOS 10.15 or newer
173 | @Published public var swipeActionsWidth: Double = 0.0
174 | @Published public var contentSize: CGSize?
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:173:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
171 | @Published public var isScrolling: Bool = false
172 | @Published public var isSwiped: Bool = false
173 | @Published public var swipeActionsWidth: Double = 0.0
| `- error: 'Published' is only available in macOS 10.15 or newer
174 | @Published public var contentSize: CGSize?
175 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:174:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
172 | @Published public var isSwiped: Bool = false
173 | @Published public var swipeActionsWidth: Double = 0.0
174 | @Published public var contentSize: CGSize?
| `- error: 'Published' is only available in macOS 10.15 or newer
175 |
176 | @Published public var swipeActionsMargin = SwipyDefaults.swipeActionsMargin
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:176:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
174 | @Published public var contentSize: CGSize?
175 |
176 | @Published public var swipeActionsMargin = SwipyDefaults.swipeActionsMargin
| `- error: 'Published' is only available in macOS 10.15 or newer
177 | @Published public var swipeThreshold: @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold
178 | @Published public var swipeBehavior: SwipySwipeBehavior = SwipyDefaults.swipeBehavior
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:177:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
175 |
176 | @Published public var swipeActionsMargin = SwipyDefaults.swipeActionsMargin
177 | @Published public var swipeThreshold: @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold
| `- error: 'Published' is only available in macOS 10.15 or newer
178 | @Published public var swipeBehavior: SwipySwipeBehavior = SwipyDefaults.swipeBehavior
179 | @Published public var scrollBehavior: SwipyScrollBehavior = SwipyDefaults.scrollBehavior
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:178:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
176 | @Published public var swipeActionsMargin = SwipyDefaults.swipeActionsMargin
177 | @Published public var swipeThreshold: @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold
178 | @Published public var swipeBehavior: SwipySwipeBehavior = SwipyDefaults.swipeBehavior
| `- error: 'Published' is only available in macOS 10.15 or newer
179 | @Published public var scrollBehavior: SwipyScrollBehavior = SwipyDefaults.scrollBehavior
180 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:179:6: error: 'Published' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
177 | @Published public var swipeThreshold: @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold
178 | @Published public var swipeBehavior: SwipySwipeBehavior = SwipyDefaults.swipeBehavior
179 | @Published public var scrollBehavior: SwipyScrollBehavior = SwipyDefaults.scrollBehavior
| `- error: 'Published' is only available in macOS 10.15 or newer
180 |
181 | public init() {}
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:168:26: error: 'ObservableObject' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:195:64: error: 'View' is only available in macOS 10.15 or newer
192 | }
193 |
194 | public struct SwipyTouchableDisabledStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
195 | 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
196 | configuration.label.background(.clear)
197 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:204:6: error: 'Binding' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
203 |
204 | @Binding public var isSwipingAnItem: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
205 |
206 | @StateObject public var model: SwipyModel
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:206:6: error: 'StateObject' is only available in macOS 11.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
204 | @Binding public var isSwipingAnItem: Bool
205 |
206 | @StateObject public var model: SwipyModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
207 |
208 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:208:27: error: 'View' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:308:34: error: 'Binding' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:313:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
311 | swipeBehavior: SwipySwipeBehavior = SwipyDefaults.swipeBehavior,
312 | scrollBehavior: SwipyScrollBehavior = SwipyDefaults.scrollBehavior,
313 | @ViewBuilder content: @escaping (SwipyModel) -> C,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
314 | @ViewBuilder actions: @escaping () -> A = SwipyDefaults.swipeActions) {
315 | self.content = content
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:314:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
312 | scrollBehavior: SwipyScrollBehavior = SwipyDefaults.scrollBehavior,
313 | @ViewBuilder content: @escaping (SwipyModel) -> C,
314 | @ViewBuilder actions: @escaping () -> A = SwipyDefaults.swipeActions) {
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
315 | self.content = content
316 | self.actions = actions
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:200:42: error: 'View' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:200:51: error: 'View' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:329:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
326 | }
327 |
328 | public struct SwipyAction<C>: View where C: View {
| `- note: add @available attribute to enclosing generic struct
329 | @EnvironmentObject public var model: SwipyModel
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
330 |
331 | public let content: (SwipyModel) -> C
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:333:27: error: 'View' is only available in macOS 10.15 or newer
326 | }
327 |
328 | public struct SwipyAction<C>: View where C: View {
| `- note: add @available attribute to enclosing generic struct
329 | @EnvironmentObject public var model: SwipyModel
330 |
331 | public let content: (SwipyModel) -> C
332 |
333 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
334 | VStack {
335 | content(model)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:339:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
326 | }
327 |
328 | public struct SwipyAction<C>: View where C: View {
| `- note: add @available attribute to enclosing generic struct
329 | @EnvironmentObject public var model: SwipyModel
330 |
:
337 | }
338 |
339 | public init(@ViewBuilder content: @escaping (SwipyModel) -> C) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
340 | self.content = content
341 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:328:45: error: 'View' is only available in macOS 10.15 or newer
326 | }
327 |
328 | public struct SwipyAction<C>: View where C: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
329 | @EnvironmentObject public var model: SwipyModel
330 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:345:6: error: 'State' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
| `- error: 'State' is only available in macOS 10.15 or newer
346 |
347 | @State var items: [String] = [
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:347:6: error: 'State' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
347 | @State var items: [String] = [
| `- error: 'State' is only available in macOS 10.15 or newer
348 | "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 8", "Item 9", "Item 10", "Item 11", "Item 12", "Item 13", "Item 14", "Item 15", "Item 16", "Item 17", "Item 18", "Item 19", "Item 20"
349 | ]
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:351:20: error: 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, CGSize>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, CGSize>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, Double>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, Double>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, CGSize?>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, CGSize?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, SwipyHorizontalMargin>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, SwipyHorizontalMargin>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, @MainActor @Sendable (SwipyModel) -> Double>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, @MainActor @Sendable (SwipyModel) -> Double>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, SwipySwipeBehavior>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, SwipySwipeBehavior>'
<unknown>:0: error: cannot convert value of type 'KeyPath<SwipyModel, SwipyScrollBehavior>' to expected argument type 'ReferenceWritableKeyPath<SwipyModel, SwipyScrollBehavior>'
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:452:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
450 | }
451 |
452 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
453 | Preview()
454 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:184:9: error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
181 | public init() {}
182 |
183 | public func swipe() {
| `- note: add @available attribute to enclosing instance method
184 | swipeOffset.width = -swipeThreshold(self)
| |- error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | isSwiped = true
186 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:185:9: error: setter for 'isSwiped' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
181 | public init() {}
182 |
183 | public func swipe() {
| `- note: add @available attribute to enclosing instance method
184 | swipeOffset.width = -swipeThreshold(self)
185 | isSwiped = true
| |- error: setter for 'isSwiped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:189:9: error: setter for 'isSwiped' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
186 | }
187 |
188 | public func unswipe() {
| `- note: add @available attribute to enclosing instance method
189 | isSwiped = false
| |- error: setter for 'isSwiped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | swipeOffset = .zero
191 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:190:9: error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
166 |
167 | @MainActor
168 | public class SwipyModel: ObservableObject {
| `- note: add @available attribute to enclosing class
169 | @Published public var swipeOffset: CGSize = .zero
170 | @Published public var isSwiping: Bool = false
:
186 | }
187 |
188 | public func unswipe() {
| `- note: add @available attribute to enclosing instance method
189 | isSwiped = false
190 | swipeOffset = .zero
| |- error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
191 | }
192 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:196:29: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
192 | }
193 |
194 | public struct SwipyTouchableDisabledStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
195 | public func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
196 | configuration.label.background(.clear)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:196:41: error: 'clear' is only available in macOS 10.15 or newer
192 | }
193 |
194 | public struct SwipyTouchableDisabledStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
195 | public func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
196 | configuration.label.background(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:213:9: error: 'ZStack' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
211 | let swipeActionOpacity = min(threshold, abs(model.swipeOffset.width)) / threshold
212 |
213 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | ZStack {
215 | HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:214:13: error: 'ZStack' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
212 |
213 | ZStack {
214 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | HStack(spacing: 0) {
216 | content(model)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:215:17: error: 'HStack' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
213 | ZStack {
214 | ZStack {
215 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
216 | content(model)
217 | .disabled(model.isSwiping || model.isSwiped)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:217:26: error: 'disabled' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
215 | HStack(spacing: 0) {
216 | content(model)
217 | .disabled(model.isSwiping || model.isSwiped)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | .buttonStyle(SwipyTouchableDisabledStyle())
219 | .background(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:218:26: error: 'buttonStyle' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
216 | content(model)
217 | .disabled(model.isSwiping || model.isSwiped)
218 | .buttonStyle(SwipyTouchableDisabledStyle())
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | .background(
220 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:219:26: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
217 | .disabled(model.isSwiping || model.isSwiped)
218 | .buttonStyle(SwipyTouchableDisabledStyle())
219 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | GeometryReader { geometry in
221 | Color.clear
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:220:29: error: 'GeometryReader' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
218 | .buttonStyle(SwipyTouchableDisabledStyle())
219 | .background(
220 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | Color.clear
222 | .onAppear { model.contentSize = geometry.size }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:221:33: error: 'Color' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
219 | .background(
220 | GeometryReader { geometry in
221 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | .onAppear { model.contentSize = geometry.size }
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:221:39: error: 'clear' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
219 | .background(
220 | GeometryReader { geometry in
221 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | .onAppear { model.contentSize = geometry.size }
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:222:38: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
220 | GeometryReader { geometry in
221 | Color.clear
222 | .onAppear { model.contentSize = geometry.size }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
224 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:222:49: error: setter for 'contentSize' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
220 | GeometryReader { geometry in
221 | Color.clear
222 | .onAppear { model.contentSize = geometry.size }
| |- error: setter for 'contentSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
224 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:223:38: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
221 | Color.clear
222 | .onAppear { model.contentSize = geometry.size }
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
224 | }
225 | )
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:223:86: error: cannot pass as inout because setter for 'contentSize' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
221 | Color.clear
222 | .onAppear { model.contentSize = geometry.size }
223 | .onChange(of: geometry.size.width) { newValue in model.contentSize?.width = newValue }
| |- error: cannot pass as inout because setter for 'contentSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | }
225 | )
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:228:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
226 | }
227 | }
228 | .frame(maxWidth: .infinity, 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
229 |
230 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:230:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
228 | .frame(maxWidth: .infinity, maxHeight: .infinity)
229 |
230 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | HStack(spacing: 0) {
232 | Spacer(minLength: model.swipeActionsMargin.leading)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:231:17: error: 'HStack' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
229 |
230 | GeometryReader { geometry in
231 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | Spacer(minLength: model.swipeActionsMargin.leading)
233 | actions()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:232:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
230 | GeometryReader { geometry in
231 | HStack(spacing: 0) {
232 | Spacer(minLength: model.swipeActionsMargin.leading)
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 | actions()
234 | .frame(idealHeight: geometry.size.height)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:232:21: error: 'Spacer' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
230 | GeometryReader { geometry in
231 | HStack(spacing: 0) {
232 | Spacer(minLength: model.swipeActionsMargin.leading)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 | actions()
234 | .frame(idealHeight: geometry.size.height)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:234:26: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
232 | Spacer(minLength: model.swipeActionsMargin.leading)
233 | actions()
234 | .frame(idealHeight: geometry.size.height)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
235 | }
236 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:231:36: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
229 |
230 | GeometryReader { geometry in
231 | HStack(spacing: 0) {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | Spacer(minLength: model.swipeActionsMargin.leading)
233 | actions()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:236:18: error: 'scaledToFit()' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
234 | .frame(idealHeight: geometry.size.height)
235 | }
236 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | .opacity(swipeActionOpacity)
238 | .background(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:237:18: error: 'opacity' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
235 | }
236 | .scaledToFit()
237 | .opacity(swipeActionOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 | .background(
239 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:238:18: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
236 | .scaledToFit()
237 | .opacity(swipeActionOpacity)
238 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
239 | GeometryReader { geometry in
240 | Color.clear
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:239:21: error: 'GeometryReader' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
237 | .opacity(swipeActionOpacity)
238 | .background(
239 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 | Color.clear
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:240:25: error: 'Color' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
238 | .background(
239 | GeometryReader { geometry in
240 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:240:31: error: 'clear' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
238 | .background(
239 | GeometryReader { geometry in
240 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:241:30: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
239 | GeometryReader { geometry in
240 | Color.clear
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
243 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:241:41: error: setter for 'swipeActionsWidth' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
239 | GeometryReader { geometry in
240 | Color.clear
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
| |- error: setter for 'swipeActionsWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
243 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:242:30: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
240 | Color.clear
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
243 | }
244 | )
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:242:78: error: setter for 'swipeActionsWidth' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
240 | Color.clear
241 | .onAppear { model.swipeActionsWidth = geometry.size.width }
242 | .onChange(of: geometry.size.width) { newValue in model.swipeActionsWidth = newValue }
| |- error: setter for 'swipeActionsWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
243 | }
244 | )
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:245:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
243 | }
244 | )
245 | .frame(height: (model.contentSize ?? geometry.size).height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
246 | .offset(x: (model.contentSize ?? geometry.size).width)
247 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:246:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
244 | )
245 | .frame(height: (model.contentSize ?? geometry.size).height)
246 | .offset(x: (model.contentSize ?? geometry.size).width)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
247 | }
248 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:249:10: error: 'environmentObject' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
247 | }
248 | }
249 | .environmentObject(model)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | .offset(x: !model.isSwiping && model.isSwiped ? -swipeActionsModeOffset : model.swipeOffset.width)
251 | .simultaneousGesture(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:250:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
248 | }
249 | .environmentObject(model)
250 | .offset(x: !model.isSwiping && model.isSwiped ? -swipeActionsModeOffset : model.swipeOffset.width)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
251 | .simultaneousGesture(
252 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:251:10: error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
249 | .environmentObject(model)
250 | .offset(x: !model.isSwiping && model.isSwiped ? -swipeActionsModeOffset : model.swipeOffset.width)
251 | .simultaneousGesture(
| |- error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
252 | DragGesture()
253 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:252:13: error: 'DragGesture' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
250 | .offset(x: !model.isSwiping && model.isSwiped ? -swipeActionsModeOffset : model.swipeOffset.width)
251 | .simultaneousGesture(
252 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
253 | .onChanged { value in
254 | if model.isScrolling { return }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:252:13: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
250 | .offset(x: !model.isSwiping && model.isSwiped ? -swipeActionsModeOffset : model.swipeOffset.width)
251 | .simultaneousGesture(
252 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
253 | .onChanged { value in
254 | if model.isScrolling { return }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:253:18: error: 'onChanged' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
251 | .simultaneousGesture(
252 | DragGesture()
253 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
254 | if model.isScrolling { return }
255 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:257:25: error: setter for 'isScrolling' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
255 |
256 | if model.scrollBehavior.decider(model, value) {
257 | model.isScrolling = true
| |- error: setter for 'isScrolling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | return
259 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:266:25: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
264 |
265 | if model.swipeOffset.width > -threshold {
266 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | model.isSwiped = false
268 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:266:40: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
264 |
265 | if model.swipeOffset.width > -threshold {
266 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | model.isSwiped = false
268 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:267:29: error: setter for 'isSwiped' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
265 | if model.swipeOffset.width > -threshold {
266 | withAnimation(.bouncy) {
267 | model.isSwiped = false
| |- error: setter for 'isSwiped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | }
269 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:271:21: error: setter for 'isSwiping' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
269 | }
270 |
271 | model.isSwiping = true
| |- error: setter for 'isSwiping' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 |
273 | withAnimation(.bouncy) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:273:21: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
271 | model.isSwiping = true
272 |
273 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | model.swipeOffset.width = value.translation.width
275 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:273:36: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
271 | model.isSwiping = true
272 |
273 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | model.swipeOffset.width = value.translation.width
275 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:274:25: error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
272 |
273 | withAnimation(.bouncy) {
274 | model.swipeOffset.width = value.translation.width
| |- error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | }
276 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:277:18: error: 'onEnded' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
275 | }
276 | }
277 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | model.isSwiping = false
279 | model.isScrolling = false
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:278:21: error: setter for 'isSwiping' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
276 | }
277 | .onEnded { _ in
278 | model.isSwiping = false
| |- error: setter for 'isSwiping' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
279 | model.isScrolling = false
280 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:279:21: error: setter for 'isScrolling' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
277 | .onEnded { _ in
278 | model.isSwiping = false
279 | model.isScrolling = false
| |- error: setter for 'isScrolling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 |
281 | if model.swipeOffset.width < -threshold {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:282:25: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
280 |
281 | if model.swipeOffset.width < -threshold {
282 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | model.isSwiped = true
284 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:282:40: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
280 |
281 | if model.swipeOffset.width < -threshold {
282 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | model.isSwiped = true
284 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:283:29: error: setter for 'isSwiped' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
281 | if model.swipeOffset.width < -threshold {
282 | withAnimation(.bouncy) {
283 | model.isSwiped = true
| |- error: setter for 'isSwiped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
284 | }
285 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:287:21: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
285 | }
286 |
287 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 | model.swipeOffset = .zero
289 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:287:36: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
285 | }
286 |
287 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 | model.swipeOffset = .zero
289 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:288:25: error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
286 |
287 | withAnimation(.bouncy) {
288 | model.swipeOffset = .zero
| |- error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
289 | }
290 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:292:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
290 | }
291 | )
292 | .onChange(of: model.isSwiping) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | isSwipingAnItem = newValue
294 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:293:13: error: setter for 'isSwipingAnItem' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
291 | )
292 | .onChange(of: model.isSwiping) { newValue in
293 | isSwipingAnItem = newValue
| |- error: setter for 'isSwipingAnItem' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
294 |
295 | if !newValue && model.isSwiped {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:296:17: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
294 |
295 | if !newValue && model.isSwiped {
296 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | model.swipeOffset.width = -threshold
298 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:296:32: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
294 |
295 | if !newValue && model.isSwiped {
296 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | model.swipeOffset.width = -threshold
298 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:297:21: error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
295 | if !newValue && model.isSwiped {
296 | withAnimation(.bouncy) {
297 | model.swipeOffset.width = -threshold
| |- error: cannot pass as inout because setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
298 | }
299 | } else if newValue {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:300:17: error: setter for 'isSwiped' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
298 | }
299 | } else if newValue {
300 | model.isSwiped = false
| |- error: setter for 'isSwiped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | withAnimation(.bouncy) {
302 | model.swipeOffset = .zero
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:301:17: error: 'withAnimation' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
299 | } else if newValue {
300 | model.isSwiped = false
301 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | model.swipeOffset = .zero
303 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:301:32: error: 'bouncy' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
299 | } else if newValue {
300 | model.isSwiped = false
301 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | model.swipeOffset = .zero
303 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:302:21: error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
206 | @StateObject public var model: SwipyModel
207 |
208 | public var body: some View {
| `- note: add @available attribute to enclosing property
209 | let swipeActionsModeOffset = model.swipeActionsWidth + model.swipeActionsMargin.trailing
210 | let threshold = model.swipeThreshold(model)
:
300 | model.isSwiped = false
301 | withAnimation(.bouncy) {
302 | model.swipeOffset = .zero
| |- error: setter for 'swipeOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
303 | }
304 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:320:9: error: setter for 'swipeActionsMargin' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
318 |
319 | let model = SwipyModel()
320 | model.swipeActionsMargin = swipeActionsMargin
| |- error: setter for 'swipeActionsMargin' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
321 | model.swipeThreshold = swipeThreshold
322 | model.swipeBehavior = swipeBehavior
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:321:9: error: setter for 'swipeThreshold' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
319 | let model = SwipyModel()
320 | model.swipeActionsMargin = swipeActionsMargin
321 | model.swipeThreshold = swipeThreshold
| |- error: setter for 'swipeThreshold' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
322 | model.swipeBehavior = swipeBehavior
323 | model.scrollBehavior = scrollBehavior
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:322:9: error: setter for 'swipeBehavior' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
320 | model.swipeActionsMargin = swipeActionsMargin
321 | model.swipeThreshold = swipeThreshold
322 | model.swipeBehavior = swipeBehavior
| |- error: setter for 'swipeBehavior' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
323 | model.scrollBehavior = scrollBehavior
324 | _model = StateObject(wrappedValue: model)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:323:9: error: setter for 'scrollBehavior' is only available in macOS 10.15 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
321 | model.swipeThreshold = swipeThreshold
322 | model.swipeBehavior = swipeBehavior
323 | model.scrollBehavior = scrollBehavior
| |- error: setter for 'scrollBehavior' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
324 | _model = StateObject(wrappedValue: model)
325 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:324:18: error: 'StateObject' is only available in macOS 11.0 or newer
198 | }
199 |
200 | public struct Swipy<C, A>: View where C: View, A: View {
| `- note: add @available attribute to enclosing generic struct
201 | public let content: (SwipyModel) -> C
202 | public let actions: () -> A
:
306 | }
307 |
308 | public init(isSwipingAnItem: Binding<Bool>,
| `- note: add @available attribute to enclosing initializer
309 | swipeActionsMargin: SwipyHorizontalMargin = SwipyDefaults.swipeActionsMargin,
310 | swipeThreshold: @escaping @MainActor @Sendable (SwipyModel) -> Double = SwipyDefaults.swipeThreshold,
:
322 | model.swipeBehavior = swipeBehavior
323 | model.scrollBehavior = scrollBehavior
324 | _model = StateObject(wrappedValue: model)
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
325 | }
326 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:334:9: error: 'VStack' is only available in macOS 10.15 or newer
326 | }
327 |
328 | public struct SwipyAction<C>: View where C: View {
| `- note: add @available attribute to enclosing generic struct
329 | @EnvironmentObject public var model: SwipyModel
330 |
331 | public let content: (SwipyModel) -> C
332 |
333 | public var body: some View {
| `- note: add @available attribute to enclosing property
334 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | content(model)
336 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:352:9: error: 'ZStack' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:352:16: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:353:13: error: 'LinearGradient' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
355 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:354:27: error: 'purple' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
355 | startPoint: .topLeading,
356 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:354:34: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
355 | startPoint: .topLeading,
356 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:354:49: error: 'cyan' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
| |- error: 'cyan' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
355 | startPoint: .topLeading,
356 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:354:54: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
354 | colors: [.purple.opacity(0.9), .cyan.opacity(0.9)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
355 | startPoint: .topLeading,
356 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:358:14: error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
356 | endPoint: .bottomTrailing
357 | )
358 | .blur(radius: 50)
| |- error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:359:14: error: 'hueRotation' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
357 | )
358 | .blur(radius: 50)
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
| |- error: 'hueRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
361 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:360:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
358 | .blur(radius: 50)
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | .ignoresSafeArea()
362 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:360:25: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
358 | .blur(radius: 50)
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | .ignoresSafeArea()
362 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:360:48: error: 'repeatForever(autoreverses:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
358 | .blur(radius: 50)
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
| |- error: 'repeatForever(autoreverses:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | .ignoresSafeArea()
362 |
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:361:14: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
359 | .hueRotation(.degrees(isSwipingAnItem ? 45 : 0))
360 | .animation(.easeInOut(duration: 2).repeatForever(autoreverses: true), value: isSwipingAnItem)
361 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
362 |
363 | ScrollView {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:363:13: error: 'ScrollView' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
361 | .ignoresSafeArea()
362 |
363 | ScrollView {
| |- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:363:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
361 | .ignoresSafeArea()
362 |
363 | ScrollView {
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:363:24: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
361 | .ignoresSafeArea()
362 |
363 | ScrollView {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:364:17: error: 'LazyVStack' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
362 |
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
| |- error: 'LazyVStack' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
365 | ForEach(items, id: \.self) { item in
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:364:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
362 |
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
365 | ForEach(items, id: \.self) { item in
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:365:21: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
367 | HStack(spacing: 10) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:365:21: error: 'ForEach' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
367 | HStack(spacing: 10) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:365:21: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
365 | ForEach(items, id: \.self) { item in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
367 | HStack(spacing: 10) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:367:29: error: 'HStack' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
365 | ForEach(items, id: \.self) { item in
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
367 | HStack(spacing: 10) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
368 | Button {
369 | withAnimation(.bouncy) {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:368:33: error: 'Button' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
367 | HStack(spacing: 10) {
368 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | withAnimation(.bouncy) {
370 | model.swipe()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:369:37: error: 'withAnimation' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
367 | HStack(spacing: 10) {
368 | Button {
369 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
370 | model.swipe()
371 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:369:52: error: 'bouncy' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
367 | HStack(spacing: 10) {
368 | Button {
369 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
370 | model.swipe()
371 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:373:37: error: 'VStack' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
371 | }
372 | } label: {
373 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
374 | Image(systemName: "trash")
375 | .font(.system(size: 20))
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:374:41: error: 'Image' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
372 | } label: {
373 | VStack {
374 | Image(systemName: "trash")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | .font(.system(size: 20))
376 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:374:41: error: 'init(systemName:)' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
372 | } label: {
373 | VStack {
374 | Image(systemName: "trash")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
375 | .font(.system(size: 20))
376 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:375:46: error: 'font' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
373 | VStack {
374 | Image(systemName: "trash")
375 | .font(.system(size: 20))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
376 | }
377 | .padding()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:375:52: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
373 | VStack {
374 | Image(systemName: "trash")
375 | .font(.system(size: 20))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
376 | }
377 | .padding()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:377:38: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
375 | .font(.system(size: 20))
376 | }
377 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .background(.thinMaterial)
379 | .cornerRadius(16)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:378:38: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
376 | }
377 | .padding()
378 | .background(.thinMaterial)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
379 | .cornerRadius(16)
380 | .foregroundColor(.black)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:378:50: error: 'thinMaterial' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
376 | }
377 | .padding()
378 | .background(.thinMaterial)
| |- error: 'thinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
379 | .cornerRadius(16)
380 | .foregroundColor(.black)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:379:38: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
377 | .padding()
378 | .background(.thinMaterial)
379 | .cornerRadius(16)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 | .foregroundColor(.black)
381 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:380:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
378 | .background(.thinMaterial)
379 | .cornerRadius(16)
380 | .foregroundColor(.black)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
381 | }
382 | Text(item)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:380:55: error: 'black' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
378 | .background(.thinMaterial)
379 | .cornerRadius(16)
380 | .foregroundColor(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
381 | }
382 | Text(item)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:382:33: error: 'Text' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
380 | .foregroundColor(.black)
381 | }
382 | Text(item)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
383 | .frame(maxWidth: .infinity)
384 | .padding()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:383:38: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
381 | }
382 | Text(item)
383 | .frame(maxWidth: .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
384 | .padding()
385 | .background(.thinMaterial)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:384:38: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
382 | Text(item)
383 | .frame(maxWidth: .infinity)
384 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | .background(.thinMaterial)
386 | .cornerRadius(16)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:385:38: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
383 | .frame(maxWidth: .infinity)
384 | .padding()
385 | .background(.thinMaterial)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
386 | .cornerRadius(16)
387 | .foregroundColor(.black)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:385:50: error: 'thinMaterial' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
383 | .frame(maxWidth: .infinity)
384 | .padding()
385 | .background(.thinMaterial)
| |- error: 'thinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
386 | .cornerRadius(16)
387 | .foregroundColor(.black)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:386:38: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
384 | .padding()
385 | .background(.thinMaterial)
386 | .cornerRadius(16)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
387 | .foregroundColor(.black)
388 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:387:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
385 | .background(.thinMaterial)
386 | .cornerRadius(16)
387 | .foregroundColor(.black)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | }
389 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:387:55: error: 'black' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
385 | .background(.thinMaterial)
386 | .cornerRadius(16)
387 | .foregroundColor(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | }
389 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:389:30: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
387 | .foregroundColor(.black)
388 | }
389 | .padding(.horizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | } actions: {
391 | HStack {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:391:29: error: 'HStack' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
389 | .padding(.horizontal)
390 | } actions: {
391 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
392 | SwipyAction { model in
393 | Button {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:393:37: error: 'Button' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
391 | HStack {
392 | SwipyAction { model in
393 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | withAnimation(.bouncy) {
395 | items.removeAll { $0 == item }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:394:41: error: 'withAnimation' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
392 | SwipyAction { model in
393 | Button {
394 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | items.removeAll { $0 == item }
396 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:394:56: error: 'bouncy' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
392 | SwipyAction { model in
393 | Button {
394 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | items.removeAll { $0 == item }
396 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:395:45: error: cannot pass as inout because setter for 'items' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
393 | Button {
394 | withAnimation(.bouncy) {
395 | items.removeAll { $0 == item }
| |- error: cannot pass as inout because setter for 'items' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | }
397 | } label: {
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:398:41: error: 'Image' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
396 | }
397 | } label: {
398 | Image(systemName: "trash")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
399 | .font(.system(size: 20))
400 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:398:41: error: 'init(systemName:)' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
396 | }
397 | } label: {
398 | Image(systemName: "trash")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
399 | .font(.system(size: 20))
400 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:399:46: error: 'font' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
397 | } label: {
398 | Image(systemName: "trash")
399 | .font(.system(size: 20))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | }
401 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:399:52: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
397 | } label: {
398 | Image(systemName: "trash")
399 | .font(.system(size: 20))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
400 | }
401 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:401:38: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
399 | .font(.system(size: 20))
400 | }
401 | .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
402 | .padding(.horizontal)
403 | .background(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:402:38: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
400 | }
401 | .frame(maxHeight: .infinity)
402 | .padding(.horizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | .background(
404 | RoundedRectangle(cornerRadius: 16)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:403:38: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
401 | .frame(maxHeight: .infinity)
402 | .padding(.horizontal)
403 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | RoundedRectangle(cornerRadius: 16)
405 | .fill(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:404:41: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
402 | .padding(.horizontal)
403 | .background(
404 | RoundedRectangle(cornerRadius: 16)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | .fill(
406 | .linearGradient(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:405:46: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
403 | .background(
404 | RoundedRectangle(cornerRadius: 16)
405 | .fill(
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
406 | .linearGradient(
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:406:50: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
404 | RoundedRectangle(cornerRadius: 16)
405 | .fill(
406 | .linearGradient(
| |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
408 | startPoint: .top,
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:407:63: error: 'pink' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
405 | .fill(
406 | .linearGradient(
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | startPoint: .top,
409 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:407:68: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
405 | .fill(
406 | .linearGradient(
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | startPoint: .top,
409 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:407:83: error: 'red' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
405 | .fill(
406 | .linearGradient(
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | startPoint: .top,
409 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:407:87: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
405 | .fill(
406 | .linearGradient(
407 | colors: [.pink.opacity(0.8), .red.opacity(0.8)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | startPoint: .top,
409 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:412:46: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
410 | )
411 | )
412 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 | )
414 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:412:61: error: 'black' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
410 | )
411 | )
412 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 | )
414 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:412:67: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
410 | )
411 | )
412 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 | )
414 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:414:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
412 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
413 | )
414 | .foregroundColor(.white)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
415 | }
416 | SwipyAction { model in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:414:55: error: 'white' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
412 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
413 | )
414 | .foregroundColor(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
415 | }
416 | SwipyAction { model in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:417:37: error: 'Button' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
415 | }
416 | SwipyAction { model in
417 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | withAnimation(.bouncy) {
419 | model.unswipe()
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:418:41: error: 'withAnimation' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
416 | SwipyAction { model in
417 | Button {
418 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | model.unswipe()
420 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:418:56: error: 'bouncy' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
416 | SwipyAction { model in
417 | Button {
418 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | model.unswipe()
420 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:422:41: error: 'Image' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
420 | }
421 | } label: {
422 | Image(systemName: "pencil")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
423 | .font(.system(size: 20))
424 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:422:41: error: 'init(systemName:)' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
420 | }
421 | } label: {
422 | Image(systemName: "pencil")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
423 | .font(.system(size: 20))
424 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:423:46: error: 'font' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
421 | } label: {
422 | Image(systemName: "pencil")
423 | .font(.system(size: 20))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
424 | }
425 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:423:52: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
421 | } label: {
422 | Image(systemName: "pencil")
423 | .font(.system(size: 20))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
424 | }
425 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:425:38: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
423 | .font(.system(size: 20))
424 | }
425 | .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
426 | .padding(.horizontal)
427 | .background(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:426:38: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
424 | }
425 | .frame(maxHeight: .infinity)
426 | .padding(.horizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
427 | .background(
428 | RoundedRectangle(cornerRadius: 16)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:427:38: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
425 | .frame(maxHeight: .infinity)
426 | .padding(.horizontal)
427 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
428 | RoundedRectangle(cornerRadius: 16)
429 | .fill(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:428:41: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
426 | .padding(.horizontal)
427 | .background(
428 | RoundedRectangle(cornerRadius: 16)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
429 | .fill(
430 | .linearGradient(
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:429:46: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
427 | .background(
428 | RoundedRectangle(cornerRadius: 16)
429 | .fill(
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
430 | .linearGradient(
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:430:50: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
428 | RoundedRectangle(cornerRadius: 16)
429 | .fill(
430 | .linearGradient(
| |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
432 | startPoint: .top,
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:431:63: error: 'mint' is only available in macOS 12.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
429 | .fill(
430 | .linearGradient(
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
| |- error: 'mint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
432 | startPoint: .top,
433 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:431:68: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
429 | .fill(
430 | .linearGradient(
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
432 | startPoint: .top,
433 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:431:83: error: 'blue' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
429 | .fill(
430 | .linearGradient(
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
432 | startPoint: .top,
433 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:431:88: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
429 | .fill(
430 | .linearGradient(
431 | colors: [.mint.opacity(0.8), .blue.opacity(0.8)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
432 | startPoint: .top,
433 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:436:46: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
434 | )
435 | )
436 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
437 | )
438 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:436:61: error: 'black' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
434 | )
435 | )
436 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
437 | )
438 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:436:67: error: 'opacity' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
434 | )
435 | )
436 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
437 | )
438 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:438:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
436 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
437 | )
438 | .foregroundColor(.white)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
439 | }
440 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:438:55: error: 'white' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
436 | .shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 2)
437 | )
438 | .foregroundColor(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
439 | }
440 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:364:41: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
362 |
363 | ScrollView {
364 | LazyVStack(spacing: 20) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
365 | ForEach(items, id: \.self) { item in
366 | Swipy(isSwipingAnItem: $isSwipingAnItem, swipeActionsMargin: .init(leading: 0, trailing: 20)) { model in
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:444:18: error: 'padding' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
442 | }
443 | }
444 | .padding(.vertical)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
445 | }
446 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:447:10: error: 'preferredColorScheme' is only available in macOS 11.0 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
445 | }
446 | }
447 | .preferredColorScheme(.light)
| |- error: 'preferredColorScheme' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
448 | .frame(maxWidth: .infinity, maxHeight: .infinity)
449 | }
/Users/admin/builder/spi-builder-workspace/Swipy/Swipy.swift:448:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
342 | }
343 |
344 | struct Preview: View {
| `- note: add @available attribute to enclosing struct
345 | @State var isSwipingAnItem = false
346 |
:
349 | ]
350 |
351 | var body: some View {
| `- note: add @available attribute to enclosing property
352 | ZStack {
353 | LinearGradient(
:
446 | }
447 | .preferredColorScheme(.light)
448 | .frame(maxWidth: .infinity, 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
449 | }
450 | }
BUILD FAILURE 6.1 macosSpm