Build Information
Failed to build CancelableCircularProgressView, reference v1.0.0 (279c25
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:04:27 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
:
24 | Image(systemName: "stop.fill")
25 | .resizable()
26 | .foregroundColor(backgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .frame(width: iconSize * 0.40, height: iconSize * 0.40)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:27:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
:
25 | .resizable()
26 | .foregroundColor(backgroundColor)
27 | .frame(width: iconSize * 0.40, height: iconSize * 0.40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:13: error: 'VStack' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:50:43: error: 'yellow' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
48 | lineWidth: 8,
49 | iconSize: buttonSize,
50 | backgroundColor: .yellow,
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | foregroundColor: .pink
52 | )
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:51:43: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
49 | iconSize: buttonSize,
50 | backgroundColor: .yellow,
51 | foregroundColor: .pink
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:53:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
51 | foregroundColor: .pink
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .onTapGesture { stopPlayback() }
55 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:54:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
54 | .onTapGesture { stopPlayback() }
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | } else {
56 | Button(action: startPlayback) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:45:33: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | CancelableCircularProgressView(
47 | value: playbackProgress,
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:56:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
54 | .onTapGesture { stopPlayback() }
55 | } else {
56 | Button(action: startPlayback) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | Image(systemName: "play.circle")
58 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:57:25: error: 'Image' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
55 | } else {
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:57:25: error: 'init(systemName:)' is only available in macOS 11.0 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
55 | } else {
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:58:30: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
58 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:59:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
57 | Image(systemName: "play.circle")
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .foregroundColor(.pink)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:60:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:60:47: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:55:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
53 | .frame(width: buttonSize, height: buttonSize)
54 | .onTapGesture { stopPlayback() }
55 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:17: error: 'HStack' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:66:25: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
64 | HStack {
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
67 | }
68 | .padding(.top, 20)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:66:25: error: 'Text' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
64 | HStack {
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | .padding(.top, 20)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:55: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:68:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
68 | .padding(.top, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding(.trailing, 40)
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:69:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
67 | }
68 | .padding(.top, 20)
69 | .padding(.trailing, 40)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 |
71 | Button("Reset") {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:21: error: 'init(_:action:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:28: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:74:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
72 | reset()
73 | }
74 | .padding(.top, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | .foregroundColor(.pink)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:76:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
74 | .padding(.top, 20)
75 | }
76 | .foregroundColor(.pink)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:76:35: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
74 | .padding(.top, 20)
75 | }
76 | .foregroundColor(.pink)
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:78:14: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
76 | .foregroundColor(.pink)
77 | }
78 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:82:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | playbackProgress = 0.0
84 | invalidateTimer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:83:13: error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
| |- error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | invalidateTimer()
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:85:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
84 | invalidateTimer()
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | if playbackProgress < 1.0 {
87 | playbackProgress += 0.05
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:87:21: error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
:
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
86 | if playbackProgress < 1.0 {
87 | playbackProgress += 0.05
| |- error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | } else {
89 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:86:20: warning: main actor-isolated property 'playbackProgress' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- note: property declared here
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
:
84 | invalidateTimer()
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
86 | if playbackProgress < 1.0 {
| `- warning: main actor-isolated property 'playbackProgress' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
87 | playbackProgress += 0.05
88 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:87:21: warning: main actor-isolated property 'playbackProgress' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- note: mutation of this property is only permitted within the actor
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
:
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
86 | if playbackProgress < 1.0 {
87 | playbackProgress += 0.05
| `- warning: main actor-isolated property 'playbackProgress' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
88 | } else {
89 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:89:21: warning: call to main actor-isolated instance method 'stopPlayback()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
87 | playbackProgress += 0.05
88 | } else {
89 | stopPlayback()
| `- warning: call to main actor-isolated instance method 'stopPlayback()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 | }
92 | }
93 |
94 | func stopPlayback() {
| |- note: calls to instance method 'stopPlayback()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
95 | invalidateTimer()
96 | showProgress = false
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:96:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
92 | }
93 |
94 | func stopPlayback() {
| `- note: add @available attribute to enclosing instance method
95 | invalidateTimer()
96 | showProgress = false
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | isPaused = false
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:97:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
92 | }
93 |
94 | func stopPlayback() {
| `- note: add @available attribute to enclosing instance method
95 | invalidateTimer()
96 | showProgress = false
97 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:102:13: error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
| |- error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | showProgress = false
104 | isPaused = false
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:103:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
103 | showProgress = false
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | isPaused = false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:104:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
103 | showProgress = false
104 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:117:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
113 | }
114 |
115 | func pause() {
| `- note: add @available attribute to enclosing instance method
116 | invalidateTimer()
117 | isPaused = true
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:121:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | if playbackProgress < 1.0 {
123 | playbackProgress += 0.05
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:123:21: error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
123 | playbackProgress += 0.05
| |- error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | } else {
125 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:128:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
:
126 | }
127 | }
128 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | }
130 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:122:20: warning: main actor-isolated property 'playbackProgress' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- note: property declared here
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
:
120 | func resume() {
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
| `- warning: main actor-isolated property 'playbackProgress' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
123 | playbackProgress += 0.05
124 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:123:21: warning: main actor-isolated property 'playbackProgress' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- note: mutation of this property is only permitted within the actor
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
:
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
123 | playbackProgress += 0.05
| `- warning: main actor-isolated property 'playbackProgress' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
124 | } else {
125 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:125:21: warning: call to main actor-isolated instance method 'stopPlayback()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
92 | }
93 |
94 | func stopPlayback() {
| |- note: calls to instance method 'stopPlayback()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
95 | invalidateTimer()
96 | showProgress = false
:
123 | playbackProgress += 0.05
124 | } else {
125 | stopPlayback()
| `- warning: call to main actor-isolated instance method 'stopPlayback()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:133:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
129 | }
130 |
131 | func invalidateTimer() {
| `- note: add @available attribute to enclosing instance method
132 | timer?.invalidate()
133 | timer = nil
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: error: 'ForEach' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:17: error: 'ColorScheme' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:138:13: error: 'NavigationView' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | PreviewContainer()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:141:14: error: 'preferredColorScheme' is only available in macOS 11.0 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
139 | PreviewContainer()
140 | }
141 | .preferredColorScheme($0)
| |- error: 'preferredColorScheme' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:136:36: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' 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 static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module CancelableCircularProgressView
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:9:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | var foregroundColor: Color = .accentColor
11 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:9:35: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
10 | var foregroundColor: Color = .accentColor
11 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:10:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
10 | var foregroundColor: Color = .accentColor
| `- error: 'Color' is only available in macOS 10.15 or newer
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:10:35: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
10 | var foregroundColor: Color = .accentColor
| `- error: 'accentColor' is only available in macOS 10.15 or newer
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:92: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:124: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:101: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:133: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:20:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:36:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:37:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:38:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
39 | @State private var isPaused: Bool = false
40 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:39:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
40 |
41 | let buttonSize: CGFloat = 100
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:43:24: error: 'View' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:136:31: error: 'View' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:8:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
9 | var foregroundColor: Color
10 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:9:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var backgroundColor: Color
9 | var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:68: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:100: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:77: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:109: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
39 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
40 | let buttonSize: CGFloat = 100
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | CircularProgressView(value: 0.5, lineWidth: 5)
43 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:46:31: error: 'View' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
48 | NavigationView {
[3/4] Compiling CancelableCircularProgressView CancelableCircularProgressView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:9:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | var foregroundColor: Color = .accentColor
11 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:9:35: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
10 | var foregroundColor: Color = .accentColor
11 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:10:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
10 | var foregroundColor: Color = .accentColor
| `- error: 'Color' is only available in macOS 10.15 or newer
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:10:35: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var iconSize: CGFloat
9 | var backgroundColor: Color = .gray
10 | var foregroundColor: Color = .accentColor
| `- error: 'accentColor' is only available in macOS 10.15 or newer
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:92: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:124: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:101: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:12:133: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
10 | var foregroundColor: Color = .accentColor
11 |
12 | init(value: Double, lineWidth: CGFloat = 5.0, iconSize: CGFloat = 32, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
13 | self.value = value
14 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:20:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:36:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:37:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:38:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
39 | @State private var isPaused: Bool = false
40 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:39:10: error: 'State' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
38 | @State private var timer: Timer? = nil
39 | @State private var isPaused: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
40 |
41 | let buttonSize: CGFloat = 100
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:43:24: error: 'View' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:136:31: error: 'View' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:21:9: error: 'ZStack' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
23 | .frame(width: iconSize, height: iconSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:23:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
23 | .frame(width: iconSize, height: iconSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | Image(systemName: "stop.fill")
25 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:24:13: error: 'Image' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
23 | .frame(width: iconSize, height: iconSize)
24 | Image(systemName: "stop.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .foregroundColor(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:24:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
23 | .frame(width: iconSize, height: iconSize)
24 | Image(systemName: "stop.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .foregroundColor(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:25:18: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
23 | .frame(width: iconSize, height: iconSize)
24 | Image(systemName: "stop.fill")
25 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .foregroundColor(backgroundColor)
27 | .frame(width: iconSize * 0.40, height: iconSize * 0.40)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:26:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
:
24 | Image(systemName: "stop.fill")
25 | .resizable()
26 | .foregroundColor(backgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .frame(width: iconSize * 0.40, height: iconSize * 0.40)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:27:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CancelableCircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack {
22 | CircularProgressView(value: value, lineWidth: lineWidth, backgroundColor: backgroundColor, foregroundColor: foregroundColor)
:
25 | .resizable()
26 | .foregroundColor(backgroundColor)
27 | .frame(width: iconSize * 0.40, height: iconSize * 0.40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:13: error: 'VStack' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:50:43: error: 'yellow' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
48 | lineWidth: 8,
49 | iconSize: buttonSize,
50 | backgroundColor: .yellow,
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | foregroundColor: .pink
52 | )
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:51:43: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
49 | iconSize: buttonSize,
50 | backgroundColor: .yellow,
51 | foregroundColor: .pink
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:53:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
51 | foregroundColor: .pink
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .onTapGesture { stopPlayback() }
55 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:54:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
52 | )
53 | .frame(width: buttonSize, height: buttonSize)
54 | .onTapGesture { stopPlayback() }
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | } else {
56 | Button(action: startPlayback) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:45:33: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | CancelableCircularProgressView(
47 | value: playbackProgress,
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:56:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
54 | .onTapGesture { stopPlayback() }
55 | } else {
56 | Button(action: startPlayback) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | Image(systemName: "play.circle")
58 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:57:25: error: 'Image' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
55 | } else {
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:57:25: error: 'init(systemName:)' is only available in macOS 11.0 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
55 | } else {
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:58:30: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
58 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:59:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
57 | Image(systemName: "play.circle")
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .foregroundColor(.pink)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:60:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:60:47: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
58 | .resizable()
59 | .frame(width: buttonSize, height: buttonSize)
60 | .foregroundColor(.pink)
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:55:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
53 | .frame(width: buttonSize, height: buttonSize)
54 | .onTapGesture { stopPlayback() }
55 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Button(action: startPlayback) {
57 | Image(systemName: "play.circle")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:17: error: 'HStack' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:64:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
62 | }
63 |
64 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:66:25: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
64 | HStack {
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
67 | }
68 | .padding(.top, 20)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:66:25: error: 'Text' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
64 | HStack {
65 | Button(action: togglePauseResume) {
66 | Text(isPaused ? "Resume" : "Pause")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | .padding(.top, 20)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:65:55: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
63 |
64 | HStack {
65 | Button(action: togglePauseResume) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:68:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
66 | Text(isPaused ? "Resume" : "Pause")
67 | }
68 | .padding(.top, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding(.trailing, 40)
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:69:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
67 | }
68 | .padding(.top, 20)
69 | .padding(.trailing, 40)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 |
71 | Button("Reset") {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:21: error: 'Button' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:21: error: 'init(_:action:)' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:71:28: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
69 | .padding(.trailing, 40)
70 |
71 | Button("Reset") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | reset()
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:74:22: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
72 | reset()
73 | }
74 | .padding(.top, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | .foregroundColor(.pink)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:76:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
74 | .padding(.top, 20)
75 | }
76 | .foregroundColor(.pink)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:76:35: error: 'pink' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
74 | .padding(.top, 20)
75 | }
76 | .foregroundColor(.pink)
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:44:33: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
45 | if showProgress {
46 | CancelableCircularProgressView(
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:78:14: error: 'padding' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
41 | let buttonSize: CGFloat = 100
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | VStack(spacing: 20) {
45 | if showProgress {
:
76 | .foregroundColor(.pink)
77 | }
78 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:82:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | playbackProgress = 0.0
84 | invalidateTimer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:83:13: error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
| |- error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | invalidateTimer()
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:85:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
84 | invalidateTimer()
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | if playbackProgress < 1.0 {
87 | playbackProgress += 0.05
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:87:21: error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
79 | }
80 |
81 | func startPlayback() {
| `- note: add @available attribute to enclosing instance method
82 | showProgress = true
83 | playbackProgress = 0.0
:
85 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
86 | if playbackProgress < 1.0 {
87 | playbackProgress += 0.05
| |- error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | } else {
89 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:96:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
92 | }
93 |
94 | func stopPlayback() {
| `- note: add @available attribute to enclosing instance method
95 | invalidateTimer()
96 | showProgress = false
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | isPaused = false
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:97:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
92 | }
93 |
94 | func stopPlayback() {
| `- note: add @available attribute to enclosing instance method
95 | invalidateTimer()
96 | showProgress = false
97 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:102:13: error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
| |- error: setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | showProgress = false
104 | isPaused = false
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:103:13: error: setter for 'showProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
103 | showProgress = false
| |- error: setter for 'showProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | isPaused = false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:104:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
98 | }
99 |
100 | func reset() {
| `- note: add @available attribute to enclosing instance method
101 | invalidateTimer()
102 | playbackProgress = 0.0
103 | showProgress = false
104 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:117:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
113 | }
114 |
115 | func pause() {
| `- note: add @available attribute to enclosing instance method
116 | invalidateTimer()
117 | isPaused = true
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:121:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | if playbackProgress < 1.0 {
123 | playbackProgress += 0.05
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:123:21: error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
123 | playbackProgress += 0.05
| |- error: cannot pass as inout because setter for 'playbackProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | } else {
125 | stopPlayback()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:128:13: error: setter for 'isPaused' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
118 | }
119 |
120 | func resume() {
| `- note: add @available attribute to enclosing instance method
121 | timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
122 | if playbackProgress < 1.0 {
:
126 | }
127 | }
128 | isPaused = false
| |- error: setter for 'isPaused' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | }
130 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:133:13: error: setter for 'timer' is only available in macOS 10.15 or newer
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
35 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
36 | @State private var showProgress: Bool = false
37 | @State private var playbackProgress: Double = 0.0
:
129 | }
130 |
131 | func invalidateTimer() {
| `- note: add @available attribute to enclosing instance method
132 | timer?.invalidate()
133 | timer = nil
| |- error: setter for 'timer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: error: 'ForEach' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:137:17: error: 'ColorScheme' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | NavigationView {
139 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:138:13: error: 'NavigationView' is only available in macOS 10.15 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | PreviewContainer()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:141:14: error: 'preferredColorScheme' is only available in macOS 11.0 or newer
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
139 | PreviewContainer()
140 | }
141 | .preferredColorScheme($0)
| |- error: 'preferredColorScheme' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CancelableCircularProgressView.swift:136:36: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | #if DEBUG
33 | @available(iOS 13.0.0, *)
34 | struct CancelableCircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
35 | struct PreviewContainer: View {
36 | @State private var showProgress: Bool = false
:
134 | }
135 | }
136 | static var previews: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' 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 static property
137 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
138 | NavigationView {
[4/4] Compiling CancelableCircularProgressView CircularProgressView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:8:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
9 | var foregroundColor: Color
10 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:9:26: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
8 | var backgroundColor: Color
9 | var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:68: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:100: error: 'Color' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:77: error: 'gray' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:11:109: error: 'accentColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
9 | var foregroundColor: Color
10 |
11 | init(value: Double, lineWidth: CGFloat = 5.0, backgroundColor: Color = .gray, foregroundColor: Color = .accentColor) {
| | `- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.value = value
13 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
39 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
40 | let buttonSize: CGFloat = 100
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | CircularProgressView(value: 0.5, lineWidth: 5)
43 | .frame(width: buttonSize, height: buttonSize)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:46:31: error: 'View' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
48 | NavigationView {
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:19:9: error: 'ZStack' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Circle()
21 | .strokeBorder(lineWidth: lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:19:16: warning: conformance of 'Circle' to 'InsettableShape' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
| |- warning: conformance of 'Circle' to 'InsettableShape' 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
20 | Circle()
21 | .strokeBorder(lineWidth: lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:20:13: error: 'Circle' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .strokeBorder(lineWidth: lineWidth)
22 | .opacity(0.3)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:21:18: error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
21 | .strokeBorder(lineWidth: lineWidth)
| |- error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
22 | .opacity(0.3)
23 | .foregroundColor(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:22:18: error: 'opacity' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
21 | .strokeBorder(lineWidth: lineWidth)
22 | .opacity(0.3)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .foregroundColor(backgroundColor)
24 |
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:23:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
21 | .strokeBorder(lineWidth: lineWidth)
22 | .opacity(0.3)
23 | .foregroundColor(backgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 |
25 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:25:13: error: 'Circle' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
23 | .foregroundColor(backgroundColor)
24 |
25 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .trim(from: 0.0, to: CGFloat(min(self.value, 1.0)))
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:26:18: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
24 |
25 | Circle()
26 | .trim(from: 0.0, to: CGFloat(min(self.value, 1.0)))
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
28 | .foregroundColor(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:27:18: error: 'stroke(style:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
25 | Circle()
26 | .trim(from: 0.0, to: CGFloat(min(self.value, 1.0)))
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:27:32: error: 'StrokeStyle' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
25 | Circle()
26 | .trim(from: 0.0, to: CGFloat(min(self.value, 1.0)))
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:28:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
26 | .trim(from: 0.0, to: CGFloat(min(self.value, 1.0)))
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
28 | .foregroundColor(foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .rotationEffect(Angle(degrees: 270.0))
30 | .animation(.linear, value: value)
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:29:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .animation(.linear, value: value)
31 | .padding(lineWidth / 2) // Adjust the insets based on the lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:29:33: error: 'Angle' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
27 | .stroke(style: StrokeStyle(lineWidth: lineWidth, lineCap: .round, lineJoin: .round))
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .animation(.linear, value: value)
31 | .padding(lineWidth / 2) // Adjust the insets based on the lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:30:18: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
30 | .animation(.linear, value: value)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .padding(lineWidth / 2) // Adjust the insets based on the lineWidth
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:30:29: error: 'linear' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
28 | .foregroundColor(foregroundColor)
29 | .rotationEffect(Angle(degrees: 270.0))
30 | .animation(.linear, value: value)
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .padding(lineWidth / 2) // Adjust the insets based on the lineWidth
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:31:18: error: 'padding' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0.0, *)
5 | struct CircularProgressView: View {
| `- note: add @available attribute to enclosing struct
6 | var value: Double
7 | var lineWidth: CGFloat
:
16 | }
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | ZStack {
20 | Circle()
:
29 | .rotationEffect(Angle(degrees: 270.0))
30 | .animation(.linear, value: value)
31 | .padding(lineWidth / 2) // Adjust the insets based on the lineWidth
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:43:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
39 | struct PreviewContainer: View {
| `- note: add @available attribute to enclosing struct
40 | let buttonSize: CGFloat = 100
41 | var body: some View {
| `- note: add @available attribute to enclosing property
42 | CircularProgressView(value: 0.5, lineWidth: 5)
43 | .frame(width: buttonSize, height: buttonSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:47:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
48 | NavigationView {
49 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:47:9: error: 'ForEach' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | NavigationView {
49 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:47:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | NavigationView {
49 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:47:17: error: 'ColorScheme' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
| |- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | NavigationView {
49 | PreviewContainer()
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:48:13: error: 'NavigationView' is only available in macOS 10.15 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
48 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | PreviewContainer()
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:51:14: error: 'preferredColorScheme' is only available in macOS 11.0 or newer
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
48 | NavigationView {
49 | PreviewContainer()
50 | }
51 | .preferredColorScheme($0)
| |- error: 'preferredColorScheme' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/CancelableCircularProgressView/CircularProgressView.swift:46:36: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
36 | #if DEBUG
37 | @available(iOS 13.0.0, *)
38 | struct CircularProgressView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | struct PreviewContainer: View {
40 | let buttonSize: CGFloat = 100
:
44 | }
45 | }
46 | static var previews: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' 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 static property
47 | ForEach(ColorScheme.allCases.reversed(), id: \.self) {
48 | NavigationView {
BUILD FAILURE 6.1 macosSpm