Build Information
Failed to build SSCoachMarks, reference master (bd1be3), with Swift 6.2 for macOS (SPM) on 30 Dec 2025 14:32:36 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
32 | /// ```
33 | @ViewBuilder
34 | public func showCoachMark(order: Int,
| `- note: add '@available' attribute to enclosing instance method
35 | title: String? = nil,
36 | description: String,
37 | highlightViewCornerRadius: CGFloat,
38 | scaleEffect: CGFloat = 1.2,
39 | coachMarkBackGroundColor: Color = .white) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
40 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
41 | let highlight = Highlight(anchor: anchor,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:33:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
31 | /// highlightViewCornerRadius: 8)
32 | /// ```
33 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
34 | public func showCoachMark(order: Int,
| `- note: add '@available' attribute to enclosing instance method
35 | title: String? = nil,
36 | description: String,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:39:66: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
32 | /// ```
33 | @ViewBuilder
34 | public func showCoachMark(order: Int,
| `- note: add '@available' attribute to enclosing instance method
35 | title: String? = nil,
36 | description: String,
37 | highlightViewCornerRadius: CGFloat,
38 | scaleEffect: CGFloat = 1.2,
39 | coachMarkBackGroundColor: Color = .white) -> some View {
| `- error: 'white' is only available in macOS 10.15 or newer
40 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
41 | let highlight = Highlight(anchor: anchor,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:81:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:86:72: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
84 | highlightViewCornerRadius: CGFloat,
85 | scaleEffect: CGFloat = 1.2,
86 | coachMarkBackGroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
87 | customCoachMarkView: @escaping () -> Content) -> some View {
88 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:87:100: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
:
85 | scaleEffect: CGFloat = 1.2,
86 | coachMarkBackGroundColor: Color = .white,
87 | customCoachMarkView: @escaping () -> Content) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
88 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
89 | let highlight = Highlight(anchor: anchor,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:80:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
78 | /// }
79 | /// ```
80 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:86:81: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
84 | highlightViewCornerRadius: CGFloat,
85 | scaleEffect: CGFloat = 1.2,
86 | coachMarkBackGroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
87 | customCoachMarkView: @escaping () -> Content) -> some View {
88 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:44: error: 'View' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:61: error: 'Alignment' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:87: error: 'ViewBuilder' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:141: error: 'View' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:112:74: error: 'topLeading' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| | `- error: 'topLeading' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:101:11: error: 'View' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:133:52: error: 'Color' is only available in macOS 10.15 or newer
123 | }
124 |
125 | extension View {
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
:
131 | /// - Parameter foregroundStyle: The color to use for the text.
132 | /// - Returns: A view modified with the specified text styling for filled buttons.
133 | func filledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
134 | self.modifier(FilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:133:65: error: 'Font' is only available in macOS 10.15 or newer
123 | }
124 |
125 | extension View {
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
:
131 | /// - Parameter foregroundStyle: The color to use for the text.
132 | /// - Returns: A view modified with the specified text styling for filled buttons.
133 | func filledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
134 | self.modifier(FilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:133:79: error: 'View' is only available in macOS 10.15 or newer
123 | }
124 |
125 | extension View {
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
:
131 | /// - Parameter foregroundStyle: The color to use for the text.
132 | /// - Returns: A view modified with the specified text styling for filled buttons.
133 | func filledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
134 | self.modifier(FilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:125:11: error: 'View' is only available in macOS 10.15 or newer
123 | }
124 |
125 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:148:54: error: 'Color' is only available in macOS 10.15 or newer
136 | }
137 |
138 | extension View {
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
:
146 | /// - strokeColor: The color to use for the border or outline of the button.
147 | /// - Returns: A view modified with the specified text and border styling for unfilled buttons.
148 | func unFilledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
149 | self.modifier(UnFilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:148:67: error: 'Font' is only available in macOS 10.15 or newer
136 | }
137 |
138 | extension View {
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
:
146 | /// - strokeColor: The color to use for the border or outline of the button.
147 | /// - Returns: A view modified with the specified text and border styling for unfilled buttons.
148 | func unFilledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
149 | self.modifier(UnFilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:148:81: error: 'View' is only available in macOS 10.15 or newer
136 | }
137 |
138 | extension View {
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
:
146 | /// - strokeColor: The color to use for the border or outline of the button.
147 | /// - Returns: A view modified with the specified text and border styling for unfilled buttons.
148 | func unFilledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
149 | self.modifier(UnFilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:138:11: error: 'View' is only available in macOS 10.15 or newer
136 | }
137 |
138 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:153:11: error: cannot find type 'UIView' in scope
151 | }
152 |
153 | extension UIView {
| `- error: cannot find type 'UIView' in scope
154 |
155 | /// Recursively searches through the view's subviews to find and return the content view of a UIVisualEffectView, identified by the class name "_UIVisualEffectContentView".
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:192:45: error: 'View' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
193 | if condition {
194 | content(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:192:106: error: 'View' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
193 | if condition {
194 | content(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:192:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
193 | if condition {
194 | content(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:174:11: error: 'View' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:220:44: error: 'View' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
221 | if condition {
222 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:220:107: error: 'View' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
221 | if condition {
222 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:220:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
221 | if condition {
222 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:202:11: error: 'View' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:252:27: error: 'ViewBuilder' is only available in macOS 10.15 or newer
228 | }
229 |
230 | extension View {
| `- note: add '@available' attribute to enclosing extension
231 |
232 | /// Applies a custom transformation to the current view using a `ViewBuilder`.
:
250 | /// ```
251 | /// In this example, the `modify` function is used to apply multiple view modifiers
252 | func modify<Content>(@ViewBuilder _ transform: (Self) -> Content) -> Content {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
253 | transform(self)
254 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:230:11: error: 'View' is only available in macOS 10.15 or newer
228 | }
229 |
230 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
231 |
232 | /// Applies a custom transformation to the current view using a `ViewBuilder`.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:40:14: error: 'anchorPreference(key:value:transform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
32 | /// ```
33 | @ViewBuilder
34 | public func showCoachMark(order: Int,
| `- note: add '@available' attribute to enclosing instance method
35 | title: String? = nil,
36 | description: String,
:
38 | scaleEffect: CGFloat = 1.2,
39 | coachMarkBackGroundColor: Color = .white) -> some View {
40 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
| |- error: 'anchorPreference(key:value:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | let highlight = Highlight(anchor: anchor,
42 | title: title,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:40:69: error: 'bounds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
32 | /// ```
33 | @ViewBuilder
34 | public func showCoachMark(order: Int,
| `- note: add '@available' attribute to enclosing instance method
35 | title: String? = nil,
36 | description: String,
:
38 | scaleEffect: CGFloat = 1.2,
39 | coachMarkBackGroundColor: Color = .white) -> some View {
40 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
| |- error: 'bounds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | let highlight = Highlight(anchor: anchor,
42 | title: title,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:88:14: error: 'anchorPreference(key:value:transform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
:
86 | coachMarkBackGroundColor: Color = .white,
87 | customCoachMarkView: @escaping () -> Content) -> some View {
88 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
| |- error: 'anchorPreference(key:value:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | let highlight = Highlight(anchor: anchor,
90 | title: title,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:88:69: error: 'bounds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
:
86 | coachMarkBackGroundColor: Color = .white,
87 | customCoachMarkView: @escaping () -> Content) -> some View {
88 | self.anchorPreference(key: HighlightAnchorKey.self, value: .bounds) { anchor in
| |- error: 'bounds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | let highlight = Highlight(anchor: anchor,
90 | title: title,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:95:60: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Displays a coach mark on the view, highlighting a specific area based on the provided parameters.
:
79 | /// ```
80 | @ViewBuilder
81 | public func showCoachMark<Content: View>(order: Int,
| `- note: add '@available' attribute to enclosing instance method
82 | title: String? = nil,
83 | description: String? = nil,
:
93 | scaleEffect: scaleEffect,
94 | coachMarkBackGroundColor: coachMarkBackGroundColor,
95 | customCoachMarkView: AnyView(customCoachMarkView()))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | return [order: highlight]
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:114:14: error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
| |- error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
115 | Rectangle()
116 | .overlay(alignment: .topLeading) {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:115:17: error: 'Rectangle' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
115 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | .overlay(alignment: .topLeading) {
117 | content()
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:116:22: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
115 | Rectangle()
116 | .overlay(alignment: .topLeading) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
117 | content()
118 | .blendMode(.destinationOut)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:116:42: error: 'topLeading' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
115 | Rectangle()
116 | .overlay(alignment: .topLeading) {
| |- error: 'topLeading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | content()
118 | .blendMode(.destinationOut)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:118:30: error: 'blendMode' is only available in macOS 10.15 or newer
99 | }
100 |
101 | extension View {
| `- note: add '@available' attribute to enclosing extension
102 |
103 | /// Applies a reverse mask to the view, revealing the shape of the provided content.
:
110 | ///
111 | /// - Returns: A view with the specified reverse mask applied.
112 | @ViewBuilder func reverseMask<Content: View>(alignment: Alignment = .topLeading, @ViewBuilder content: @escaping () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | self
114 | .mask {
:
116 | .overlay(alignment: .topLeading) {
117 | content()
118 | .blendMode(.destinationOut)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:134:14: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | extension View {
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
:
131 | /// - Parameter foregroundStyle: The color to use for the text.
132 | /// - Returns: A view modified with the specified text styling for filled buttons.
133 | func filledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| `- note: add '@available' attribute to enclosing instance method
134 | self.modifier(FilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
135 | }
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:134:14: error: 'modifier' is only available in macOS 10.15 or newer
123 | }
124 |
125 | extension View {
| `- note: add '@available' attribute to enclosing extension
126 |
127 | /// Applies a modifier to style text as filled button text.
:
131 | /// - Parameter foregroundStyle: The color to use for the text.
132 | /// - Returns: A view modified with the specified text styling for filled buttons.
133 | func filledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| `- note: add '@available' attribute to enclosing instance method
134 | self.modifier(FilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:149:14: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
136 | }
137 |
138 | extension View {
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
:
146 | /// - strokeColor: The color to use for the border or outline of the button.
147 | /// - Returns: A view modified with the specified text and border styling for unfilled buttons.
148 | func unFilledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| `- note: add '@available' attribute to enclosing instance method
149 | self.modifier(UnFilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:149:14: error: 'modifier' is only available in macOS 10.15 or newer
136 | }
137 |
138 | extension View {
| `- note: add '@available' attribute to enclosing extension
139 |
140 | /// Applies a modifier to style text as unfilled button text.
:
146 | /// - strokeColor: The color to use for the border or outline of the button.
147 | /// - Returns: A view modified with the specified text and border styling for unfilled buttons.
148 | func unFilledButtonTextModifier(foregroundStyle: Color, font: Font) -> some View {
| `- note: add '@available' attribute to enclosing instance method
149 | self.modifier(UnFilledButtonTextModifier(foregroundStyle: foregroundStyle, font: font))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:193:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
193 | if condition {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | content(self)
195 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:195:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
193 | if condition {
194 | content(self)
195 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
196 | self
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:192:111: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
172 |
173 |
174 | extension View {
| `- note: add '@available' attribute to enclosing extension
175 |
176 | /// Conditionally applies a view modifier or transformation based on a boolean condition.
:
190 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
191 | /// If `isHighlighted` is `false`, the background color remains unchanged.
192 | @ViewBuilder public func check<Content: View>(_ condition: Bool, content: (Self) -> Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
193 | if condition {
194 | content(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:221:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
221 | if condition {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | transform(self)
223 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:223:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
221 | if condition {
222 | transform(self)
223 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | self
225 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:220:112: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | extension View {
| `- note: add '@available' attribute to enclosing extension
203 |
204 | /// Conditionally applies a transformation to a view based on a boolean condition.
:
218 | /// In this example, if `isHighlighted` is `true`, the background color of `someView` will be changed to yellow.
219 | /// If `isHighlighted` is `false`, the background color remains unchanged.
220 | @ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
221 | if condition {
222 | transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:160:45: error: cannot find type 'UIView' in scope
158 | ///
159 | /// This method uses a recursive approach to traverse the view hierarchy, checking each subview to determine if it matches the desired class name. If the desired view is found, it is returned immediately. If not, the method continues searching through the subviews of each subview.
160 | func findUIVisualEffectContentView() -> UIView? {
| `- error: cannot find type 'UIView' in scope
161 | for subview in subviews {
162 | if NSStringFromClass(type(of: subview)).contains("_UIVisualEffectContentView") {
[17/17] Compiling SSCoachMarks CoachMarkView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:43:37: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
41 |
42 | /// This property allows you to customize the appearance and behaviour of the "Skip" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
43 | public var skipCoachMarkButton: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
44 |
45 | /// This property allows you to customize the appearance and behavior of the "Next" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:46:35: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
44 |
45 | /// This property allows you to customize the appearance and behavior of the "Next" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
46 | public var nextButtonContent: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
47 |
48 | /// This property allows you to customize the appearance and behavior of the "Back" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:49:35: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
47 |
48 | /// This property allows you to customize the appearance and behavior of the "Back" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
49 | public var backButtonContent: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
50 |
51 | /// This property allows you to customize the appearance and behavior of the "Done" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:52:35: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
50 |
51 | /// This property allows you to customize the appearance and behavior of the "Done" button by assigning any SwiftUI view to it. If `nil`, the default implementation will be used.
52 | public var doneButtonContent: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
53 |
54 | /// A closure that is called when the coach mark sequence finishes.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:58:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
56 |
57 | /// A Boolean value that determines whether the Coach Mark should be shown. Defaults to `false`.
58 | @State var showCoachMark: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
59 |
60 | /// An integer value representing the index of the currently highlighted item in the Coach Mark sequence. Defaults to `0`.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:61:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
59 |
60 | /// An integer value representing the index of the currently highlighted item in the Coach Mark sequence. Defaults to `0`.
61 | @State var currentHighlight: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
62 |
63 | /// A Boolean value that determines whether the Coach Mark should be hidden automatically. Defaults to `true`.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:64:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
62 |
63 | /// A Boolean value that determines whether the Coach Mark should be hidden automatically. Defaults to `true`.
64 | @State var hideCoachMark: Bool = true
| `- error: 'State' is only available in macOS 10.15 or newer
65 |
66 | /// An array of integers representing the order in which highlights are displayed.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:67:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
65 |
66 | /// An array of integers representing the order in which highlights are displayed.
67 | @State private var highlightOrder: [Int] = []
| `- error: 'State' is only available in macOS 10.15 or newer
68 |
69 | /// A timer that can be used to control the duration and interval of automatic transitions between coach marks.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:70:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
68 |
69 | /// A timer that can be used to control the duration and interval of automatic transitions between coach marks.
70 | @State private var timer: Timer?
| `- error: 'State' is only available in macOS 10.15 or newer
71 |
72 | /// The height of the text description within the coach mark, used for layout purposes.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:73:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
71 |
72 | /// The height of the text description within the coach mark, used for layout purposes.
73 | @State private var descriptionTextHeight: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
74 |
75 | /// Initializes a new `CoachMarkView` modifier with customizable behavior and appearance.
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:94:30: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
86 | /// - doneButtonContent: An optional custom SwiftUI view to replace the default "Done" button.
87 | /// - onCoachMarkFinished: A closure executed when the coach mark sequence is completed. Defaults to an empty closure.
88 | public init(
| `- note: add '@available' attribute to enclosing initializer
89 | isShowCoachMark: Bool = true,
90 | isAutoTransition: Bool = false,
:
92 | coachMarkManager: SSCoachMarkManager = SSCoachMarkManager(),
93 | buttonEventsCoordinator: ButtonEventsCoordinator = ButtonEventsCoordinator(),
94 | skipCoachMarkButton: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
95 | nextButtonContent: AnyView? = nil,
96 | backButtonContent: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:95:28: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
86 | /// - doneButtonContent: An optional custom SwiftUI view to replace the default "Done" button.
87 | /// - onCoachMarkFinished: A closure executed when the coach mark sequence is completed. Defaults to an empty closure.
88 | public init(
| `- note: add '@available' attribute to enclosing initializer
89 | isShowCoachMark: Bool = true,
90 | isAutoTransition: Bool = false,
:
93 | buttonEventsCoordinator: ButtonEventsCoordinator = ButtonEventsCoordinator(),
94 | skipCoachMarkButton: AnyView? = nil,
95 | nextButtonContent: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
96 | backButtonContent: AnyView? = nil,
97 | doneButtonContent: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:96:28: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
86 | /// - doneButtonContent: An optional custom SwiftUI view to replace the default "Done" button.
87 | /// - onCoachMarkFinished: A closure executed when the coach mark sequence is completed. Defaults to an empty closure.
88 | public init(
| `- note: add '@available' attribute to enclosing initializer
89 | isShowCoachMark: Bool = true,
90 | isAutoTransition: Bool = false,
:
94 | skipCoachMarkButton: AnyView? = nil,
95 | nextButtonContent: AnyView? = nil,
96 | backButtonContent: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
97 | doneButtonContent: AnyView? = nil,
98 | onCoachMarkFinished: @escaping () -> () = {}
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:97:28: error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
86 | /// - doneButtonContent: An optional custom SwiftUI view to replace the default "Done" button.
87 | /// - onCoachMarkFinished: A closure executed when the coach mark sequence is completed. Defaults to an empty closure.
88 | public init(
| `- note: add '@available' attribute to enclosing initializer
89 | isShowCoachMark: Bool = true,
90 | isAutoTransition: Bool = false,
:
95 | nextButtonContent: AnyView? = nil,
96 | backButtonContent: AnyView? = nil,
97 | doneButtonContent: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
98 | onCoachMarkFinished: @escaping () -> () = {}
99 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:112:48: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:149:62: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
147 | /// - Returns: A view that highlights the specified area and displays associated content.
148 | @ViewBuilder
149 | private func HighlightView(highlight: Highlight) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
150 | GeometryReader { proxy in
151 | let highlightRect = proxy[highlight.anchor]
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:148:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
146 | ///
147 | /// - Returns: A view that highlights the specified area and displays associated content.
148 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
149 | private func HighlightView(highlight: Highlight) -> some View {
| `- note: add '@available' attribute to enclosing instance method
150 | GeometryReader { proxy in
151 | let highlightRect = proxy[highlight.anchor]
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:257:79: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
255 | ///
256 | /// The popover adapts its layout based on the height of the description text and the available screen space. If the description is too large to fit, it will be presented in a scrollable view. If a custom view is provided in the `Highlight` object, it will be displayed instead of the description. The popover also includes navigation controls for back, skip, next, and done actions if `isAutoTransition` is disabled.
257 | private func popover(highlight: Highlight, highlightRect: CGRect) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
258 |
259 | let customTitleFont = getCustomFont(customFontFamily: configuration.coachMarkTitleViewStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:347:34: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:386:72: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:417:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:438:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:459:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:482:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:576:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
573 | /// ```
574 | /// In this example, the "Next" button will have the text "Proceed", a white foreground color, a blue background, a font size of 14, and bold weight.
575 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
576 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
577 | backgroundColor: Color? = nil,
578 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:577:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
573 | /// ```
574 | /// In this example, the "Next" button will have the text "Proceed", a white foreground color, a blue background, a font size of 14, and bold weight.
575 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
576 | foregroundStyle: Color? = nil,
577 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
578 | fontSize: CGFloat? = nil,
579 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:580:45: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
573 | /// ```
574 | /// In this example, the "Next" button will have the text "Proceed", a white foreground color, a blue background, a font size of 14, and bold weight.
575 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
576 | foregroundStyle: Color? = nil,
577 | backgroundColor: Color? = nil,
578 | fontSize: CGFloat? = nil,
579 | fontFamily: String? = nil,
580 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
581 | var coachMark = self
582 | buttonText.map { coachMark.configuration.nextButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:616:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
613 | /// ```
614 | /// In this example, the "Back" button will have the text "Previous", a white foreground color, a gray background, a font size of 14, and regular weight.
615 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
616 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
617 | backgroundColor: Color? = nil,
618 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:617:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
613 | /// ```
614 | /// In this example, the "Back" button will have the text "Previous", a white foreground color, a gray background, a font size of 14, and regular weight.
615 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
616 | foregroundStyle: Color? = nil,
617 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
618 | fontSize: CGFloat? = nil,
619 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:620:45: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
613 | /// ```
614 | /// In this example, the "Back" button will have the text "Previous", a white foreground color, a gray background, a font size of 14, and regular weight.
615 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
616 | foregroundStyle: Color? = nil,
617 | backgroundColor: Color? = nil,
618 | fontSize: CGFloat? = nil,
619 | fontFamily: String? = nil,
620 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
621 | var coachMark = self
622 | buttonText.map { coachMark.configuration.backButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:656:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
653 | /// ```
654 | /// In this example, the "Done" button will have the text "Finish", a white foreground color, a green background, a font size of 16, and bold weight.
655 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
656 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
657 | backgroundColor: Color? = nil,
658 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:657:50: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
653 | /// ```
654 | /// In this example, the "Done" button will have the text "Finish", a white foreground color, a green background, a font size of 16, and bold weight.
655 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
656 | foregroundStyle: Color? = nil,
657 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
658 | fontSize: CGFloat? = nil,
659 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:660:45: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
653 | /// ```
654 | /// In this example, the "Done" button will have the text "Finish", a white foreground color, a green background, a font size of 16, and bold weight.
655 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
656 | foregroundStyle: Color? = nil,
657 | backgroundColor: Color? = nil,
658 | fontSize: CGFloat? = nil,
659 | fontFamily: String? = nil,
660 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
661 | var coachMark = self
662 | buttonText.map { coachMark.configuration.doneButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:696:59: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
693 | /// ```
694 | /// In this example, the "Skip CoachMark" button will have the text "Skip Now", a black foreground color, a yellow background, a font size of 18, and bold weight.
695 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
696 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
697 | backgroundColor: Color? = nil,
698 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:697:59: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
693 | /// ```
694 | /// In this example, the "Skip CoachMark" button will have the text "Skip Now", a black foreground color, a yellow background, a font size of 18, and bold weight.
695 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
696 | foregroundStyle: Color? = nil,
697 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
698 | fontSize: CGFloat? = nil,
699 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:700:54: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
693 | /// ```
694 | /// In this example, the "Skip CoachMark" button will have the text "Skip Now", a black foreground color, a yellow background, a font size of 18, and bold weight.
695 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add '@available' attribute to enclosing instance method
696 | foregroundStyle: Color? = nil,
697 | backgroundColor: Color? = nil,
698 | fontSize: CGFloat? = nil,
699 | fontFamily: String? = nil,
700 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
701 | var coachMark = self
702 | buttonText.map { coachMark.configuration.skipCoachMarkButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:732:58: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
730 | /// ```
731 | /// In this example, the title in the coach mark view will have blue text, a font size of 24, Arial font, and bold weight.
732 | public func coachMarkTitleViewStyle(foregroundStyle: Color? = nil,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
733 | fontSize: CGFloat? = nil,
734 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:735:53: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
730 | /// ```
731 | /// In this example, the title in the coach mark view will have blue text, a font size of 24, Arial font, and bold weight.
732 | public func coachMarkTitleViewStyle(foregroundStyle: Color? = nil,
| `- note: add '@available' attribute to enclosing instance method
733 | fontSize: CGFloat? = nil,
734 | fontFamily: String? = nil,
735 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
736 | var coachMark = self
737 | foregroundStyle.map { coachMark.configuration.coachMarkTitleViewStyle.foregroundStyle = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:766:64: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
764 | /// ```
765 | /// In this example, the description in the coach mark view will have gray text, a font size of 16, Helvetica font, and regular weight.
766 | public func coachMarkDescriptionViewStyle(foregroundStyle: Color? = nil,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
767 | fontSize: CGFloat? = nil,
768 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:769:59: error: 'Font' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
764 | /// ```
765 | /// In this example, the description in the coach mark view will have gray text, a font size of 16, Helvetica font, and regular weight.
766 | public func coachMarkDescriptionViewStyle(foregroundStyle: Color? = nil,
| `- note: add '@available' attribute to enclosing instance method
767 | fontSize: CGFloat? = nil,
768 | fontFamily: String? = nil,
769 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
770 | var coachMark = self
771 | foregroundStyle.map { coachMark.configuration.coachMarkDescriptionViewStyle.foregroundStyle = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:795:44: error: 'Color' is only available in macOS 10.15 or newer
546 |
547 | // MARK: - Modifiers
548 | extension CoachMarkView {
| `- note: add '@available' attribute to enclosing extension
549 |
550 | /// Configures the style of the "Next" button in the coach mark.
:
793 | /// ```
794 | /// In this example, the coach mark view will have a black overlay with 50% opacity.
795 | public func overlayStyle(overlayColor: Color? = nil,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
796 | overlayOpacity: Double? = nil) -> CoachMarkView {
797 | var coachMark = self
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:114:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | highlightOrder = Array(value.keys).sorted()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:115:17: error: setter for 'highlightOrder' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
115 | highlightOrder = Array(value.keys).sorted()
| |- error: setter for 'highlightOrder' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | }
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:117:14: error: 'overlayPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
115 | highlightOrder = Array(value.keys).sorted()
116 | }
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
| |- error: 'overlayPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
118 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:119:85: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
118 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | HighlightView(highlight: highlight)
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:121:21: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
120 | HighlightView(highlight: highlight)
121 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:118:102: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
116 | }
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
118 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
120 | HighlightView(highlight: highlight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:118:102: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
116 | }
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
118 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
120 | HighlightView(highlight: highlight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:122:17: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
120 | HighlightView(highlight: highlight)
121 | }
122 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | }
124 | .onReceive(buttonEventsCoordinator.publisher(for: .next)) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:117:62: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
115 | highlightOrder = Array(value.keys).sorted()
116 | }
117 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
118 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
119 | if let highlight = preference[highlightOrder[currentHighlight]] {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:124:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
122 | }
123 | }
124 | .onReceive(buttonEventsCoordinator.publisher(for: .next)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | nextButtonAction()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:127:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
125 | nextButtonAction()
126 | }
127 | .onReceive(buttonEventsCoordinator.publisher(for: .back)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | backButtonAction()
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:130:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
128 | backButtonAction()
129 | }
130 | .onReceive(buttonEventsCoordinator.publisher(for: .done)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
131 | finishCoachMark()
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:133:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | }
111 |
112 | public func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
113 | content
114 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
131 | finishCoachMark()
132 | }
133 | .onReceive(buttonEventsCoordinator.publisher(for: .skip)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | finishCoachMark()
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:203:56: error: cannot find 'UIApplication' in scope
201 | .onAppear {
202 | DispatchQueue.main.async {
203 | if let keyWindow = UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
204 | .compactMap({ $0 as? UIWindowScene })
205 | .flatMap({ $0.windows })
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:209:89: error: cannot find 'UIColor' in scope
207 |
208 | if let uiVisualEffectContentView = keyWindow.findUIVisualEffectContentView() {
209 | uiVisualEffectContentView.backgroundColor = UIColor(highlight.coachMarkBackGroundColor)
| `- error: cannot find 'UIColor' in scope
210 | } else {
211 | print("uiVisualEffectContentView view not found")
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:204:62: error: cannot find type 'UIWindowScene' in scope
202 | DispatchQueue.main.async {
203 | if let keyWindow = UIApplication.shared.connectedScenes
204 | .compactMap({ $0 as? UIWindowScene })
| `- error: cannot find type 'UIWindowScene' in scope
205 | .flatMap({ $0.windows })
206 | .first(where: { $0.isKeyWindow }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:236:9: error: setter for 'timer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
232 | ///
233 | /// This function stops any existing timer and then starts a new timer with a duration specified by `autoTransitionDuration`. When the timer fires, it advances to the next coach mark in the sequence. If the current highlight is the last one, it hides the coach marks and calls `onCoachMarkFinished()`. Otherwise, it transitions to the next highlight with a brief delay to show the coach mark again.
234 | private func startTimer() {
| `- note: add '@available' attribute to enclosing instance method
235 | stopTimer()
236 | timer = Timer.scheduledTimer(withTimeInterval: autoTransitionDuration, repeats: false) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | withAnimation {
238 | if currentHighlight >= highlightOrder.count - 1 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:237:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
232 | ///
233 | /// This function stops any existing timer and then starts a new timer with a duration specified by `autoTransitionDuration`. When the timer fires, it advances to the next coach mark in the sequence. If the current highlight is the last one, it hides the coach marks and calls `onCoachMarkFinished()`. Otherwise, it transitions to the next highlight with a brief delay to show the coach mark again.
234 | private func startTimer() {
| `- note: add '@available' attribute to enclosing instance method
235 | stopTimer()
236 | timer = Timer.scheduledTimer(withTimeInterval: autoTransitionDuration, repeats: false) { _ in
237 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 | if currentHighlight >= highlightOrder.count - 1 {
239 | finishCoachMark()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:272:48: error: cannot find 'UIScreen' in scope
270 | .foregroundStyle(configuration.coachMarkTitleViewStyle.foregroundStyle)
271 |
272 | if descriptionTextHeight > UIScreen.main.bounds.height - highlightRect.maxY - Constants.scrollViewOffset || descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
273 | ScrollView {
274 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:272:153: error: cannot find 'UIScreen' in scope
270 | .foregroundStyle(configuration.coachMarkTitleViewStyle.foregroundStyle)
271 |
272 | if descriptionTextHeight > UIScreen.main.bounds.height - highlightRect.maxY - Constants.scrollViewOffset || descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
273 | ScrollView {
274 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:277:99: error: cannot find 'UIScreen' in scope
275 | }
276 | } else {
277 | if descriptionTextHeight >= highlightRect.maxY && descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
278 | ScrollView {
279 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:337:9: error: setter for 'timer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
333 | ///
334 | /// This function invalidates and clears the timer, preventing any scheduled automatic transitions from occurring.
335 | private func stopTimer() {
| `- note: add '@available' attribute to enclosing instance method
336 | timer?.invalidate()
337 | timer = nil
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
338 | }
339 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:353:16: error: 'ZStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
351 | fontWeight: configuration.skipCoachMarkButtonStyle.fontWeight)
352 |
353 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | VStack {
355 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:354:13: error: 'VStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
352 |
353 | return ZStack {
354 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
355 | Spacer()
356 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:355:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
353 | return ZStack {
354 | VStack {
355 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
356 | HStack {
357 | if let skipButton = skipCoachMarkButton {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:355:17: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
353 | return ZStack {
354 | VStack {
355 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
356 | HStack {
357 | if let skipButton = skipCoachMarkButton {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:356:17: error: 'HStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
354 | VStack {
355 | Spacer()
356 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
357 | if let skipButton = skipCoachMarkButton {
358 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:359:30: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
357 | if let skipButton = skipCoachMarkButton {
358 | skipButton
359 | .padding(.leading, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | } else {
361 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:357:61: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
355 | Spacer()
356 | HStack {
357 | if let skipButton = skipCoachMarkButton {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | skipButton
359 | .padding(.leading, 20)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:361:25: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
359 | .padding(.leading, 20)
360 | } else {
361 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | finishCoachMark()
363 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:364:29: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
362 | finishCoachMark()
363 | }, label: {
364 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
365 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
366 | .font(customSkipCoachMarkFont)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:365:34: error: 'tint' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
363 | }, label: {
364 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
365 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
366 | .font(customSkipCoachMarkFont)
367 | .padding(15)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:366:34: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
364 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
365 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
366 | .font(customSkipCoachMarkFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | .padding(15)
368 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:367:34: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
365 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
366 | .font(customSkipCoachMarkFont)
367 | .padding(15)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
368 | .bold()
369 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:368:34: error: 'bold' is only available in macOS 13.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
366 | .font(customSkipCoachMarkFont)
367 | .padding(15)
368 | .bold()
| |- error: 'bold' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
369 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
370 | .cornerRadius(25)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:369:34: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
367 | .padding(15)
368 | .bold()
369 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
370 | .cornerRadius(25)
371 | .padding(.leading, 20)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:370:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
368 | .bold()
369 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
370 | .cornerRadius(25)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
371 | .padding(.leading, 20)
372 | })
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:371:34: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
369 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
370 | .cornerRadius(25)
371 | .padding(.leading, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
372 | })
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:360:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
358 | skipButton
359 | .padding(.leading, 20)
360 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | Button(action: {
362 | finishCoachMark()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:374:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
372 | })
373 | }
374 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:374:21: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
372 | })
373 | }
374 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 | }
376 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:356:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
354 | VStack {
355 | Spacer()
356 | HStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
357 | if let skipButton = skipCoachMarkButton {
358 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:356:24: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
354 | VStack {
355 | Spacer()
356 | HStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
357 | if let skipButton = skipCoachMarkButton {
358 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:354:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
345 | ///
346 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
347 | private var skipButton: some View {
| `- note: add '@available' attribute to enclosing property
348 |
349 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
352 |
353 | return ZStack {
354 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
355 | Spacer()
356 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:392:16: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
390 | fontWeight: configuration.coachMarkDescriptionViewStyle.fontWeight)
391 |
392 | return Text(description)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
393 | .overlay(
394 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:393:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
391 |
392 | return Text(description)
393 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | GeometryReader { proxy in
395 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:394:17: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
392 | return Text(description)
393 | .overlay(
394 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
396 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:395:21: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
393 | .overlay(
394 | GeometryReader { proxy in
395 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | }
397 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:395:27: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
393 | .overlay(
394 | GeometryReader { proxy in
395 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | }
397 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:395:33: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
393 | .overlay(
394 | GeometryReader { proxy in
395 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | }
397 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:398:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
396 | }
397 | )
398 | .onPreferenceChange(ContentLengthPreference.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
399 | DispatchQueue.main.async {
400 | self.descriptionTextHeight = value
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:400:21: error: setter for 'descriptionTextHeight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
398 | .onPreferenceChange(ContentLengthPreference.self) { value in
399 | DispatchQueue.main.async {
400 | self.descriptionTextHeight = value
| |- error: setter for 'descriptionTextHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | }
402 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:403:14: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
401 | }
402 | }
403 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
404 | .padding(.horizontal, 10)
405 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:404:14: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
402 | }
403 | .fixedSize(horizontal: false, vertical: true)
404 | .padding(.horizontal, 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
406 | .frame(height: descriptionTextHeight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:405:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
403 | .fixedSize(horizontal: false, vertical: true)
404 | .padding(.horizontal, 10)
405 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
406 | .frame(height: descriptionTextHeight)
407 | .font(customDescriptionFont)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:406:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
404 | .padding(.horizontal, 10)
405 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
406 | .frame(height: descriptionTextHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | .font(customDescriptionFont)
408 | .padding(.bottom, isAutoTransition ? 10 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:407:14: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
405 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
406 | .frame(height: descriptionTextHeight)
407 | .font(customDescriptionFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | .padding(.bottom, isAutoTransition ? 10 : 0)
409 | .interactiveDismissDisabled()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:408:14: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
406 | .frame(height: descriptionTextHeight)
407 | .font(customDescriptionFont)
408 | .padding(.bottom, isAutoTransition ? 10 : 0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
409 | .interactiveDismissDisabled()
410 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:409:14: error: 'interactiveDismissDisabled' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
384 | /// - Parameter description: The text to display in the description view.
385 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
386 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
387 |
388 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
407 | .font(customDescriptionFont)
408 | .padding(.bottom, isAutoTransition ? 10 : 0)
409 | .interactiveDismissDisabled()
| |- error: 'interactiveDismissDisabled' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
410 | }
411 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:423:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
421 | fontWeight: configuration.backButtonStyle.fontWeight)
422 |
423 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
424 | backButtonAction()
425 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:426:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
424 | backButtonAction()
425 | }) {
426 | Text(configuration.backButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
427 | .unFilledButtonTextModifier(foregroundStyle: configuration.backButtonStyle.foregroundStyle, font: customBackFont)
428 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:427:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
425 | }) {
426 | Text(configuration.backButtonStyle.buttonText)
427 | .unFilledButtonTextModifier(foregroundStyle: configuration.backButtonStyle.foregroundStyle, font: customBackFont)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
428 | }
429 | .background(configuration.backButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:429:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
427 | .unFilledButtonTextModifier(foregroundStyle: configuration.backButtonStyle.foregroundStyle, font: customBackFont)
428 | }
429 | .background(configuration.backButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
430 | .cornerRadius(10)
431 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:430:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
415 | ///
416 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
417 | private var backButtonView: some View {
| `- note: add '@available' attribute to enclosing property
418 |
419 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
428 | }
429 | .background(configuration.backButtonStyle.backgroundColor)
430 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
431 | }
432 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:444:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
442 | fontWeight: configuration.nextButtonStyle.fontWeight)
443 |
444 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
445 | nextButtonAction()
446 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:447:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
445 | nextButtonAction()
446 | }) {
447 | Text(configuration.nextButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
448 | .filledButtonTextModifier(foregroundStyle: configuration.nextButtonStyle.foregroundStyle, font: customNextFont)
449 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:448:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
446 | }) {
447 | Text(configuration.nextButtonStyle.buttonText)
448 | .filledButtonTextModifier(foregroundStyle: configuration.nextButtonStyle.foregroundStyle, font: customNextFont)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
449 | }
450 | .background(configuration.nextButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:450:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
448 | .filledButtonTextModifier(foregroundStyle: configuration.nextButtonStyle.foregroundStyle, font: customNextFont)
449 | }
450 | .background(configuration.nextButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
451 | .cornerRadius(10)
452 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:451:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
436 | ///
437 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
438 | private var nextButtonView: some View {
| `- note: add '@available' attribute to enclosing property
439 |
440 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
449 | }
450 | .background(configuration.nextButtonStyle.backgroundColor)
451 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
452 | }
453 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:465:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
463 | fontWeight: configuration.skipCoachMarkButtonStyle.fontWeight)
464 |
465 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
466 | finishCoachMark()
467 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:468:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
466 | finishCoachMark()
467 | }) {
468 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
469 | .filledButtonTextModifier(foregroundStyle: configuration.skipCoachMarkButtonStyle.foregroundStyle, font: customNextFont)
470 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:469:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
467 | }) {
468 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
469 | .filledButtonTextModifier(foregroundStyle: configuration.skipCoachMarkButtonStyle.foregroundStyle, font: customNextFont)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
470 | }
471 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:471:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
469 | .filledButtonTextModifier(foregroundStyle: configuration.skipCoachMarkButtonStyle.foregroundStyle, font: customNextFont)
470 | }
471 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
472 | .cornerRadius(10)
473 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:472:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
457 | ///
458 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action updates the coach mark visibility and highlight index with a delay.
459 | private var skipButtonView: some View {
| `- note: add '@available' attribute to enclosing property
460 |
461 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
470 | }
471 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
472 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
473 | }
474 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:488:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
486 | fontWeight: configuration.doneButtonStyle.fontWeight)
487 |
488 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
489 | finishCoachMark()
490 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:491:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
489 | finishCoachMark()
490 | }) {
491 | Text(configuration.doneButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
492 | .filledButtonTextModifier(foregroundStyle: configuration.doneButtonStyle.foregroundStyle, font: customDoneFont)
493 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:492:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
490 | }) {
491 | Text(configuration.doneButtonStyle.buttonText)
492 | .filledButtonTextModifier(foregroundStyle: configuration.doneButtonStyle.foregroundStyle, font: customDoneFont)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
493 | }
494 | .background(configuration.doneButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:494:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
492 | .filledButtonTextModifier(foregroundStyle: configuration.doneButtonStyle.foregroundStyle, font: customDoneFont)
493 | }
494 | .background(configuration.doneButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
495 | .cornerRadius(10)
496 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:495:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
480 | ///
481 | /// - Returns: A `Button` view styled with custom font properties, background color, and corner radius. The button’s action includes an animation to hide the coach mark and calls a completion handler.
482 | private var doneButtonView: some View {
| `- note: add '@available' attribute to enclosing property
483 |
484 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
493 | }
494 | .background(configuration.doneButtonStyle.backgroundColor)
495 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | }
497 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:509:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
506 | ///
507 | /// The delay and animation duration are hardcoded in the function.
508 | private func nextButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
509 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
510 | showCoachMark = false
511 | currentHighlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:509:24: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
506 | ///
507 | /// The delay and animation duration are hardcoded in the function.
508 | private func nextButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
509 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
510 | showCoachMark = false
511 | currentHighlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:510:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
506 | ///
507 | /// The delay and animation duration are hardcoded in the function.
508 | private func nextButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
509 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
510 | showCoachMark = false
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
511 | currentHighlight += 1
512 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:511:13: error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
506 | ///
507 | /// The delay and animation duration are hardcoded in the function.
508 | private func nextButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
509 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
510 | showCoachMark = false
511 | currentHighlight += 1
| |- error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
512 | }
513 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:514:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
506 | ///
507 | /// The delay and animation duration are hardcoded in the function.
508 | private func nextButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
509 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
510 | showCoachMark = false
:
512 | }
513 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
514 | self.showCoachMark = true
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
515 | }
516 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:529:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
526 | ///
527 | /// The delay and animation duration are hardcoded in the function.
528 | private func backButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
529 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
530 | showCoachMark = false
531 | currentHighlight -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:529:24: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
526 | ///
527 | /// The delay and animation duration are hardcoded in the function.
528 | private func backButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
529 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
530 | showCoachMark = false
531 | currentHighlight -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:530:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
526 | ///
527 | /// The delay and animation duration are hardcoded in the function.
528 | private func backButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
529 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
530 | showCoachMark = false
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
531 | currentHighlight -= 1
532 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:531:13: error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
526 | ///
527 | /// The delay and animation duration are hardcoded in the function.
528 | private func backButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
529 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
530 | showCoachMark = false
531 | currentHighlight -= 1
| |- error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
532 | }
533 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:534:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
526 | ///
527 | /// The delay and animation duration are hardcoded in the function.
528 | private func backButtonAction() {
| `- note: add '@available' attribute to enclosing instance method
529 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
530 | showCoachMark = false
:
532 | }
533 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
534 | self.showCoachMark = true
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
535 | }
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:540:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
537 |
538 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
539 | private func finishCoachMark() {
| `- note: add '@available' attribute to enclosing instance method
540 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
541 | hideCoachMark = false
542 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:540:24: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
537 |
538 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
539 | private func finishCoachMark() {
| `- note: add '@available' attribute to enclosing instance method
540 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
541 | hideCoachMark = false
542 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:541:13: error: setter for 'hideCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | public struct CoachMarkView: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
537 |
538 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
539 | private func finishCoachMark() {
| `- note: add '@available' attribute to enclosing instance method
540 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
541 | hideCoachMark = false
| |- error: setter for 'hideCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
542 | }
543 | onCoachMarkFinished()
BUILD FAILURE 6.2 macosSpm