Build Information
Failed to build SSCoachMarks, reference master (e8ed46
), with Swift 6.0 for macOS (SPM) on 8 Apr 2025 12:35:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
/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") {
[15/16] Compiling SSCoachMarks View+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Color+Extension.swift:10:11: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 |
12 | /// Initializes a `Color` instance using a hexadecimal color code and an optional opacity value.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Color+Extension.swift:52:31: error: 'Color' is only available in macOS 10.15 or newer
37 | }
38 |
39 | extension Color {
| `- note: add @available attribute to enclosing extension
40 |
41 | /// A static property that represents the default color used throughout the application.
:
50 | /// .foregroundColor(.defaultColor)
51 | /// ```
52 | static let defaultColor = Color(hex: 0xEF5366)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
53 |
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Color+Extension.swift:39:11: error: 'Color' is only available in macOS 10.15 or newer
37 | }
38 |
39 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
40 |
41 | /// A static property that represents the default color used throughout the application.
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Color+Extension.swift:30:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| `- note: add @available attribute to enclosing extension
11 |
12 | /// Initializes a `Color` instance using a hexadecimal color code and an optional opacity value.
:
27 | /// let semiTransparentColor = Color(hex: 0xEF5366, alpha: 0.5)
28 | /// ```
29 | init(hex: UInt, alpha: Double = 1) {
| `- note: add @available attribute to enclosing initializer
30 | self.init(.sRGB,
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | red: Double((hex >> 16) & 0xff) / 255,
32 | green: Double((hex >> 08) & 0xff) / 255,
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/View+Extension.swift:39:57: 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.
:
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: 'Color' 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:39:81: 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.
:
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") {
[16/16] 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:75:41: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | 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
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:112:62: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
110 | /// - Returns: A view that highlights the specified area and displays associated content.
111 | @ViewBuilder
112 | 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
113 | GeometryReader { proxy in
114 | let highlightRect = proxy[highlight.anchor]
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:111:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
109 | ///
110 | /// - Returns: A view that highlights the specified area and displays associated content.
111 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
112 | private func HighlightView(highlight: Highlight) -> some View {
| `- note: add @available attribute to enclosing instance method
113 | GeometryReader { proxy in
114 | let highlightRect = proxy[highlight.anchor]
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:220:79: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
218 | ///
219 | /// 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.
220 | 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
221 |
222 | let customTitleFont = getCustomFont(customFontFamily: configuration.coachMarkTitleViewStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:310:34: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:349:72: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | 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
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:380:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:401:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:422:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:445:38: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:539:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
536 | /// ```
537 | /// 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.
538 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
539 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
540 | backgroundColor: Color? = nil,
541 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:540:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
536 | /// ```
537 | /// 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.
538 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
539 | foregroundStyle: Color? = nil,
540 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
541 | fontSize: CGFloat? = nil,
542 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:543:45: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
536 | /// ```
537 | /// 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.
538 | public func nextButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
539 | foregroundStyle: Color? = nil,
540 | backgroundColor: Color? = nil,
541 | fontSize: CGFloat? = nil,
542 | fontFamily: String? = nil,
543 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
544 | var coachMark = self
545 | buttonText.map { coachMark.configuration.nextButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:579:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
576 | /// ```
577 | /// 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.
578 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
579 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
580 | backgroundColor: Color? = nil,
581 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:580:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
576 | /// ```
577 | /// 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.
578 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
579 | foregroundStyle: Color? = nil,
580 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
581 | fontSize: CGFloat? = nil,
582 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:583:45: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
576 | /// ```
577 | /// 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.
578 | public func backButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
579 | foregroundStyle: Color? = nil,
580 | backgroundColor: Color? = nil,
581 | fontSize: CGFloat? = nil,
582 | fontFamily: String? = nil,
583 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
584 | var coachMark = self
585 | buttonText.map { coachMark.configuration.backButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:619:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
616 | /// ```
617 | /// 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.
618 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
619 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
620 | backgroundColor: Color? = nil,
621 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:620:50: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
616 | /// ```
617 | /// 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.
618 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
619 | foregroundStyle: Color? = nil,
620 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
621 | fontSize: CGFloat? = nil,
622 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:623:45: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
616 | /// ```
617 | /// 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.
618 | public func doneButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
619 | foregroundStyle: Color? = nil,
620 | backgroundColor: Color? = nil,
621 | fontSize: CGFloat? = nil,
622 | fontFamily: String? = nil,
623 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
624 | var coachMark = self
625 | buttonText.map { coachMark.configuration.doneButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:659:59: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
656 | /// ```
657 | /// 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.
658 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
659 | foregroundStyle: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
660 | backgroundColor: Color? = nil,
661 | fontSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:660:59: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
656 | /// ```
657 | /// 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.
658 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
659 | foregroundStyle: Color? = nil,
660 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
661 | fontSize: CGFloat? = nil,
662 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:663:54: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
656 | /// ```
657 | /// 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.
658 | public func skipCoachMarkButtonStyle(buttonText: String? = nil,
| `- note: add @available attribute to enclosing instance method
659 | foregroundStyle: Color? = nil,
660 | backgroundColor: Color? = nil,
661 | fontSize: CGFloat? = nil,
662 | fontFamily: String? = nil,
663 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
664 | var coachMark = self
665 | buttonText.map { coachMark.configuration.skipCoachMarkButtonStyle.buttonText = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:695:58: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
693 | /// ```
694 | /// In this example, the title in the coach mark view will have blue text, a font size of 24, Arial font, and bold weight.
695 | 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
696 | fontSize: CGFloat? = nil,
697 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:698:53: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
693 | /// ```
694 | /// In this example, the title in the coach mark view will have blue text, a font size of 24, Arial font, and bold weight.
695 | public func coachMarkTitleViewStyle(foregroundStyle: Color? = nil,
| `- note: add @available attribute to enclosing instance method
696 | fontSize: CGFloat? = nil,
697 | fontFamily: String? = nil,
698 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
699 | var coachMark = self
700 | foregroundStyle.map { coachMark.configuration.coachMarkTitleViewStyle.foregroundStyle = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:729:64: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
727 | /// ```
728 | /// In this example, the description in the coach mark view will have gray text, a font size of 16, Helvetica font, and regular weight.
729 | 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
730 | fontSize: CGFloat? = nil,
731 | fontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:732:59: error: 'Font' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
727 | /// ```
728 | /// In this example, the description in the coach mark view will have gray text, a font size of 16, Helvetica font, and regular weight.
729 | public func coachMarkDescriptionViewStyle(foregroundStyle: Color? = nil,
| `- note: add @available attribute to enclosing instance method
730 | fontSize: CGFloat? = nil,
731 | fontFamily: String? = nil,
732 | fontWeight: Font.Weight? = nil) -> CoachMarkView {
| `- error: 'Font' is only available in macOS 10.15 or newer
733 | var coachMark = self
734 | foregroundStyle.map { coachMark.configuration.coachMarkDescriptionViewStyle.foregroundStyle = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:758:44: error: 'Color' is only available in macOS 10.15 or newer
509 |
510 | // MARK: - Modifiers
511 | extension CoachMarkView {
| `- note: add @available attribute to enclosing extension
512 |
513 | /// Configures the style of the "Next" button in the coach mark.
:
756 | /// ```
757 | /// In this example, the coach mark view will have a black overlay with 50% opacity.
758 | 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
759 | overlayOpacity: Double? = nil) -> CoachMarkView {
760 | var coachMark = self
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:77:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | highlightOrder = Array(value.keys).sorted()
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:78:17: error: setter for 'highlightOrder' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
78 | highlightOrder = Array(value.keys).sorted()
| |- error: setter for 'highlightOrder' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:80:14: error: 'overlayPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
78 | highlightOrder = Array(value.keys).sorted()
79 | }
80 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
| |- error: 'overlayPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
81 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:82:85: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
80 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
81 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | HighlightView(highlight: highlight)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:84:21: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
83 | HighlightView(highlight: highlight)
84 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:81:102: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
79 | }
80 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
81 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
83 | HighlightView(highlight: highlight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:81: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
79 | }
80 | .overlayPreferenceValue(HighlightAnchorKey.self) { preference in
81 | 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
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
83 | HighlightView(highlight: highlight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:85:17: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
83 | HighlightView(highlight: highlight)
84 | }
85 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | .onReceive(buttonEventsCoordinator.publisher(for: .next)) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:80: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
78 | highlightOrder = Array(value.keys).sorted()
79 | }
80 | .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
81 | if highlightOrder.indices.contains(currentHighlight), isShowCoachMark, hideCoachMark {
82 | if let highlight = preference[highlightOrder[currentHighlight]] {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:87:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
85 | }
86 | }
87 | .onReceive(buttonEventsCoordinator.publisher(for: .next)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | nextButtonAction()
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:90:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
88 | nextButtonAction()
89 | }
90 | .onReceive(buttonEventsCoordinator.publisher(for: .back)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | backButtonAction()
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:93:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
91 | backButtonAction()
92 | }
93 | .onReceive(buttonEventsCoordinator.publisher(for: .done)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | finishCoachMark()
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:96:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
73 | @State private var descriptionTextHeight: CGFloat = 0
74 |
75 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | content
77 | .onPreferenceChange(HighlightAnchorKey.self) { value in
:
94 | finishCoachMark()
95 | }
96 | .onReceive(buttonEventsCoordinator.publisher(for: .skip)) {
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | finishCoachMark()
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:166:56: error: cannot find 'UIApplication' in scope
164 | .onAppear {
165 | DispatchQueue.main.async {
166 | if let keyWindow = UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
167 | .compactMap({ $0 as? UIWindowScene })
168 | .flatMap({ $0.windows })
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:172:89: error: cannot find 'UIColor' in scope
170 |
171 | if let uiVisualEffectContentView = keyWindow.findUIVisualEffectContentView() {
172 | uiVisualEffectContentView.backgroundColor = UIColor(highlight.coachMarkBackGroundColor)
| `- error: cannot find 'UIColor' in scope
173 | } else {
174 | print("uiVisualEffectContentView view not found")
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:199:9: error: setter for 'timer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
195 | ///
196 | /// 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.
197 | private func startTimer() {
| `- note: add @available attribute to enclosing instance method
198 | stopTimer()
199 | 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
200 | withAnimation {
201 | if currentHighlight >= highlightOrder.count - 1 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:200:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
195 | ///
196 | /// 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.
197 | private func startTimer() {
| `- note: add @available attribute to enclosing instance method
198 | stopTimer()
199 | timer = Timer.scheduledTimer(withTimeInterval: autoTransitionDuration, repeats: false) { _ in
200 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | if currentHighlight >= highlightOrder.count - 1 {
202 | finishCoachMark()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:235:48: error: cannot find 'UIScreen' in scope
233 | .foregroundStyle(configuration.coachMarkTitleViewStyle.foregroundStyle)
234 |
235 | if descriptionTextHeight > UIScreen.main.bounds.height - highlightRect.maxY - Constants.scrollViewOffset || descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
236 | ScrollView {
237 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:235:153: error: cannot find 'UIScreen' in scope
233 | .foregroundStyle(configuration.coachMarkTitleViewStyle.foregroundStyle)
234 |
235 | if descriptionTextHeight > UIScreen.main.bounds.height - highlightRect.maxY - Constants.scrollViewOffset || descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
236 | ScrollView {
237 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:240:99: error: cannot find 'UIScreen' in scope
238 | }
239 | } else {
240 | if descriptionTextHeight >= highlightRect.maxY && descriptionTextHeight > UIScreen.main.bounds.height {
| `- error: cannot find 'UIScreen' in scope
241 | ScrollView {
242 | coachMarkDescriptionView(description: description)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:300:9: error: setter for 'timer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
296 | ///
297 | /// This function invalidates and clears the timer, preventing any scheduled automatic transitions from occurring.
298 | private func stopTimer() {
| `- note: add @available attribute to enclosing instance method
299 | timer?.invalidate()
300 | timer = nil
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | }
302 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:316:16: error: 'ZStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
314 | fontWeight: configuration.skipCoachMarkButtonStyle.fontWeight)
315 |
316 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | VStack {
318 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:317:13: error: 'VStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
315 |
316 | return ZStack {
317 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | Spacer()
319 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:318: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
316 | return ZStack {
317 | VStack {
318 | 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
319 | HStack {
320 | if let skipButton = skipCoachMarkButton {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:318:17: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
316 | return ZStack {
317 | VStack {
318 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 | HStack {
320 | if let skipButton = skipCoachMarkButton {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:319:17: error: 'HStack' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
317 | VStack {
318 | Spacer()
319 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
320 | if let skipButton = skipCoachMarkButton {
321 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:322:30: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
320 | if let skipButton = skipCoachMarkButton {
321 | skipButton
322 | .padding(.leading, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
323 | } else {
324 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:320:61: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
318 | Spacer()
319 | HStack {
320 | if let skipButton = skipCoachMarkButton {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
321 | skipButton
322 | .padding(.leading, 20)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:324:25: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
322 | .padding(.leading, 20)
323 | } else {
324 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
325 | finishCoachMark()
326 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:327:29: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
325 | finishCoachMark()
326 | }, label: {
327 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
328 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
329 | .font(customSkipCoachMarkFont)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:328:34: error: 'tint' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
326 | }, label: {
327 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
328 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
329 | .font(customSkipCoachMarkFont)
330 | .padding(15)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:329:34: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
327 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
328 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
329 | .font(customSkipCoachMarkFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
330 | .padding(15)
331 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:330:34: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
328 | .tint(configuration.skipCoachMarkButtonStyle.foregroundStyle)
329 | .font(customSkipCoachMarkFont)
330 | .padding(15)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
331 | .bold()
332 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:331:34: error: 'bold' is only available in macOS 13.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
329 | .font(customSkipCoachMarkFont)
330 | .padding(15)
331 | .bold()
| |- error: 'bold' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
332 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
333 | .cornerRadius(25)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:332:34: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
330 | .padding(15)
331 | .bold()
332 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
333 | .cornerRadius(25)
334 | .padding(.leading, 20)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:333:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
331 | .bold()
332 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
333 | .cornerRadius(25)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
334 | .padding(.leading, 20)
335 | })
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:334:34: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
332 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
333 | .cornerRadius(25)
334 | .padding(.leading, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | })
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:323:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
321 | skipButton
322 | .padding(.leading, 20)
323 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
324 | Button(action: {
325 | finishCoachMark()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:337: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
335 | })
336 | }
337 | 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
338 | }
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:337:21: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
335 | })
336 | }
337 | Spacer()
| |- error: 'Spacer' 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:319: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
317 | VStack {
318 | Spacer()
319 | 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
320 | if let skipButton = skipCoachMarkButton {
321 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:319: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
317 | VStack {
318 | Spacer()
319 | 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
320 | if let skipButton = skipCoachMarkButton {
321 | skipButton
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:317: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
308 | ///
309 | /// - Returns: A `ZStack` containing a `VStack` and `HStack` that arranges the button with custom styling.
310 | private var skipButton: some View {
| `- note: add @available attribute to enclosing property
311 |
312 | let customSkipCoachMarkFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
315 |
316 | return ZStack {
317 | 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
318 | Spacer()
319 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:355:16: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
353 | fontWeight: configuration.coachMarkDescriptionViewStyle.fontWeight)
354 |
355 | return Text(description)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
356 | .overlay(
357 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:356:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
354 |
355 | return Text(description)
356 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
357 | GeometryReader { proxy in
358 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:357:17: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
355 | return Text(description)
356 | .overlay(
357 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | Color.clear.preference(key: ContentLengthPreference.self, value: proxy.size.height)
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:358:21: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
356 | .overlay(
357 | GeometryReader { proxy in
358 | 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
359 | }
360 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:358:27: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
356 | .overlay(
357 | GeometryReader { proxy in
358 | 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
359 | }
360 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:358:33: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
356 | .overlay(
357 | GeometryReader { proxy in
358 | 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
359 | }
360 | )
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:361:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
359 | }
360 | )
361 | .onPreferenceChange(ContentLengthPreference.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | DispatchQueue.main.async {
363 | self.descriptionTextHeight = value
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:363:21: error: setter for 'descriptionTextHeight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
361 | .onPreferenceChange(ContentLengthPreference.self) { value in
362 | DispatchQueue.main.async {
363 | self.descriptionTextHeight = value
| |- error: setter for 'descriptionTextHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | }
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:366:14: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
364 | }
365 | }
366 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | .padding(.horizontal, 10)
368 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:367:14: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
365 | }
366 | .fixedSize(horizontal: false, vertical: true)
367 | .padding(.horizontal, 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
368 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
369 | .frame(height: descriptionTextHeight)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:368:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
366 | .fixedSize(horizontal: false, vertical: true)
367 | .padding(.horizontal, 10)
368 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
369 | .frame(height: descriptionTextHeight)
370 | .font(customDescriptionFont)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:369:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
367 | .padding(.horizontal, 10)
368 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
369 | .frame(height: descriptionTextHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
370 | .font(customDescriptionFont)
371 | .padding(.bottom, isAutoTransition ? 10 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:370:14: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
368 | .foregroundStyle(configuration.coachMarkDescriptionViewStyle.foregroundStyle)
369 | .frame(height: descriptionTextHeight)
370 | .font(customDescriptionFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
371 | .padding(.bottom, isAutoTransition ? 10 : 0)
372 | .interactiveDismissDisabled()
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:371:14: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
369 | .frame(height: descriptionTextHeight)
370 | .font(customDescriptionFont)
371 | .padding(.bottom, isAutoTransition ? 10 : 0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
372 | .interactiveDismissDisabled()
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:372:14: error: 'interactiveDismissDisabled' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
347 | /// - Parameter description: The text to display in the description view.
348 | /// - Returns: A `Text` view styled with the provided description and custom font, with dynamic height adjustment and additional styling for padding and frame configuration.
349 | private func coachMarkDescriptionView(description: String) -> some View {
| `- note: add @available attribute to enclosing instance method
350 |
351 | let customDescriptionFont = getCustomFont(customFontFamily: configuration.coachMarkDescriptionViewStyle.fontFamily,
:
370 | .font(customDescriptionFont)
371 | .padding(.bottom, isAutoTransition ? 10 : 0)
372 | .interactiveDismissDisabled()
| |- error: 'interactiveDismissDisabled' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
373 | }
374 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:386:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
384 | fontWeight: configuration.backButtonStyle.fontWeight)
385 |
386 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
387 | backButtonAction()
388 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:389:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
387 | backButtonAction()
388 | }) {
389 | Text(configuration.backButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | .unFilledButtonTextModifier(foregroundStyle: configuration.backButtonStyle.foregroundStyle, font: customBackFont)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:390: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
388 | }) {
389 | Text(configuration.backButtonStyle.buttonText)
390 | .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
391 | }
392 | .background(configuration.backButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:392:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
390 | .unFilledButtonTextModifier(foregroundStyle: configuration.backButtonStyle.foregroundStyle, font: customBackFont)
391 | }
392 | .background(configuration.backButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
393 | .cornerRadius(10)
394 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:393:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
378 | ///
379 | /// - 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.
380 | private var backButtonView: some View {
| `- note: add @available attribute to enclosing property
381 |
382 | let customBackFont = getCustomFont(customFontFamily: configuration.backButtonStyle.fontFamily,
:
391 | }
392 | .background(configuration.backButtonStyle.backgroundColor)
393 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | }
395 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:407:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
405 | fontWeight: configuration.nextButtonStyle.fontWeight)
406 |
407 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | nextButtonAction()
409 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:410:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
408 | nextButtonAction()
409 | }) {
410 | Text(configuration.nextButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
411 | .filledButtonTextModifier(foregroundStyle: configuration.nextButtonStyle.foregroundStyle, font: customNextFont)
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:411: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
409 | }) {
410 | Text(configuration.nextButtonStyle.buttonText)
411 | .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
412 | }
413 | .background(configuration.nextButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:413:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
411 | .filledButtonTextModifier(foregroundStyle: configuration.nextButtonStyle.foregroundStyle, font: customNextFont)
412 | }
413 | .background(configuration.nextButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
414 | .cornerRadius(10)
415 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:414:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
399 | ///
400 | /// - 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.
401 | private var nextButtonView: some View {
| `- note: add @available attribute to enclosing property
402 |
403 | let customNextFont = getCustomFont(customFontFamily: configuration.nextButtonStyle.fontFamily,
:
412 | }
413 | .background(configuration.nextButtonStyle.backgroundColor)
414 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
415 | }
416 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:428:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
426 | fontWeight: configuration.skipCoachMarkButtonStyle.fontWeight)
427 |
428 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
429 | finishCoachMark()
430 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:431:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
429 | finishCoachMark()
430 | }) {
431 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
432 | .filledButtonTextModifier(foregroundStyle: configuration.skipCoachMarkButtonStyle.foregroundStyle, font: customNextFont)
433 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:432: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
430 | }) {
431 | Text(configuration.skipCoachMarkButtonStyle.buttonText)
432 | .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
433 | }
434 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:434:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
432 | .filledButtonTextModifier(foregroundStyle: configuration.skipCoachMarkButtonStyle.foregroundStyle, font: customNextFont)
433 | }
434 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
435 | .cornerRadius(10)
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:435:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
420 | ///
421 | /// - 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.
422 | private var skipButtonView: some View {
| `- note: add @available attribute to enclosing property
423 |
424 | let customNextFont = getCustomFont(customFontFamily: configuration.skipCoachMarkButtonStyle.fontFamily,
:
433 | }
434 | .background(configuration.skipCoachMarkButtonStyle.backgroundColor)
435 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
436 | }
437 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:451:16: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
449 | fontWeight: configuration.doneButtonStyle.fontWeight)
450 |
451 | return Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
452 | finishCoachMark()
453 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:454:13: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
452 | finishCoachMark()
453 | }) {
454 | Text(configuration.doneButtonStyle.buttonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
455 | .filledButtonTextModifier(foregroundStyle: configuration.doneButtonStyle.foregroundStyle, font: customDoneFont)
456 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:455: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 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
453 | }) {
454 | Text(configuration.doneButtonStyle.buttonText)
455 | .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
456 | }
457 | .background(configuration.doneButtonStyle.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:457:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
455 | .filledButtonTextModifier(foregroundStyle: configuration.doneButtonStyle.foregroundStyle, font: customDoneFont)
456 | }
457 | .background(configuration.doneButtonStyle.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
458 | .cornerRadius(10)
459 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:458:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
443 | ///
444 | /// - 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.
445 | private var doneButtonView: some View {
| `- note: add @available attribute to enclosing property
446 |
447 | let customDoneFont = getCustomFont(customFontFamily: configuration.doneButtonStyle.fontFamily,
:
456 | }
457 | .background(configuration.doneButtonStyle.backgroundColor)
458 | .cornerRadius(10)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
459 | }
460 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:472:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
469 | ///
470 | /// The delay and animation duration are hardcoded in the function.
471 | private func nextButtonAction() {
| `- note: add @available attribute to enclosing instance method
472 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
473 | showCoachMark = false
474 | currentHighlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:472:24: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
469 | ///
470 | /// The delay and animation duration are hardcoded in the function.
471 | private func nextButtonAction() {
| `- note: add @available attribute to enclosing instance method
472 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
473 | showCoachMark = false
474 | currentHighlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:473:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
469 | ///
470 | /// The delay and animation duration are hardcoded in the function.
471 | private func nextButtonAction() {
| `- note: add @available attribute to enclosing instance method
472 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
473 | showCoachMark = false
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
474 | currentHighlight += 1
475 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:474:13: error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
469 | ///
470 | /// The delay and animation duration are hardcoded in the function.
471 | private func nextButtonAction() {
| `- note: add @available attribute to enclosing instance method
472 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
473 | showCoachMark = false
474 | 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
475 | }
476 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:477:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
469 | ///
470 | /// The delay and animation duration are hardcoded in the function.
471 | private func nextButtonAction() {
| `- note: add @available attribute to enclosing instance method
472 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
473 | showCoachMark = false
:
475 | }
476 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
477 | self.showCoachMark = true
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
478 | }
479 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:492:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
489 | ///
490 | /// The delay and animation duration are hardcoded in the function.
491 | private func backButtonAction() {
| `- note: add @available attribute to enclosing instance method
492 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
493 | showCoachMark = false
494 | currentHighlight -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:492:24: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
489 | ///
490 | /// The delay and animation duration are hardcoded in the function.
491 | private func backButtonAction() {
| `- note: add @available attribute to enclosing instance method
492 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
493 | showCoachMark = false
494 | currentHighlight -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:493:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
489 | ///
490 | /// The delay and animation duration are hardcoded in the function.
491 | private func backButtonAction() {
| `- note: add @available attribute to enclosing instance method
492 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
493 | showCoachMark = false
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
494 | currentHighlight -= 1
495 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:494:13: error: cannot pass as inout because setter for 'currentHighlight' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
489 | ///
490 | /// The delay and animation duration are hardcoded in the function.
491 | private func backButtonAction() {
| `- note: add @available attribute to enclosing instance method
492 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
493 | showCoachMark = false
494 | 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
495 | }
496 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:497:13: error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
489 | ///
490 | /// The delay and animation duration are hardcoded in the function.
491 | private func backButtonAction() {
| `- note: add @available attribute to enclosing instance method
492 | withAnimation(.easeOut(duration: Constants.buttonClickedAnimationDelay)) {
493 | showCoachMark = false
:
495 | }
496 | updateAfterDelay(delay: Constants.showCoachMarkViewDelay) {
497 | self.showCoachMark = true
| |- error: setter for 'showCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
498 | }
499 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:503:9: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
500 |
501 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
502 | private func finishCoachMark() {
| `- note: add @available attribute to enclosing instance method
503 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
504 | hideCoachMark = false
505 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:503:24: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
500 |
501 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
502 | private func finishCoachMark() {
| `- note: add @available attribute to enclosing instance method
503 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
504 | hideCoachMark = false
505 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/CoachMarkView.swift:504:13: error: setter for 'hideCoachMark' is only available in macOS 10.15 or newer
9 |
10 | // MARK: CoachMarkView
11 | struct CoachMarkView: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Variables
:
500 |
501 | /// Completes the Coach Mark sequence and triggers the when skip coach mark button actions trigger.
502 | private func finishCoachMark() {
| `- note: add @available attribute to enclosing instance method
503 | withAnimation(.easeInOut(duration: Constants.buttonClickedAnimationDelay)) {
504 | hideCoachMark = false
| |- error: setter for 'hideCoachMark' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
505 | }
506 | onCoachMarkFinished()
BUILD FAILURE 6.0 macosSpm