Build Information
Failed to build ExpandableText, reference main (2b0dd2
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 12:34:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/n3d1117/ExpandableText.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/n3d1117/ExpandableText
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2b0dd2f Update README.md
Cloned https://github.com/n3d1117/ExpandableText.git
Revision (git rev-parse @):
2b0dd2f3d2870fe933ffe5c2ee057d2e9fa647e2
SUCCESS checkout https://github.com/n3d1117/ExpandableText.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "expandabletext",
"name": "ExpandableText",
"url": "https://github.com/n3d1117/ExpandableText.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ExpandableText",
"dependencies": [
]
}
]
}
Fetching https://github.com/n3d1117/ExpandableText.git
[1/208] Fetching expandabletext
Fetched https://github.com/n3d1117/ExpandableText.git from cache (0.74s)
Creating working copy for https://github.com/n3d1117/ExpandableText.git
Working copy of https://github.com/n3d1117/ExpandableText.git resolved at main (2b0dd2f)
warning: '.resolve-product-dependencies': dependency 'expandabletext' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/n3d1117/ExpandableText.git
{
"dependencies" : [
],
"manifest_display_name" : "ExpandableText",
"name" : "ExpandableText",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ExpandableText",
"targets" : [
"ExpandableText"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ExpandableText",
"module_type" : "SwiftTarget",
"name" : "ExpandableText",
"path" : "Sources",
"product_memberships" : [
"ExpandableText"
],
"sources" : [
"ExpandableText/ExpandableText+Modifiers.swift",
"ExpandableText/ExpandableText.swift",
"Utilities/OverlayAdapter.swift",
"Utilities/TruncationTextMask.swift",
"Utilities/ViewSizeReader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling ExpandableText ViewSizeReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | // https://www.fivestars.blog/articles/swiftui-share-layout-information/
11 | private struct SizePreferenceKey: PreferenceKey {
12 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:17:65: error: 'View' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
18 | background(
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:18:9: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | GeometryReader { geometryProxy in
20 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:19:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Color.clear
21 | .preference(key: SizePreferenceKey.self, value: geometryProxy.size)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:20:17: error: 'Color' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
20 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .preference(key: SizePreferenceKey.self, value: geometryProxy.size)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:20:23: error: 'clear' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
20 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .preference(key: SizePreferenceKey.self, value: geometryProxy.size)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:21:22: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
20 | Color.clear
21 | .preference(key: SizePreferenceKey.self, value: geometryProxy.size)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:24:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
:
22 | }
23 | )
24 | .onPreferenceChange(SizePreferenceKey.self, perform: onChange)
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
[4/8] Compiling ExpandableText TruncationTextMask.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:15:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
13 | let enabled: Bool
14 |
15 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
16 |
17 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
13 | let enabled: Bool
14 |
15 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 |
17 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:17:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:51:70: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | internal extension View {
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:50:20: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:20:18: error: 'mask' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
20 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | VStack(spacing: 0) {
22 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:21:21: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
20 | .mask(
21 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | Rectangle()
23 | HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:22:25: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
20 | .mask(
21 | VStack(spacing: 0) {
22 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | HStack(spacing: 0) {
24 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:23:25: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
21 | VStack(spacing: 0) {
22 | Rectangle()
23 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | Rectangle()
25 | HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:24:29: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
22 | Rectangle()
23 | HStack(spacing: 0) {
24 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | HStack(spacing: 0) {
26 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:25:29: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
23 | HStack(spacing: 0) {
24 | Rectangle()
25 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | LinearGradient(
27 | gradient: Gradient(stops: [
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:26:33: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
24 | Rectangle()
25 | HStack(spacing: 0) {
26 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | gradient: Gradient(stops: [
28 | Gradient.Stop(color: .black, location: 0),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:27:47: error: 'Gradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
25 | HStack(spacing: 0) {
26 | LinearGradient(
27 | gradient: Gradient(stops: [
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | Gradient.Stop(color: .black, location: 0),
29 | Gradient.Stop(color: .clear, location: 0.9)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:28:41: error: 'Gradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
26 | LinearGradient(
27 | gradient: Gradient(stops: [
28 | Gradient.Stop(color: .black, location: 0),
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Gradient.Stop(color: .clear, location: 0.9)
30 | ]),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:28:63: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
26 | LinearGradient(
27 | gradient: Gradient(stops: [
28 | Gradient.Stop(color: .black, location: 0),
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Gradient.Stop(color: .clear, location: 0.9)
30 | ]),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:29:41: error: 'Gradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
27 | gradient: Gradient(stops: [
28 | Gradient.Stop(color: .black, location: 0),
29 | Gradient.Stop(color: .clear, location: 0.9)
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | ]),
31 | startPoint: layoutDirection == .rightToLeft ? .trailing : .leading,
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:29:63: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
27 | gradient: Gradient(stops: [
28 | Gradient.Stop(color: .black, location: 0),
29 | Gradient.Stop(color: .clear, location: 0.9)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | ]),
31 | startPoint: layoutDirection == .rightToLeft ? .trailing : .leading,
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:34:34: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
32 | endPoint: layoutDirection == .rightToLeft ? .leading : .trailing
33 | )
34 | .frame(width: size.width, height: size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 |
36 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:36:33: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
34 | .frame(width: size.width, height: size.height)
35 |
36 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .foregroundColor(.clear)
38 | .frame(width: size.width)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:37:38: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
35 |
36 | Rectangle()
37 | .foregroundColor(.clear)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .frame(width: size.width)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:37:55: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
35 |
36 | Rectangle()
37 | .foregroundColor(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .frame(width: size.width)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:38:38: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
36 | Rectangle()
37 | .foregroundColor(.clear)
38 | .frame(width: size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }.frame(height: size.height)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:40:27: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
38 | .frame(width: size.width)
39 | }
40 | }.frame(height: size.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | }
42 | )
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:18:20: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | content
20 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:45:18: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
43 | } else {
44 | content
45 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:43:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
:
41 | }
42 | )
43 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | content
45 | .fixedSize(horizontal: false, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:17:46: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:52:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
48 | }
49 |
50 | internal extension View {
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
53 | }
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:52:9: error: 'modifier' is only available in macOS 10.15 or newer
48 | }
49 |
50 | internal extension View {
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module ExpandableText
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:18:23: error: 'Font' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
16 | - Returns: A new `ExpandableText` instance with the specified font applied.
17 | */
18 | func font(_ font: Font) -> Self {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | var copy = self
20 | copy.font = font
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:29:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
27 | - Returns: A new `ExpandableText` instance with the specified foreground color applied.
28 | */
29 | func foregroundColor(_ color: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | var copy = self
31 | copy.color = color
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:62:33: error: 'Font' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
60 | - Returns: A new `ExpandableText` instance with the specified "show more" button font applied.
61 | */
62 | func moreButtonFont(_ font: Font) -> Self {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
63 | var copy = self
64 | copy.moreButtonFont = font
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:73:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
71 | - Returns: A new `ExpandableText` instance with the specified "show more" button color applied.
72 | */
73 | func moreButtonColor(_ color: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
74 | var copy = self
75 | copy.moreButtonColor = color
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:84:39: error: 'Animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
82 | - Returns: A new `ExpandableText` instance with the specified expansion animation applied.
83 | */
84 | func expandAnimation(_ animation: Animation) -> Self {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.expandAnimation = animation
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
31 | @State private var isTruncated: Bool = false
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
31 | @State private var isTruncated: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
32 |
33 | @State private var intrinsicSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
31 | @State private var isTruncated: Bool = false
32 |
33 | @State private var intrinsicSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var truncatedSize: CGSize = .zero
35 | @State private var moreTextSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
32 |
33 | @State private var intrinsicSize: CGSize = .zero
34 | @State private var truncatedSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
35 | @State private var moreTextSize: CGSize = .zero
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
33 | @State private var intrinsicSize: CGSize = .zero
34 | @State private var truncatedSize: CGSize = .zero
35 | @State private var moreTextSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
36 |
37 | private let text: String
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:38:24: error: 'Font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
36 |
37 | private let text: String
38 | internal var font: Font = .body
| `- error: 'Font' is only available in macOS 10.15 or newer
39 | internal var color: Color = .primary
40 | internal var lineLimit: Int = 3
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:38:32: error: 'body' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
36 |
37 | private let text: String
38 | internal var font: Font = .body
| `- error: 'body' is only available in macOS 10.15 or newer
39 | internal var color: Color = .primary
40 | internal var lineLimit: Int = 3
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:39:25: error: 'Color' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
37 | private let text: String
38 | internal var font: Font = .body
39 | internal var color: Color = .primary
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:39:34: error: 'primary' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
37 | private let text: String
38 | internal var font: Font = .body
39 | internal var color: Color = .primary
| `- error: 'primary' is only available in macOS 10.15 or newer
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:42:34: error: 'Font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
| `- error: 'Font' is only available in macOS 10.15 or newer
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:43:35: error: 'Color' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
| `- error: 'Color' is only available in macOS 10.15 or newer
44 | internal var expandAnimation: Animation = .default
45 | internal var collapseEnabled: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:43:44: error: 'accentColor' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
| `- error: 'accentColor' is only available in macOS 10.15 or newer
44 | internal var expandAnimation: Animation = .default
45 | internal var collapseEnabled: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:44:35: error: 'Animation' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
| `- error: 'Animation' is only available in macOS 10.15 or newer
45 | internal var collapseEnabled: Bool = false
46 | internal var trimMultipleNewlinesWhenTruncated: Bool = true
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:44:48: error: 'default' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
| `- error: 'default' is only available in macOS 10.15 or newer
45 | internal var collapseEnabled: Bool = false
46 | internal var trimMultipleNewlinesWhenTruncated: Bool = true
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:57:27: error: 'View' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:101:31: error: 'View' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:11:20: error: 'Alignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
12 | let view: () -> V
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:14:21: error: 'Alignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
13 |
14 | init(alignment: Alignment, @ViewBuilder view: @escaping () -> V) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.alignment = alignment
16 | self.view = view
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:14:33: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
13 |
14 | init(alignment: Alignment, @ViewBuilder view: @escaping () -> V) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.alignment = alignment
16 | self.view = view
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:19:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
21 | content.overlay(alignment: alignment, content: view)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:10:35: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:15:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
13 | let enabled: Bool
14 |
15 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
16 |
17 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
13 | let enabled: Bool
14 |
15 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 |
17 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:17:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct TruncationTextMask: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let size: CGSize
:
15 | @Environment(\.layoutDirection) private var layoutDirection
16 |
17 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | if enabled {
19 | content
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:51:70: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | internal extension View {
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/TruncationTextMask.swift:50:20: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | func applyingTruncationMask(size: CGSize, enabled: Bool) -> some View {
52 | modifier(TruncationTextMask(size: size, enabled: enabled))
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | // https://www.fivestars.blog/articles/swiftui-share-layout-information/
11 | private struct SizePreferenceKey: PreferenceKey {
12 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:17:65: error: 'View' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | background(
19 | GeometryReader { geometryProxy in
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/ViewSizeReader.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
18 | background(
[6/8] Compiling ExpandableText ExpandableText+Modifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:18:23: error: 'Font' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
16 | - Returns: A new `ExpandableText` instance with the specified font applied.
17 | */
18 | func font(_ font: Font) -> Self {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | var copy = self
20 | copy.font = font
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:29:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
27 | - Returns: A new `ExpandableText` instance with the specified foreground color applied.
28 | */
29 | func foregroundColor(_ color: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | var copy = self
31 | copy.color = color
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:62:33: error: 'Font' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
60 | - Returns: A new `ExpandableText` instance with the specified "show more" button font applied.
61 | */
62 | func moreButtonFont(_ font: Font) -> Self {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
63 | var copy = self
64 | copy.moreButtonFont = font
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:73:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
71 | - Returns: A new `ExpandableText` instance with the specified "show more" button color applied.
72 | */
73 | func moreButtonColor(_ color: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
74 | var copy = self
75 | copy.moreButtonColor = color
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText+Modifiers.swift:84:39: error: 'Animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension ExpandableText {
| `- note: add @available attribute to enclosing extension
12 |
13 | /**
:
82 | - Returns: A new `ExpandableText` instance with the specified expansion animation applied.
83 | */
84 | func expandAnimation(_ animation: Animation) -> Self {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.expandAnimation = animation
[7/8] Compiling ExpandableText ExpandableText.swift
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
31 | @State private var isTruncated: Bool = false
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
31 | @State private var isTruncated: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
32 |
33 | @State private var intrinsicSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
31 | @State private var isTruncated: Bool = false
32 |
33 | @State private var intrinsicSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var truncatedSize: CGSize = .zero
35 | @State private var moreTextSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
32 |
33 | @State private var intrinsicSize: CGSize = .zero
34 | @State private var truncatedSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
35 | @State private var moreTextSize: CGSize = .zero
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
33 | @State private var intrinsicSize: CGSize = .zero
34 | @State private var truncatedSize: CGSize = .zero
35 | @State private var moreTextSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
36 |
37 | private let text: String
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:38:24: error: 'Font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
36 |
37 | private let text: String
38 | internal var font: Font = .body
| `- error: 'Font' is only available in macOS 10.15 or newer
39 | internal var color: Color = .primary
40 | internal var lineLimit: Int = 3
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:38:32: error: 'body' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
36 |
37 | private let text: String
38 | internal var font: Font = .body
| `- error: 'body' is only available in macOS 10.15 or newer
39 | internal var color: Color = .primary
40 | internal var lineLimit: Int = 3
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:39:25: error: 'Color' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
37 | private let text: String
38 | internal var font: Font = .body
39 | internal var color: Color = .primary
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:39:34: error: 'primary' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
37 | private let text: String
38 | internal var font: Font = .body
39 | internal var color: Color = .primary
| `- error: 'primary' is only available in macOS 10.15 or newer
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:42:34: error: 'Font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
40 | internal var lineLimit: Int = 3
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
| `- error: 'Font' is only available in macOS 10.15 or newer
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:43:35: error: 'Color' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
| `- error: 'Color' is only available in macOS 10.15 or newer
44 | internal var expandAnimation: Animation = .default
45 | internal var collapseEnabled: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:43:44: error: 'accentColor' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
41 | internal var moreButtonText: String = "more"
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
| `- error: 'accentColor' is only available in macOS 10.15 or newer
44 | internal var expandAnimation: Animation = .default
45 | internal var collapseEnabled: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:44:35: error: 'Animation' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
| `- error: 'Animation' is only available in macOS 10.15 or newer
45 | internal var collapseEnabled: Bool = false
46 | internal var trimMultipleNewlinesWhenTruncated: Bool = true
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:44:48: error: 'default' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
42 | internal var moreButtonFont: Font?
43 | internal var moreButtonColor: Color = .accentColor
44 | internal var expandAnimation: Animation = .default
| `- error: 'default' is only available in macOS 10.15 or newer
45 | internal var collapseEnabled: Bool = false
46 | internal var trimMultipleNewlinesWhenTruncated: Bool = true
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:57:27: error: 'View' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:101:31: error: 'View' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:58:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
59 | .lineLimit(isExpanded ? nil : lineLimit)
60 | .applyingTruncationMask(size: moreTextSize, enabled: shouldShowMoreButton)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:59:14: error: 'lineLimit' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .applyingTruncationMask(size: moreTextSize, enabled: shouldShowMoreButton)
61 | .readSize { size in
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:62:17: error: setter for 'truncatedSize' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
60 | .applyingTruncationMask(size: moreTextSize, enabled: shouldShowMoreButton)
61 | .readSize { size in
62 | truncatedSize = size
| |- error: setter for 'truncatedSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | isTruncated = truncatedSize != intrinsicSize
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:63:17: error: setter for 'isTruncated' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
61 | .readSize { size in
62 | truncatedSize = size
63 | isTruncated = truncatedSize != intrinsicSize
| |- error: setter for 'isTruncated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:65:14: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
63 | isTruncated = truncatedSize != intrinsicSize
64 | }
65 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | content
67 | .lineLimit(nil)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:67:22: error: 'lineLimit' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
65 | .background(
66 | content
67 | .lineLimit(nil)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .fixedSize(horizontal: false, vertical: true)
69 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:68:22: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
66 | content
67 | .lineLimit(nil)
68 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .hidden()
70 | .readSize { size in
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:69:22: error: 'hidden()' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
67 | .lineLimit(nil)
68 | .fixedSize(horizontal: false, vertical: true)
69 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .readSize { size in
71 | intrinsicSize = size
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:71:25: error: setter for 'intrinsicSize' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
69 | .hidden()
70 | .readSize { size in
71 | intrinsicSize = size
| |- error: setter for 'intrinsicSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | isTruncated = truncatedSize != intrinsicSize
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:72:25: error: setter for 'isTruncated' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
70 | .readSize { size in
71 | intrinsicSize = size
72 | isTruncated = truncatedSize != intrinsicSize
| |- error: setter for 'isTruncated' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | )
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:75:14: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
73 | }
74 | )
75 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | Text(moreButtonText)
77 | .font(moreButtonFont ?? font)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:76:17: error: 'Text' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
74 | )
75 | .background(
76 | Text(moreButtonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .font(moreButtonFont ?? font)
78 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:77:22: error: 'font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
75 | .background(
76 | Text(moreButtonText)
77 | .font(moreButtonFont ?? font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .hidden()
79 | .readSize { moreTextSize = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:78:22: error: 'hidden()' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
76 | Text(moreButtonText)
77 | .font(moreButtonFont ?? font)
78 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | .readSize { moreTextSize = $0 }
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:79:33: error: setter for 'moreTextSize' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
77 | .font(moreButtonFont ?? font)
78 | .hidden()
79 | .readSize { moreTextSize = $0 }
| |- error: setter for 'moreTextSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | )
81 | .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:81:14: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
79 | .readSize { moreTextSize = $0 }
80 | )
81 | .contentShape(Rectangle())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .onTapGesture {
83 | if (isExpanded && collapseEnabled) ||
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:81:27: error: 'Rectangle' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
79 | .readSize { moreTextSize = $0 }
80 | )
81 | .contentShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .onTapGesture {
83 | if (isExpanded && collapseEnabled) ||
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:82:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
80 | )
81 | .contentShape(Rectangle())
82 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | if (isExpanded && collapseEnabled) ||
84 | shouldShowMoreButton {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:85:21: error: 'withAnimation' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
83 | if (isExpanded && collapseEnabled) ||
84 | shouldShowMoreButton {
85 | withAnimation(expandAnimation) { isExpanded.toggle() }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:85:54: error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
83 | if (isExpanded && collapseEnabled) ||
84 | shouldShowMoreButton {
85 | withAnimation(expandAnimation) { isExpanded.toggle() }
| |- error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:14: error: 'modifier' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:23: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:23: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:50: error: 'trailingLastTextBaseline' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- error: 'trailingLastTextBaseline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:82: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:90:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
89 | if shouldShowMoreButton {
90 | Button {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:90:21: error: 'Button' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
89 | if shouldShowMoreButton {
90 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:90:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
89 | if shouldShowMoreButton {
90 | Button {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:91:25: error: 'withAnimation' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
89 | if shouldShowMoreButton {
90 | Button {
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | } label: {
93 | Text(moreButtonText)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:91:58: error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
89 | if shouldShowMoreButton {
90 | Button {
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
| |- error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | } label: {
93 | Text(moreButtonText)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:93:25: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
93 | Text(moreButtonText)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
94 | .font(moreButtonFont ?? font)
95 | .foregroundColor(moreButtonColor)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:93:25: error: 'Text' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
93 | Text(moreButtonText)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .font(moreButtonFont ?? font)
95 | .foregroundColor(moreButtonColor)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:94:30: error: 'font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
92 | } label: {
93 | Text(moreButtonText)
94 | .font(moreButtonFont ?? font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .foregroundColor(moreButtonColor)
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:95:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
93 | Text(moreButtonText)
94 | .font(moreButtonFont ?? font)
95 | .foregroundColor(moreButtonColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:92:30: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
90 | Button {
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
92 | } label: {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
93 | Text(moreButtonText)
94 | .font(moreButtonFont ?? font)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:89:41: error: 'buildIf' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
89 | if shouldShowMoreButton {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | Button {
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:89:41: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
89 | if shouldShowMoreButton {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
90 | Button {
91 | withAnimation(expandAnimation) { isExpanded.toggle() }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:97:17: error: 'buildIf' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
95 | .foregroundColor(moreButtonColor)
96 | }
97 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }))
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:88:82: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
:
86 | }
87 | }
88 | .modifier(OverlayAdapter(alignment: .trailingLastTextBaseline, view: {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if shouldShowMoreButton {
90 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:57:32: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
55 | }
56 |
57 | public var body: some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
58 | content
59 | .lineLimit(isExpanded ? nil : lineLimit)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:102:9: error: 'Text' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | trimMultipleNewlinesWhenTruncated
104 | ? (shouldShowMoreButton ? textTrimmingDoubleNewlines : text)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:102:9: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | trimMultipleNewlinesWhenTruncated
104 | ? (shouldShowMoreButton ? textTrimmingDoubleNewlines : text)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:107:10: error: 'font' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
:
105 | : text
106 | ))
107 | .font(font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .foregroundColor(color)
109 | .frame(maxWidth: .infinity, alignment: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:108:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
:
106 | ))
107 | .font(font)
108 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .frame(maxWidth: .infinity, alignment: .leading)
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:109:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
:
107 | .font(font)
108 | .foregroundColor(color)
109 | .frame(maxWidth: .infinity, alignment: .leading)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 |
/Users/admin/builder/spi-builder-workspace/Sources/ExpandableText/ExpandableText.swift:109:49: error: 'leading' is only available in macOS 10.15 or newer
26 | ```
27 | */
28 | public struct ExpandableText: View {
| `- note: add @available attribute to enclosing struct
29 |
30 | @State private var isExpanded: Bool = false
:
99 | }
100 |
101 | private var content: some View {
| `- note: add @available attribute to enclosing property
102 | Text(.init(
103 | trimMultipleNewlinesWhenTruncated
:
107 | .font(font)
108 | .foregroundColor(color)
109 | .frame(maxWidth: .infinity, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 |
[8/8] Compiling ExpandableText OverlayAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:11:20: error: 'Alignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
12 | let view: () -> V
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:14:21: error: 'Alignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
13 |
14 | init(alignment: Alignment, @ViewBuilder view: @escaping () -> V) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.alignment = alignment
16 | self.view = view
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:14:33: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
13 |
14 | init(alignment: Alignment, @ViewBuilder view: @escaping () -> V) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.alignment = alignment
16 | self.view = view
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:19:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
21 | content.overlay(alignment: alignment, content: view)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:10:35: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:20:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
18 |
19 | func body(content: Content) -> some View {
20 | if #available(iOS 15.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
21 | content.overlay(alignment: alignment, content: view)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:21:21: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
21 | content.overlay(alignment: alignment, content: view)
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | content.overlay(view(), alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:20:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | content.overlay(alignment: alignment, content: view)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:20:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content.overlay(alignment: alignment, content: view)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:22:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
21 | content.overlay(alignment: alignment, content: view)
22 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content.overlay(view(), alignment: alignment)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/OverlayAdapter.swift:19:46: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | internal struct OverlayAdapter<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | let alignment: Alignment
12 | let view: () -> V
:
17 | }
18 |
19 | func body(content: Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
20 | if #available(iOS 15.0, *) {
21 | content.overlay(alignment: alignment, content: view)
BUILD FAILURE 6.0 macosSpm