Build Information
Failed to build ConcentricOnboarding, reference main (5d6924
), with Swift 6.0 for macOS (SPM) on 27 Mar 2025 16:42:39 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
80 | .onChange(of: currentIndex) { _ in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | currentPageChanged()
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:83:14: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
:
81 | currentPageChanged()
82 | }
83 | .onAnimationCompleted(for: progress) {
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
84 | animationCompleted()
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:77:32: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| | |- 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
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:91:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | backgroundColor
93 | currentPages
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:92:13: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
92 | backgroundColor
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
93 | currentPages
94 | button
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:91:16: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
92 | backgroundColor
93 | currentPages
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:100:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
96 | }
97 |
98 | private var shape: some View {
| `- note: add @available attribute to enclosing property
99 | AnimatableShape(progress: progress, radius: radius, limit: limit, direction: direction)
100 | .foregroundColor(circleColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:104:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | shape
106 | Button(action: tapAction) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:106:13: error: 'Button' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | ZStack {
108 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:107:17: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
107 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:108:21: error: 'Circle' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
107 | ZStack {
108 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .foregroundColor(isAnimated ? .clear : circleColor)
110 | .frame(width: 2 * radius, height: 2 * radius)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:109:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
107 | ZStack {
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .frame(width: 2 * radius, height: 2 * radius)
111 | nextImage
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:109:56: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
107 | ZStack {
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .frame(width: 2 * radius, height: 2 * radius)
111 | nextImage
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:110:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
110 | .frame(width: 2 * radius, height: 2 * radius)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | nextImage
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:114:14: error: 'disabled' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
112 | }
113 | }
114 | .disabled(isAnimated)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | }
116 | .offset(y: 300)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:116:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
114 | .disabled(isAnimated)
115 | }
116 | .offset(y: 300)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:120:9: error: 'Image' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:120:9: error: 'init(systemName:)' is only available in macOS 11.0 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:121:14: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:122:14: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | .frame(width: 10, height: 20)
124 | .foregroundColor(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:123:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .foregroundColor(backgroundColor)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:124:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
124 | .foregroundColor(backgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:128:35: error: cannot find 'UIScreen' in scope
126 |
127 | private var currentPages: some View {
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
| `- error: cannot find 'UIScreen' in scope
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:16: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:135:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
137 | y: isAnimated ? maxYOffset : 0)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:136:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:138:22: error: 'animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | }
140 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:133:39: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
131 |
132 | return ZStack {
133 | if pageContents.count > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:139:13: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
139 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 |
141 | if pageContents.count > 1 {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:143:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
141 | if pageContents.count > 1 {
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
145 | y: isAnimated ? 0 : maxYOffset)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:144:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:146:22: error: 'animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:141:39: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
139 | }
140 |
141 | if pageContents.count > 1 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:147:13: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
147 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | }
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:23: 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
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- 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
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:23: 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
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- 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
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:186:13: error: cannot pass as inout because setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
| |- error: cannot pass as inout because setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
187 | withAnimation(outAnimation) { progress = 2 * limit }
188 | updateColors(forNextPage: true)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:187:13: error: 'withAnimation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
187 | withAnimation(outAnimation) { progress = 2 * limit }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | updateColors(forNextPage: true)
189 | } else if progress == 2 * limit {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:187:43: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
187 | withAnimation(outAnimation) { progress = 2 * limit }
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | updateColors(forNextPage: true)
189 | } else if progress == 2 * limit {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:198:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
195 | // MARK: - Next / Prev actions
196 |
197 | private func goToNextPageAnimated() {
| `- note: add @available attribute to enclosing instance method
198 | direction = .forward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | nextIndex = moveIndexForward(currentIndex)
200 | startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:199:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
195 | // MARK: - Next / Prev actions
196 |
197 | private func goToNextPageAnimated() {
| `- note: add @available attribute to enclosing instance method
198 | direction = .forward
199 | nextIndex = moveIndexForward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | startAnimation()
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:204:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:205:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:206:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | nextIndex = moveIndexForward(currentIndex)
208 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:207:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | progress = 0
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:208:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
208 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:212:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
209 | }
210 |
211 | private func goToPrevPageAnimated() {
| `- note: add @available attribute to enclosing instance method
212 | direction = .backward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | nextIndex = moveIndexBackward(currentIndex)
214 | startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:213:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
209 | }
210 |
211 | private func goToPrevPageAnimated() {
| `- note: add @available attribute to enclosing instance method
212 | direction = .backward
213 | nextIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | startAnimation()
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:218:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:219:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:220:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | nextIndex = moveIndexBackward(currentIndex)
222 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:221:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | progress = 0
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:222:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
222 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | }
224 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:227:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | updateColors()
229 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:229:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | withAnimation(inAnimation) { progress = limit }
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:230:9: error: 'withAnimation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
230 | withAnimation(inAnimation) { progress = limit }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | }
232 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:230:38: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
230 | withAnimation(inAnimation) { progress = limit }
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | }
232 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:234:9: error: setter for 'backgroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
231 | }
232 |
233 | private func updateColors(forNextPage: Bool = false) {
| `- note: add @available attribute to enclosing instance method
234 | backgroundColor = pageContents[forNextPage ? nextIndex : currentIndex].background
| |- error: setter for 'backgroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
235 | circleColor = pageContents[forNextPage ? currentIndex : nextIndex].background
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:235:9: error: setter for 'circleColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
231 | }
232 |
233 | private func updateColors(forNextPage: Bool = false) {
| `- note: add @available attribute to enclosing instance method
234 | backgroundColor = pageContents[forNextPage ? nextIndex : currentIndex].background
235 | circleColor = pageContents[forNextPage ? currentIndex : nextIndex].background
| |- error: setter for 'circleColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | }
237 |
[5/6] Emitting module ConcentricOnboarding
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:46: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:50: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:17:64: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
18 |
19 | let pageContents: [PageContent]
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
19 | let pageContents: [PageContent]
20 |
21 | @State private var currentIndex: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
20 |
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
| `- error: 'State' is only available in macOS 10.15 or newer
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:37: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:41: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:57:30: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
55 | private let radius: Double = 30
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:58:31: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:59:32: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 |
61 | public init(pageContents: [PageContent]) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:77:27: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:90:35: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
91 | ZStack {
92 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:98:29: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
96 | }
97 |
98 | private var shape: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
99 | AnimatableShape(progress: progress, radius: radius, limit: limit, direction: direction)
100 | .foregroundColor(circleColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:103:30: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:119:33: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:127:36: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:15:82: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:29:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:11:8: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| |- note: add @available attribute to enclosing struct
| `- note: in associated type 'Self.AnimatableData' (inferred as 'CGFloat')
12 |
13 | enum AnimationType {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:26:41: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
:
24 | }
25 |
26 | 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
27 | return content
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:11:84: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:13:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
12 |
13 | var animatableData: Value {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | didSet { notifyCompletion() }
15 | }
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:38: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:111: error: 'ModifiedContent' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'ModifiedContent' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:40:11: error: 'View' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
[6/6] Compiling ConcentricOnboarding AnimatableShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:29:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:11:8: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| |- note: add @available attribute to enclosing struct
| `- note: in associated type 'Self.AnimatableData' (inferred as 'CGFloat')
12 |
13 | enum AnimationType {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:38:33: error: cannot find 'UIScreen' in scope
36 | r = CGFloat(radius + pow(2, progress))
37 | delta = CGFloat((1 - progress / limit) * radius)
38 | center = CGPoint(x: UIScreen.main.bounds.width / 2 + r - delta - 2.0, y: rect.height / 2)
| `- error: cannot find 'UIScreen' in scope
39 | } else {
40 | r = CGFloat(radius + pow(2, (limit - progress)))
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:42:33: error: cannot find 'UIScreen' in scope
40 | r = CGFloat(radius + pow(2, (limit - progress)))
41 | delta = CGFloat((progress / limit) * radius)
42 | center = CGPoint(x: UIScreen.main.bounds.width / 2 - r + delta, y: rect.height / 2)
| `- error: cannot find 'UIScreen' in scope
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:46:16: error: 'Circle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
:
44 |
45 | let rect = CGRect(x: center.x - r, y: center.y - r, width: 2 * r, height: 2 * r)
46 | return Circle().path(in: rect)
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 |
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Info.plist
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/5] Compiling ConcentricOnboarding AnimationCompletion.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:26:41: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
:
24 | }
25 |
26 | 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
27 | return content
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:11:84: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:13:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
12 |
13 | var animatableData: Value {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | didSet { notifyCompletion() }
15 | }
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:38: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:111: error: 'ModifiedContent' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'ModifiedContent' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:40:11: error: 'View' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:43:16: error: 'modifier' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module ConcentricOnboarding
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:46: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:50: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:17:64: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
18 |
19 | let pageContents: [PageContent]
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
19 | let pageContents: [PageContent]
20 |
21 | @State private var currentIndex: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
20 |
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
| `- error: 'State' is only available in macOS 10.15 or newer
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:37: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:41: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:57:30: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
55 | private let radius: Double = 30
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:58:31: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:59:32: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 |
61 | public init(pageContents: [PageContent]) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:77:27: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:90:35: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
91 | ZStack {
92 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:98:29: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
96 | }
97 |
98 | private var shape: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
99 | AnimatableShape(progress: progress, radius: radius, limit: limit, direction: direction)
100 | .foregroundColor(circleColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:103:30: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:119:33: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:127:36: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:15:82: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:29:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:11:8: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| |- note: add @available attribute to enclosing struct
| `- note: in associated type 'Self.AnimatableData' (inferred as 'CGFloat')
12 |
13 | enum AnimationType {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:26:41: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
:
24 | }
25 |
26 | 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
27 | return content
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:11:84: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
12 |
13 | var animatableData: Value {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:13:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
12 |
13 | var animatableData: Value {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | didSet { notifyCompletion() }
15 | }
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:38: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:42:111: error: 'ModifiedContent' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| | `- error: 'ModifiedContent' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | return modifier(AnimationCompletionObserverModifier(observedValue: value, completion: completion))
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimationCompletion.swift:40:11: error: 'View' is only available in macOS 10.15 or newer
38 |
39 |
40 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
41 |
42 | func onAnimationCompleted<Value: VectorArithmetic>(for value: Value, completion: @escaping () -> Void) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
[4/5] Compiling ConcentricOnboarding ConcentricOnboardingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:46: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:50: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:17:64: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
18 |
19 | let pageContents: [PageContent]
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
19 | let pageContents: [PageContent]
20 |
21 | @State private var currentIndex: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
20 |
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
21 | @State private var currentIndex: Int = 0
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
| `- error: 'State' is only available in macOS 10.15 or newer
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
22 | @State private var nextIndex: Int = 1
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
| `- error: 'State' is only available in macOS 10.15 or newer
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
23 | @State private var progress: Double = 0
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:37: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:26:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
24 | @State private var direction: Direction = .forward
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
27 | @State private var backgroundColor: Color = .clear
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:41: error: 'Color' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
25 | @State private var isAnimated: Bool = false
26 | @State private var circleColor: Color = .clear
27 | @State private var backgroundColor: Color = .clear
| `- error: 'State' is only available in macOS 10.15 or newer
28 |
29 | /// defaults setups, will be change via modifiers
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:57:30: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
55 | private let radius: Double = 30
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:58:31: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:59:32: error: 'Animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 |
61 | public init(pageContents: [PageContent]) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:77:27: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:90:35: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
91 | ZStack {
92 | backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:98:29: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
96 | }
97 |
98 | private var shape: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
99 | AnimatableShape(progress: progress, radius: radius, limit: limit, direction: direction)
100 | .foregroundColor(circleColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:103:30: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:119:33: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:127:36: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:15:82: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:57:43: error: 'easeIn(duration:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
55 | private let radius: Double = 30
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
| | |- error: 'easeIn(duration:)' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:58:44: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
56 | private let limit: Double = 15
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
| | |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:59:45: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
57 | private var inAnimation: Animation { .easeIn(duration: duration / 2) }
58 | private var outAnimation: Animation { .easeOut(duration: duration / 2) }
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
| | |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 |
61 | public init(pageContents: [PageContent]) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:65:32: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
61 | public init(pageContents: [PageContent]) {
| `- note: add @available attribute to enclosing initializer
62 | self.pageContents = pageContents
63 |
64 | if pageContents.indices.contains(0) {
65 | _backgroundColor = State(initialValue: pageContents[0].background)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:69:28: error: 'State' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
59 | private var fullAnimation: Animation { .easeInOut(duration: duration) }
60 |
61 | public init(pageContents: [PageContent]) {
| `- note: add @available attribute to enclosing initializer
62 | self.pageContents = pageContents
63 |
:
67 |
68 | if pageContents.indices.contains(1) {
69 | _circleColor = State(initialValue: pageContents[1].background)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:78:9: 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
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| `- note: add @available attribute to enclosing property
78 | mainContent
| |- 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
79 | .edgesIgnoringSafeArea(.vertical)
80 | .onChange(of: currentIndex) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:79:14: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .onChange(of: currentIndex) { _ in
81 | currentPageChanged()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:80:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
80 | .onChange(of: currentIndex) { _ in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | currentPageChanged()
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:83:14: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
:
81 | currentPageChanged()
82 | }
83 | .onAnimationCompleted(for: progress) {
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
84 | animationCompleted()
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:77:32: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
75 | }
76 |
77 | public var body: some View {
| | |- 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
| `- note: add @available attribute to enclosing property
78 | mainContent
79 | .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:91:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | backgroundColor
93 | currentPages
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:92:13: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
92 | backgroundColor
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
93 | currentPages
94 | button
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:91:16: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
88 | // MARK: - Private
89 |
90 | private var mainContent: some View {
| `- note: add @available attribute to enclosing property
91 | ZStack {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
92 | backgroundColor
93 | currentPages
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:100:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
96 | }
97 |
98 | private var shape: some View {
| `- note: add @available attribute to enclosing property
99 | AnimatableShape(progress: progress, radius: radius, limit: limit, direction: direction)
100 | .foregroundColor(circleColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:104:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | shape
106 | Button(action: tapAction) {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:106:13: error: 'Button' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | ZStack {
108 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:107:17: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
107 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:108:21: error: 'Circle' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
106 | Button(action: tapAction) {
107 | ZStack {
108 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .foregroundColor(isAnimated ? .clear : circleColor)
110 | .frame(width: 2 * radius, height: 2 * radius)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:109:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
107 | ZStack {
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .frame(width: 2 * radius, height: 2 * radius)
111 | nextImage
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:109:56: error: 'clear' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
107 | ZStack {
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .frame(width: 2 * radius, height: 2 * radius)
111 | nextImage
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:110:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
108 | Circle()
109 | .foregroundColor(isAnimated ? .clear : circleColor)
110 | .frame(width: 2 * radius, height: 2 * radius)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | nextImage
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:114:14: error: 'disabled' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
112 | }
113 | }
114 | .disabled(isAnimated)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | }
116 | .offset(y: 300)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:116:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
101 | }
102 |
103 | private var button: some View {
| `- note: add @available attribute to enclosing property
104 | ZStack {
105 | shape
:
114 | .disabled(isAnimated)
115 | }
116 | .offset(y: 300)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:120:9: error: 'Image' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:120:9: error: 'init(systemName:)' is only available in macOS 11.0 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:121:14: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:122:14: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | .frame(width: 10, height: 20)
124 | .foregroundColor(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:123:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .foregroundColor(backgroundColor)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:124:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
117 | }
118 |
119 | private var nextImage: some View {
| `- note: add @available attribute to enclosing property
120 | Image(systemName: nextIcon)
121 | .resizable()
122 | .aspectRatio(contentMode: .fit)
123 | .frame(width: 10, height: 20)
124 | .foregroundColor(backgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:128:35: error: cannot find 'UIScreen' in scope
126 |
127 | private var currentPages: some View {
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
| `- error: cannot find 'UIScreen' in scope
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:16: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:135:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
137 | y: isAnimated ? maxYOffset : 0)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:136:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:138:22: error: 'animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
136 | .offset(x: isAnimated ? coeff * maxXOffset : 0,
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | }
140 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:133:39: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
131 |
132 | return ZStack {
133 | if pageContents.count > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | pageContents[currentIndex].view
135 | .scaleEffect(isAnimated ? 2 / 3 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:139:13: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
137 | y: isAnimated ? maxYOffset : 0)
138 | .animation(isAnimated ? fullAnimation : .none)
139 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 |
141 | if pageContents.count > 1 {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:143:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
141 | if pageContents.count > 1 {
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
145 | y: isAnimated ? 0 : maxYOffset)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:144:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:146:22: error: 'animation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
144 | .offset(x: isAnimated ? 0 : -coeff * maxXOffset,
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:141:39: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
139 | }
140 |
141 | if pageContents.count > 1 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | pageContents[nextIndex].view
143 | .scaleEffect(isAnimated ? 1 : 2 / 3)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:147:13: error: 'buildIf' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
:
145 | y: isAnimated ? 0 : maxYOffset)
146 | .animation(isAnimated ? fullAnimation : .none)
147 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | }
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:23: 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
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- 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
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:132:23: 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
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
125 | }
126 |
127 | private var currentPages: some View {
| `- note: add @available attribute to enclosing property
128 | let maxXOffset: CGFloat = UIScreen.main.bounds.width
129 | let maxYOffset: CGFloat = 40.0
130 | let coeff: CGFloat = direction == .forward ? -1 : 3
131 |
132 | return ZStack {
| |- 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
133 | if pageContents.count > 0 {
134 | pageContents[currentIndex].view
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:186:13: error: cannot pass as inout because setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
| |- error: cannot pass as inout because setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
187 | withAnimation(outAnimation) { progress = 2 * limit }
188 | updateColors(forNextPage: true)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:187:13: error: 'withAnimation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
187 | withAnimation(outAnimation) { progress = 2 * limit }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | updateColors(forNextPage: true)
189 | } else if progress == 2 * limit {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:187:43: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
182 | }
183 |
184 | private func animationCompleted() {
| `- note: add @available attribute to enclosing instance method
185 | if progress == limit {
186 | progress += 0.001
187 | withAnimation(outAnimation) { progress = 2 * limit }
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | updateColors(forNextPage: true)
189 | } else if progress == 2 * limit {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:198:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
195 | // MARK: - Next / Prev actions
196 |
197 | private func goToNextPageAnimated() {
| `- note: add @available attribute to enclosing instance method
198 | direction = .forward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | nextIndex = moveIndexForward(currentIndex)
200 | startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:199:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
195 | // MARK: - Next / Prev actions
196 |
197 | private func goToNextPageAnimated() {
| `- note: add @available attribute to enclosing instance method
198 | direction = .forward
199 | nextIndex = moveIndexForward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | startAnimation()
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:204:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:205:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:206:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | nextIndex = moveIndexForward(currentIndex)
208 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:207:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | progress = 0
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:208:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
201 | }
202 |
203 | private func goToNextPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
204 | isAnimated = false
205 | direction = .forward
206 | currentIndex = moveIndexForward(currentIndex)
207 | nextIndex = moveIndexForward(currentIndex)
208 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:212:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
209 | }
210 |
211 | private func goToPrevPageAnimated() {
| `- note: add @available attribute to enclosing instance method
212 | direction = .backward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | nextIndex = moveIndexBackward(currentIndex)
214 | startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:213:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
209 | }
210 |
211 | private func goToPrevPageAnimated() {
| `- note: add @available attribute to enclosing instance method
212 | direction = .backward
213 | nextIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | startAnimation()
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:218:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:219:9: error: setter for 'direction' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:220:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | nextIndex = moveIndexBackward(currentIndex)
222 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:221:9: error: setter for 'nextIndex' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
| |- error: setter for 'nextIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | progress = 0
223 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:222:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
215 | }
216 |
217 | private func goToPrevPageUnanimated() {
| `- note: add @available attribute to enclosing instance method
218 | isAnimated = false
219 | direction = .backward
220 | currentIndex = moveIndexBackward(currentIndex)
221 | nextIndex = moveIndexBackward(currentIndex)
222 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | }
224 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:227:9: error: setter for 'isAnimated' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
| |- error: setter for 'isAnimated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | updateColors()
229 | progress = 0
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:229:9: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | withAnimation(inAnimation) { progress = limit }
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:230:9: error: 'withAnimation' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
230 | withAnimation(inAnimation) { progress = limit }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | }
232 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:230:38: error: setter for 'progress' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
223 | }
224 |
225 | private func startAnimation() {
| `- note: add @available attribute to enclosing instance method
226 | animationWillBegin()
227 | isAnimated = true
228 | updateColors()
229 | progress = 0
230 | withAnimation(inAnimation) { progress = limit }
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | }
232 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:234:9: error: setter for 'backgroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
231 | }
232 |
233 | private func updateColors(forNextPage: Bool = false) {
| `- note: add @available attribute to enclosing instance method
234 | backgroundColor = pageContents[forNextPage ? nextIndex : currentIndex].background
| |- error: setter for 'backgroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
235 | circleColor = pageContents[forNextPage ? currentIndex : nextIndex].background
236 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/ConcentricOnboardingView.swift:235:9: error: setter for 'circleColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public struct ConcentricOnboardingView<Content>: View, Animatable where Content: View {
| `- note: add @available attribute to enclosing generic struct
16 |
17 | public typealias PageContent = (view: Content, background: Color)
:
231 | }
232 |
233 | private func updateColors(forNextPage: Bool = false) {
| `- note: add @available attribute to enclosing instance method
234 | backgroundColor = pageContents[forNextPage ? nextIndex : currentIndex].background
235 | circleColor = pageContents[forNextPage ? currentIndex : nextIndex].background
| |- error: setter for 'circleColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | }
237 |
[5/5] Compiling ConcentricOnboarding AnimatableShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:29:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:11:8: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| |- note: add @available attribute to enclosing struct
| `- note: in associated type 'Self.AnimatableData' (inferred as 'CGFloat')
12 |
13 | enum AnimationType {
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:38:33: error: cannot find 'UIScreen' in scope
36 | r = CGFloat(radius + pow(2, progress))
37 | delta = CGFloat((1 - progress / limit) * radius)
38 | center = CGPoint(x: UIScreen.main.bounds.width / 2 + r - delta - 2.0, y: rect.height / 2)
| `- error: cannot find 'UIScreen' in scope
39 | } else {
40 | r = CGFloat(radius + pow(2, (limit - progress)))
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:42:33: error: cannot find 'UIScreen' in scope
40 | r = CGFloat(radius + pow(2, (limit - progress)))
41 | delta = CGFloat((progress / limit) * radius)
42 | center = CGPoint(x: UIScreen.main.bounds.width / 2 - r + delta, y: rect.height / 2)
| `- error: cannot find 'UIScreen' in scope
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Helpers/AnimatableShape.swift:46:16: error: 'Circle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct AnimatableShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | enum AnimationType {
:
27 | // MARK: - Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
30 | let (type, progress) = localValues()
31 | let r: CGFloat
:
44 |
45 | let rect = CGRect(x: center.x - r, y: center.y - r, width: 2 * r, height: 2 * r)
46 | return Circle().path(in: rect)
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 |
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/ConcentricOnboarding/Info.plist
BUILD FAILURE 6.0 macosSpm