Build Information
Failed to build KKPinView, reference main (f3146f), with Swift 6.2 for macOS (SPM) on 17 Jan 2026 14:06:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:61: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:21: error: 'HStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:21: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: 'ForEach' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:69: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:83:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
81 | }
82 | }
83 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | .disabled(isLockedOut)
85 | .opacity(isLockedOut ? 0.5 : 1.0)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:84:22: error: 'disabled' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
82 | }
83 | .frame(maxWidth: .infinity)
84 | .disabled(isLockedOut)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .opacity(isLockedOut ? 0.5 : 1.0)
86 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:85:22: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
83 | .frame(maxWidth: .infinity)
84 | .disabled(isLockedOut)
85 | .opacity(isLockedOut ? 0.5 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 |
87 | // Error message
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:89:25: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
87 | // Error message
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:90:30: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:90:36: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:91:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:92:30: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:93:30: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:30: error: 'transition' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:42: error: 'opacity' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'opacity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:50: error: 'combined(with:)' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'combined(with:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:66: error: 'scale' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'scale' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:95:30: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:95:41: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:88:56: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
86 |
87 | // Error message
88 | if let errorMessage = errorMessage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:96:21: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 |
98 | // Custom Numeric Keypad
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:107:22: error: 'disabled' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
105 | }
106 | )
107 | .disabled(isLockedOut)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .opacity(isLockedOut ? 0.5 : 1.0)
109 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:108:22: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
106 | )
107 | .disabled(isLockedOut)
108 | .opacity(isLockedOut ? 0.5 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:57: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:110:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
108 | .opacity(isLockedOut ? 0.5 : 1.0)
109 | }
110 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .padding(.horizontal, 24)
112 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:111:18: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
109 | }
110 | .frame(maxWidth: .infinity)
111 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 |
113 | Spacer()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:113:17: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
111 | .padding(.horizontal, 24)
112 |
113 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:113:17: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
111 | .padding(.horizontal, 24)
112 |
113 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:116:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
114 | }
115 | }
116 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | // Set initial focus
118 | currentFieldIndex = 0
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:118:13: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
116 | .onAppear {
117 | // Set initial focus
118 | currentFieldIndex = 0
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | errorMessage = nil
120 | updateLockoutStatus()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:119:13: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
117 | // Set initial focus
118 | currentFieldIndex = 0
119 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | updateLockoutStatus()
121 | updateErrorMessage()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:137:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
135 | // Clear error message when user starts entering new PIN
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | errorMessage = nil
139 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:137:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
135 | // Clear error message when user starts entering new PIN
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | errorMessage = nil
139 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:138:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
138 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:144:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
142 | // Find the first empty field
143 | if let emptyIndex = pinDigits.firstIndex(where: { $0.isEmpty }) {
144 | pinDigits[emptyIndex] = number
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | // Move to next field if not the last one
146 | if emptyIndex < KKPinviewConstant.totalDigits - 1 {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:147:17: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
145 | // Move to next field if not the last one
146 | if emptyIndex < KKPinviewConstant.totalDigits - 1 {
147 | currentFieldIndex = emptyIndex + 1
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | } else {
149 | // All fields filled, validate the PIN
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:173:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
171 | if isValid {
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | errorMessage = nil
175 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:173:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
171 | if isValid {
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | errorMessage = nil
175 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:174:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
174 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | }
176 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:183:17: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
181 | // PIN is invalid - update error message based on lockout status
182 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
183 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | updatePinErrorMessage()
185 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:183:32: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
181 | // PIN is invalid - update error message based on lockout status
182 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
183 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | updatePinErrorMessage()
185 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:200:9: error: setter for 'isLockedOut' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
196 |
197 | // MARK: - Lockout Management
198 | private func updateLockoutStatus() {
| `- note: add '@available' attribute to enclosing instance method
199 | lockoutManager.checkLockoutStatus()
200 | isLockedOut = lockoutManager.isLockedOut
| |- error: setter for 'isLockedOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | }
202 | private func updatePinErrorMessage() {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:204:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | errorMessage = message
206 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:204:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | errorMessage = message
206 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:205:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
205 | errorMessage = message
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | }
207 | } else {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:208:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
206 | }
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | errorMessage = nil
210 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:208:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
206 | }
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | errorMessage = nil
210 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:209:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
209 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:216:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | errorMessage = message
218 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:216:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | errorMessage = message
218 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:217:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
217 | errorMessage = message
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | } else {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:220:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
218 | }
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | errorMessage = nil
222 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:220:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
218 | }
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | errorMessage = nil
222 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:221:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
221 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:229:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
224 | }
225 |
226 | private func clearPINFields() {
| `- note: add '@available' attribute to enclosing instance method
227 | // Clear all PIN fields
228 | for index in 0..<pinDigits.count {
229 | pinDigits[index] = ""
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | }
231 | currentFieldIndex = 0
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:231:9: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
224 | }
225 |
226 | private func clearPINFields() {
| `- note: add '@available' attribute to enclosing instance method
227 | // Clear all PIN fields
228 | for index in 0..<pinDigits.count {
229 | pinDigits[index] = ""
230 | }
231 | currentFieldIndex = 0
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | }
233 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:244:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
242 | // Clear error message when user deletes digits (but not lockout messages)
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | errorMessage = nil
246 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:244:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
242 | // Clear error message when user deletes digits (but not lockout messages)
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | errorMessage = nil
246 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:245:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
245 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:252:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
250 | if let lastFilledIndex = pinDigits.lastIndex(where: { !$0.isEmpty }) {
251 | // Clear text immediately - PinDigitField will handle the animation
252 | pinDigits[lastFilledIndex] = ""
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
253 | currentFieldIndex = lastFilledIndex
254 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:253:13: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
251 | // Clear text immediately - PinDigitField will handle the animation
252 | pinDigits[lastFilledIndex] = ""
253 | currentFieldIndex = lastFilledIndex
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
254 | }
255 | }
[14/15] Compiling KKPinView KKPinViews.swift
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:26:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
24 | }
25 |
26 | @State private var pinDigits: [String] = Array(repeating: "", count: KKPinviewConstant.totalDigits)
| `- error: 'State' is only available in macOS 10.15 or newer
27 | @State private var currentFieldIndex: Int = 0
28 | @State private var errorMessage: String? = nil
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:27:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
25 |
26 | @State private var pinDigits: [String] = Array(repeating: "", count: KKPinviewConstant.totalDigits)
27 | @State private var currentFieldIndex: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
28 | @State private var errorMessage: String? = nil
29 | @State private var isLockedOut: Bool = false
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:28:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
26 | @State private var pinDigits: [String] = Array(repeating: "", count: KKPinviewConstant.totalDigits)
27 | @State private var currentFieldIndex: Int = 0
28 | @State private var errorMessage: String? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
29 | @State private var isLockedOut: Bool = false
30 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
27 | @State private var currentFieldIndex: Int = 0
28 | @State private var errorMessage: String? = nil
29 | @State private var isLockedOut: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
30 |
31 | // Lockout manager instance
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:38:27: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:258:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
256 | }
257 |
258 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
259 | KKPinViews()
260 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPINSetUPView.swift:262:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
260 | }
261 |
262 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
263 | KKPINSetUPView(
264 | onSetupComplete: { pin in
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:153:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
151 | }
152 |
153 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
154 | ZStack {
155 | Color.white
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:154:5: error: 'ZStack' is only available in macOS 10.15 or newer
152 |
153 | #Preview {
154 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | Color.white
156 | NumericKeypad(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:155:9: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
153 | #Preview {
154 | ZStack {
155 | Color.white
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | NumericKeypad(
157 | onNumberTap: { number in
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:155:9: error: 'Color' is only available in macOS 10.15 or newer
153 | #Preview {
154 | ZStack {
155 | Color.white
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | NumericKeypad(
157 | onNumberTap: { number in
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:155:15: error: 'white' is only available in macOS 10.15 or newer
153 | #Preview {
154 | ZStack {
155 | Color.white
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | NumericKeypad(
157 | onNumberTap: { number in
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/NumericKeypad.swift:154:12: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
152 |
153 | #Preview {
154 | ZStack {
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | Color.white
156 | NumericKeypad(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/PinDigitField.swift:144:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
142 | }
143 |
144 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
145 | PinDigitField(text: .constant("5"), isFocused: true)
146 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:39:9: error: 'ZStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | // Background color
41 | KKPinviewConstant.backgroundColor
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:39:28: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | // Background color
41 | KKPinviewConstant.backgroundColor
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:39:36: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | // Background color
41 | KKPinviewConstant.backgroundColor
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:39:36: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | // Background color
41 | KKPinviewConstant.backgroundColor
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:42:18: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
41 | KKPinviewConstant.backgroundColor
42 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 |
44 | // Content - Centered on screen
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:13: error: 'VStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:32: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:46:17: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
46 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // Card container for PIN fields - Centered
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:46:17: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // Card container for PIN fields - Centered
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:17: error: 'VStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:36: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:57: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:57: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:21: error: 'VStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:40: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:61: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:52:25: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
54 | .foregroundColor(KKPinviewConstant.textColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:52:25: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
54 | .foregroundColor(KKPinviewConstant.textColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:53:30: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
51 | VStack(alignment: .center, spacing: 10) {
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .foregroundColor(KKPinviewConstant.textColor)
55 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:53:36: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
51 | VStack(alignment: .center, spacing: 10) {
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | .foregroundColor(KKPinviewConstant.textColor)
55 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:54:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
54 | .foregroundColor(KKPinviewConstant.textColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 |
56 | Text(KKPinviewConstant.subtitleText)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:56:25: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
54 | .foregroundColor(KKPinviewConstant.textColor)
55 |
56 | Text(KKPinviewConstant.subtitleText)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.system(size: KKPinviewConstant.subtitleFontSize, weight: KKPinviewConstant.subtitleFontWeight))
58 | .foregroundColor(KKPinviewConstant.subtitleTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:56:25: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
54 | .foregroundColor(KKPinviewConstant.textColor)
55 |
56 | Text(KKPinviewConstant.subtitleText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.system(size: KKPinviewConstant.subtitleFontSize, weight: KKPinviewConstant.subtitleFontWeight))
58 | .foregroundColor(KKPinviewConstant.subtitleTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:57:30: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
55 |
56 | Text(KKPinviewConstant.subtitleText)
57 | .font(.system(size: KKPinviewConstant.subtitleFontSize, weight: KKPinviewConstant.subtitleFontWeight))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .foregroundColor(KKPinviewConstant.subtitleTextColor)
59 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:57:36: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
55 |
56 | Text(KKPinviewConstant.subtitleText)
57 | .font(.system(size: KKPinviewConstant.subtitleFontSize, weight: KKPinviewConstant.subtitleFontWeight))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
58 | .foregroundColor(KKPinviewConstant.subtitleTextColor)
59 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:58:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
56 | Text(KKPinviewConstant.subtitleText)
57 | .font(.system(size: KKPinviewConstant.subtitleFontSize, weight: KKPinviewConstant.subtitleFontWeight))
58 | .foregroundColor(KKPinviewConstant.subtitleTextColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 |
60 | // Forgot PIN label
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:62:29: error: 'Button' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
60 | // Forgot PIN label
61 | if showForgotPin {
62 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | onForgotPin?()
64 | }) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:62:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
60 | // Forgot PIN label
61 | if showForgotPin {
62 | Button(action: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | onForgotPin?()
64 | }) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:65:33: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
63 | onForgotPin?()
64 | }) {
65 | Text(KKPinviewConstant.forgotPinText)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:65:33: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
63 | onForgotPin?()
64 | }) {
65 | Text(KKPinviewConstant.forgotPinText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:66:38: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
64 | }) {
65 | Text(KKPinviewConstant.forgotPinText)
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
68 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:66:44: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
64 | }) {
65 | Text(KKPinviewConstant.forgotPinText)
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
68 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:67:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
65 | Text(KKPinviewConstant.forgotPinText)
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | .padding(.top, 8)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:64:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
62 | Button(action: {
63 | onForgotPin?()
64 | }) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | Text(KKPinviewConstant.forgotPinText)
66 | .font(.system(size: KKPinviewConstant.forgotPinFontSize, weight: KKPinviewConstant.forgotPinFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:69:30: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
67 | .foregroundColor(KKPinviewConstant.forgotPinTextColor)
68 | }
69 | .padding(.top, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:61:42: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
59 |
60 | // Forgot PIN label
61 | if showForgotPin {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Button(action: {
63 | onForgotPin?()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:70:25: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
68 | }
69 | .padding(.top, 8)
70 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:61: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:61: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:51:61: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
49 | VStack(alignment: .center, spacing: 40) {
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(String(format: KKPinviewConstant.titleTextFormat, KKPinviewConstant.totalDigits))
53 | .font(.system(size: KKPinviewConstant.titleFontSize, weight: KKPinviewConstant.titleFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:21: error: 'HStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:21: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: 'ForEach' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:75:25: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | PinDigitField(
77 | text: $pinDigits[index],
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:74:69: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
72 |
73 | // PIN input fields - Centered and equally distributed
74 | HStack(spacing: KKPinviewConstant.fieldSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | ForEach(0..<KKPinviewConstant.totalDigits, id: \.self) { index in
76 | PinDigitField(
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:83:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
81 | }
82 | }
83 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | .disabled(isLockedOut)
85 | .opacity(isLockedOut ? 0.5 : 1.0)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:84:22: error: 'disabled' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
82 | }
83 | .frame(maxWidth: .infinity)
84 | .disabled(isLockedOut)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .opacity(isLockedOut ? 0.5 : 1.0)
86 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:85:22: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
83 | .frame(maxWidth: .infinity)
84 | .disabled(isLockedOut)
85 | .opacity(isLockedOut ? 0.5 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 |
87 | // Error message
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:89:25: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
87 | // Error message
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:90:30: error: 'font' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:90:36: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
88 | if let errorMessage = errorMessage {
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:91:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:92:30: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:93:30: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
91 | .foregroundColor(KKPinviewConstant.errorTextColor)
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:30: error: 'transition' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:42: error: 'opacity' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'opacity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:50: error: 'combined(with:)' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'combined(with:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:94:66: error: 'scale' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
92 | .multilineTextAlignment(.center)
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
| |- error: 'scale' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:95:30: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:95:41: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
93 | .padding(.horizontal, 24)
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:88:56: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
86 |
87 | // Error message
88 | if let errorMessage = errorMessage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text(errorMessage)
90 | .font(.system(size: KKPinviewConstant.errorMessageFontSize, weight: KKPinviewConstant.errorMessageFontWeight))
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:96:21: error: 'buildIf' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
94 | .transition(.opacity.combined(with: .scale))
95 | .animation(.easeInOut(duration: 0.3), value: errorMessage)
96 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 |
98 | // Custom Numeric Keypad
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:107:22: error: 'disabled' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
105 | }
106 | )
107 | .disabled(isLockedOut)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .opacity(isLockedOut ? 0.5 : 1.0)
109 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:108:22: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
106 | )
107 | .disabled(isLockedOut)
108 | .opacity(isLockedOut ? 0.5 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:49:57: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
47 |
48 | // Card container for PIN fields - Centered
49 | VStack(alignment: .center, spacing: 40) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | // Title section
51 | VStack(alignment: .center, spacing: 10) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:110:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
108 | .opacity(isLockedOut ? 0.5 : 1.0)
109 | }
110 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .padding(.horizontal, 24)
112 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:111:18: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
109 | }
110 | .frame(maxWidth: .infinity)
111 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 |
113 | Spacer()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:113:17: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
111 | .padding(.horizontal, 24)
112 |
113 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:113:17: error: 'Spacer' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
111 | .padding(.horizontal, 24)
112 |
113 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:45:52: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
43 |
44 | // Content - Centered on screen
45 | VStack(alignment: .center, spacing: 0) {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:116:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
114 | }
115 | }
116 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | // Set initial focus
118 | currentFieldIndex = 0
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:118:13: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
116 | .onAppear {
117 | // Set initial focus
118 | currentFieldIndex = 0
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | errorMessage = nil
120 | updateLockoutStatus()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:119:13: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
36 | }
37 |
38 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
39 | ZStack(alignment: .center) {
40 | // Background color
:
117 | // Set initial focus
118 | currentFieldIndex = 0
119 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | updateLockoutStatus()
121 | updateErrorMessage()
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:137:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
135 | // Clear error message when user starts entering new PIN
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | errorMessage = nil
139 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:137:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
135 | // Clear error message when user starts entering new PIN
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | errorMessage = nil
139 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:138:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
136 | if errorMessage != nil && !errorMessage!.contains("minutes") {
137 | withAnimation(.easeInOut(duration: 0.3)) {
138 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:144:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
142 | // Find the first empty field
143 | if let emptyIndex = pinDigits.firstIndex(where: { $0.isEmpty }) {
144 | pinDigits[emptyIndex] = number
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | // Move to next field if not the last one
146 | if emptyIndex < KKPinviewConstant.totalDigits - 1 {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:147:17: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
125 |
126 | // MARK: - Helper Methods
127 | private func handleNumberTap(_ number: String) {
| `- note: add '@available' attribute to enclosing instance method
128 | // Check if locked out
129 | updateLockoutStatus()
:
145 | // Move to next field if not the last one
146 | if emptyIndex < KKPinviewConstant.totalDigits - 1 {
147 | currentFieldIndex = emptyIndex + 1
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | } else {
149 | // All fields filled, validate the PIN
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:173:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
171 | if isValid {
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | errorMessage = nil
175 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:173:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
171 | if isValid {
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | errorMessage = nil
175 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:174:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
172 | // PIN is valid - clear error, clear fields and notify success
173 | withAnimation(.easeInOut(duration: 0.3)) {
174 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | }
176 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:183:17: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
181 | // PIN is invalid - update error message based on lockout status
182 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
183 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | updatePinErrorMessage()
185 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:183:32: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
153 | }
154 |
155 | private func validateAndSubmitPIN() {
| `- note: add '@available' attribute to enclosing instance method
156 | // Check lockout status before validation
157 | updateLockoutStatus()
:
181 | // PIN is invalid - update error message based on lockout status
182 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
183 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | updatePinErrorMessage()
185 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:200:9: error: setter for 'isLockedOut' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
196 |
197 | // MARK: - Lockout Management
198 | private func updateLockoutStatus() {
| `- note: add '@available' attribute to enclosing instance method
199 | lockoutManager.checkLockoutStatus()
200 | isLockedOut = lockoutManager.isLockedOut
| |- error: setter for 'isLockedOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | }
202 | private func updatePinErrorMessage() {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:204:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | errorMessage = message
206 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:204:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | errorMessage = message
206 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:205:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
205 | errorMessage = message
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | }
207 | } else {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:208:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
206 | }
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | errorMessage = nil
210 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:208:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
206 | }
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | errorMessage = nil
210 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:209:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
200 | isLockedOut = lockoutManager.isLockedOut
201 | }
202 | private func updatePinErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
203 | if let message = lockoutManager.getErrorMessage() {
204 | withAnimation(.easeInOut(duration: 0.3)) {
:
207 | } else {
208 | withAnimation(.easeInOut(duration: 0.3)) {
209 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | }
211 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:216:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | errorMessage = message
218 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:216:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | errorMessage = message
218 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:217:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
217 | errorMessage = message
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | } else {
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:220:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
218 | }
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | errorMessage = nil
222 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:220:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
218 | }
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | errorMessage = nil
222 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:221:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
212 | }
213 |
214 | private func updateErrorMessage() {
| `- note: add '@available' attribute to enclosing instance method
215 | if let message = lockoutManager.getLocKOutErrorMessagePinError() {
216 | withAnimation(.easeInOut(duration: 0.3)) {
:
219 | } else {
220 | withAnimation(.easeInOut(duration: 0.3)) {
221 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | }
223 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:229:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
224 | }
225 |
226 | private func clearPINFields() {
| `- note: add '@available' attribute to enclosing instance method
227 | // Clear all PIN fields
228 | for index in 0..<pinDigits.count {
229 | pinDigits[index] = ""
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | }
231 | currentFieldIndex = 0
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:231:9: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
224 | }
225 |
226 | private func clearPINFields() {
| `- note: add '@available' attribute to enclosing instance method
227 | // Clear all PIN fields
228 | for index in 0..<pinDigits.count {
229 | pinDigits[index] = ""
230 | }
231 | currentFieldIndex = 0
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | }
233 |
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:244:13: error: 'withAnimation' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
242 | // Clear error message when user deletes digits (but not lockout messages)
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | errorMessage = nil
246 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:244:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
242 | // Clear error message when user deletes digits (but not lockout messages)
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | errorMessage = nil
246 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:245:17: error: setter for 'errorMessage' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
243 | if errorMessage != nil && !errorMessage!.contains("minutes") {
244 | withAnimation(.easeInOut(duration: 0.3)) {
245 | errorMessage = nil
| |- error: setter for 'errorMessage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:252:13: error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
250 | if let lastFilledIndex = pinDigits.lastIndex(where: { !$0.isEmpty }) {
251 | // Clear text immediately - PinDigitField will handle the animation
252 | pinDigits[lastFilledIndex] = ""
| |- error: cannot pass as inout because setter for 'pinDigits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
253 | currentFieldIndex = lastFilledIndex
254 | }
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KKPinViews.swift:253:13: error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 15.0, *)
11 | public struct KKPinViews: View {
| `- note: add '@available' attribute to enclosing struct
12 | public var onForgotPin: (() -> Void)? = nil
13 | public var onSubmit: ((Bool) -> Void)? = nil
:
232 | }
233 |
234 | private func handleDeleteTap() {
| `- note: add '@available' attribute to enclosing instance method
235 | // Check if locked out
236 | updateLockoutStatus()
:
251 | // Clear text immediately - PinDigitField will handle the animation
252 | pinDigits[lastFilledIndex] = ""
253 | currentFieldIndex = lastFilledIndex
| |- error: setter for 'currentFieldIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
254 | }
255 | }
[15/15] Compiling KKPinView PinTextFieldType.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/KKPinView/Sources/KKPinView/KeyGenerator/README.md
BUILD FAILURE 6.2 macosSpm