Build Information
Failed to build swiftui-matched-inline-title, reference main (a86cc6
), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 00:42:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sebj/swiftui-matched-inline-title.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sebj/swiftui-matched-inline-title
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a86cc62 🚀 Initial commit
Cloned https://github.com/sebj/swiftui-matched-inline-title.git
Revision (git rev-parse @):
a86cc6266c20ea476046f8402065ef9875e31c2f
SUCCESS checkout https://github.com/sebj/swiftui-matched-inline-title.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/sebj/swiftui-matched-inline-title.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling MatchedInlineTitle MatchedTitle.swift
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:12:28: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
12 | private let namespace: Namespace.ID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
13 | private let content: (Text) -> Content
14 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:13:27: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
12 | private let namespace: Namespace.ID
13 | private let content: (Text) -> Content
| `- error: 'Text' is only available in macOS 10.15 or newer
14 |
15 | /// Creates a title view that displays a stored string without localization.
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:24:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
26 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:25:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | {
27 | self.textContent = .string(String(string))
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:25:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
| `- error: 'Text' is only available in macOS 10.15 or newer
26 | {
27 | self.textContent = .string(String(string))
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:41:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
43 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:42:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
43 | {
44 | self.textContent = .string(string)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:42:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'Text' is only available in macOS 10.15 or newer
43 | {
44 | self.textContent = .string(string)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:61:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
62 | tableName: String? = nil,
63 | bundle: Bundle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:65:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
63 | bundle: Bundle? = nil,
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
67 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:66:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
:
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
67 | {
68 | self.textContent = .localizedString(key: key, tableName: tableName, bundle: bundle, comment: comment)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:66:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
:
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'Text' is only available in macOS 10.15 or newer
67 | {
68 | self.textContent = .localizedString(key: key, tableName: tableName, bundle: bundle, comment: comment)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:73:27: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:9:58: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:93:37: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing initializer
94 | self.init(string, namespace: namespace) { $0 }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:97:46: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
95 | }
96 |
97 | init(verbatim string: String, namespace: Namespace.ID) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing initializer
98 | self.init(verbatim: string, namespace: namespace) { $0 }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:102:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
103 | tableName: String? = nil,
104 | bundle: Bundle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:106:20: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
103 | tableName: String? = nil,
104 | bundle: Bundle? = nil,
105 | comment: StaticString? = nil,
106 | namespace: Namespace.ID)
| `- error: 'Namespace' is only available in macOS 11.0 or newer
107 | {
108 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:91:48: error: 'Text' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:75:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | GeometryReader { geometry in
77 | let frame = geometry.frame(in: .named(namespace))
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:76:17: error: 'GeometryReader' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
76 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | let frame = geometry.frame(in: .named(namespace))
78 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:77:42: error: 'frame(in:)' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
76 | GeometryReader { geometry in
77 | let frame = geometry.frame(in: .named(namespace))
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 |
79 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:79:21: error: 'Color' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
:
77 | let frame = geometry.frame(in: .named(namespace))
78 |
79 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .hidden()
81 | .preference(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:79:27: error: 'clear' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
:
77 | let frame = geometry.frame(in: .named(namespace))
78 |
79 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .hidden()
81 | .preference(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:80:26: error: 'hidden()' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
:
78 |
79 | Color.clear
80 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .preference(
82 | key: _TitlePreferenceKey.self,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:81:26: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
:
79 | Color.clear
80 | .hidden()
81 | .preference(
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | key: _TitlePreferenceKey.self,
83 | value: _TitlePreferenceData(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:94:14: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
94 | self.init(string, namespace: namespace) { $0 }
| |- 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
95 | }
96 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:94:51: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
94 | self.init(string, namespace: namespace) { $0 }
| |- 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
95 | }
96 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:94:49: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
94 | self.init(string, namespace: namespace) { $0 }
| |- 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
95 | }
96 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:98:14: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
95 | }
96 |
97 | init(verbatim string: String, namespace: Namespace.ID) {
| `- note: add @available attribute to enclosing initializer
98 | self.init(verbatim: string, namespace: namespace) { $0 }
| |- 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
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:98:61: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
95 | }
96 |
97 | init(verbatim string: String, namespace: Namespace.ID) {
| `- note: add @available attribute to enclosing initializer
98 | self.init(verbatim: string, namespace: namespace) { $0 }
| |- 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
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:98:59: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
95 | }
96 |
97 | init(verbatim string: String, namespace: Namespace.ID) {
| `- note: add @available attribute to enclosing initializer
98 | self.init(verbatim: string, namespace: namespace) { $0 }
| |- 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
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:108:14: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
103 | tableName: String? = nil,
:
106 | namespace: Namespace.ID)
107 | {
108 | self.init(
| |- 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
109 | key,
110 | tableName: tableName,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:115:13: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
103 | tableName: String? = nil,
:
113 | namespace: namespace)
114 | {
115 | $0
| |- 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
116 | }
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:114:9: 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
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
103 | tableName: String? = nil,
:
112 | comment: comment,
113 | namespace: namespace)
114 | {
| |- 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
115 | $0
116 | }
[4/8] Compiling MatchedInlineTitle _MatchedTitleContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
| `- error: 'State' is only available in macOS 10.15 or newer
10 | @State private var isVisible = false
11 | private let content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:10:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
10 | @State private var isVisible = false
| `- error: 'State' is only available in macOS 10.15 or newer
11 | private let content: () -> Content
12 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:13:11: error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
11 | private let content: () -> Content
12 |
13 | init(@ViewBuilder _ content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
14 | self.content = content
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:17:20: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:7:61: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:19:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | title = data?.title
21 | isVisible = data?.isVisible ?? false
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:20:17: error: setter for 'title' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
20 | title = data?.title
| |- error: setter for 'title' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | isVisible = data?.isVisible ?? false
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:21:17: error: setter for 'isVisible' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
20 | title = data?.title
21 | isVisible = data?.isVisible ?? false
| |- error: setter for 'isVisible' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | .toolbar {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:23:14: error: 'toolbar(content:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
21 | isVisible = data?.isVisible ?? false
22 | }
23 | .toolbar {
| |- error: 'toolbar(content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
24 | ToolbarItem(placement: .principal) {
25 | title.map(\.view)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:24:17: error: 'ToolbarItem' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
22 | }
23 | .toolbar {
24 | ToolbarItem(placement: .principal) {
| |- error: 'ToolbarItem' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | title.map(\.view)
26 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:24:17: error: 'init(placement:content:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
22 | }
23 | .toolbar {
24 | ToolbarItem(placement: .principal) {
| |- error: 'init(placement:content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | title.map(\.view)
26 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:26:26: error: 'lineLimit' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
24 | ToolbarItem(placement: .principal) {
25 | title.map(\.view)
26 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .accessibilityAddTraits(.isHeader)
28 | .opacity(isVisible ? 1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:27:26: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
25 | title.map(\.view)
26 | .lineLimit(1)
27 | .accessibilityAddTraits(.isHeader)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | .opacity(isVisible ? 1 : 0)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:28:26: error: 'opacity' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
:
26 | .lineLimit(1)
27 | .accessibilityAddTraits(.isHeader)
28 | .opacity(isVisible ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
[5/8] Compiling MatchedInlineTitle ScrollView+MatchedInlineTitle.swift
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:16:43: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
:
14 | /// to a ``View`` type and reading its value in the view's body
15 | /// method.
16 | func matchedInlineTitle(in namespace: Namespace.ID) -> some View {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
17 | _MatchedTitleContainer {
18 | self
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:16:65: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
:
14 | /// to a ``View`` type and reading its value in the view's body
15 | /// method.
16 | func matchedInlineTitle(in namespace: Namespace.ID) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | _MatchedTitleContainer {
18 | self
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:9:18: error: 'ScrollView' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| | `- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:19:18: error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
:
14 | /// to a ``View`` type and reading its value in the view's body
15 | /// method.
16 | func matchedInlineTitle(in namespace: Namespace.ID) -> some View {
| `- note: add @available attribute to enclosing instance method
17 | _MatchedTitleContainer {
18 | self
19 | .coordinateSpace(name: namespace)
| |- error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .navigationBarTitleDisplayMode(.inline)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:20:18: error: 'navigationBarTitleDisplayMode' is unavailable in macOS
18 | self
19 | .coordinateSpace(name: namespace)
20 | .navigationBarTitleDisplayMode(.inline)
| `- error: 'navigationBarTitleDisplayMode' is unavailable in macOS
21 | }
22 | }
SwiftUI.View.navigationBarTitleDisplayMode:2:25: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | }
4 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling MatchedInlineTitle _TitlePreferenceKey.swift
[7/8] Emitting module MatchedInlineTitle
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:9:31: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | enum TextContent {
| `- note: add @available attribute to enclosing enum
8 | case string(String)
9 | case localizedString(key: LocalizedStringKey, tableName: String?, bundle: Bundle?, comment: StaticString?)
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:30:15: error: 'Text' is only available in macOS 10.15 or newer
27 | }
28 |
29 | extension TextContent {
| `- note: add @available attribute to enclosing extension
30 | var view: Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | switch self {
32 | case let .string(value):
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
| `- error: 'State' is only available in macOS 10.15 or newer
10 | @State private var isVisible = false
11 | private let content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:10:6: error: 'State' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
10 | @State private var isVisible = false
| `- error: 'State' is only available in macOS 10.15 or newer
11 | private let content: () -> Content
12 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:13:11: error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
11 | private let content: () -> Content
12 |
13 | init(@ViewBuilder _ content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
14 | self.content = content
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:17:20: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
:
15 | }
16 |
17 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
18 | content()
19 | .onPreferenceChange(_TitlePreferenceKey.self) { data in
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:7:61: error: 'View' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | struct _MatchedTitleContainer<Content>: View where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
8 |
9 | @State private var title: TextContent?
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:12:28: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
12 | private let namespace: Namespace.ID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
13 | private let content: (Text) -> Content
14 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:13:27: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
12 | private let namespace: Namespace.ID
13 | private let content: (Text) -> Content
| `- error: 'Text' is only available in macOS 10.15 or newer
14 |
15 | /// Creates a title view that displays a stored string without localization.
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:24:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
26 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:25:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | {
27 | self.textContent = .string(String(string))
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:25:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
20 | /// to a ``View`` type and reading its value in the view's body method.
21 | /// - content: A closure to customise the `Text`.
22 | public init<S>(
| `- note: add @available attribute to enclosing initializer
23 | _ string: S,
24 | namespace: Namespace.ID,
25 | @ViewBuilder _ content: @escaping (Text) -> Content) where S: StringProtocol
| `- error: 'Text' is only available in macOS 10.15 or newer
26 | {
27 | self.textContent = .string(String(string))
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:41:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
43 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:42:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
43 | {
44 | self.textContent = .string(string)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:42:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
37 | /// to a ``View`` type and reading its value in the view's body method.
38 | /// - content: A closure to customise the `Text`.
39 | public init(
| `- note: add @available attribute to enclosing initializer
40 | verbatim string: String,
41 | namespace: Namespace.ID,
42 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'Text' is only available in macOS 10.15 or newer
43 | {
44 | self.textContent = .string(string)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:61:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
62 | tableName: String? = nil,
63 | bundle: Bundle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:65:20: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
63 | bundle: Bundle? = nil,
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
| `- error: 'Namespace' is only available in macOS 11.0 or newer
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
67 | {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:66:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
:
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
67 | {
68 | self.textContent = .localizedString(key: key, tableName: tableName, bundle: bundle, comment: comment)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:66:44: error: 'Text' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
58 | /// to a ``View`` type and reading its value in the view's body method.
59 | /// - content: A closure to customise the `Text`.
60 | public init(
| `- note: add @available attribute to enclosing initializer
61 | _ key: LocalizedStringKey,
62 | tableName: String? = nil,
:
64 | comment: StaticString? = nil,
65 | namespace: Namespace.ID,
66 | @ViewBuilder _ content: @escaping (Text) -> Content)
| `- error: 'Text' is only available in macOS 10.15 or newer
67 | {
68 | self.textContent = .localizedString(key: key, tableName: tableName, bundle: bundle, comment: comment)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:73:27: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
:
71 | }
72 |
73 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
74 | content(textContent.view)
75 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:9:58: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public struct MatchedTitle<Content>: View where Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
10 |
11 | private let textContent: TextContent
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:93:37: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing initializer
94 | self.init(string, namespace: namespace) { $0 }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:97:46: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
95 | }
96 |
97 | init(verbatim string: String, namespace: Namespace.ID) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing initializer
98 | self.init(verbatim: string, namespace: namespace) { $0 }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:102:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
103 | tableName: String? = nil,
104 | bundle: Bundle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:106:20: error: 'Namespace' is only available in macOS 11.0 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
:
99 | }
100 |
101 | init(
| `- note: add @available attribute to enclosing initializer
102 | _ key: LocalizedStringKey,
103 | tableName: String? = nil,
104 | bundle: Bundle? = nil,
105 | comment: StaticString? = nil,
106 | namespace: Namespace.ID)
| `- error: 'Namespace' is only available in macOS 11.0 or newer
107 | {
108 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/MatchedTitle.swift:91:48: error: 'Text' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension MatchedTitle where Content == Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
92 |
93 | init<S>(_ string: S, namespace: Namespace.ID) where S: StringProtocol {
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:16:43: error: 'Namespace' is only available in macOS 11.0 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
:
14 | /// to a ``View`` type and reading its value in the view's body
15 | /// method.
16 | func matchedInlineTitle(in namespace: Namespace.ID) -> some View {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
17 | _MatchedTitleContainer {
18 | self
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:16:65: error: 'View' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
:
14 | /// to a ``View`` type and reading its value in the view's body
15 | /// method.
16 | func matchedInlineTitle(in namespace: Namespace.ID) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | _MatchedTitleContainer {
18 | self
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:9:18: error: 'ScrollView' is only available in macOS 10.15 or newer
7 | @available(iOS 14, *)
8 | @available(watchOS, unavailable)
9 | public extension ScrollView {
| | `- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 |
11 | /// Configures the inline navigation title for this view to match an existing `MatchedTitle` with the same `namespace`.
[8/8] Compiling MatchedInlineTitle TextContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:9:31: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
5 | import SwiftUI
6 |
7 | enum TextContent {
| `- note: add @available attribute to enclosing enum
8 | case string(String)
9 | case localizedString(key: LocalizedStringKey, tableName: String?, bundle: Bundle?, comment: StaticString?)
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:30:15: error: 'Text' is only available in macOS 10.15 or newer
27 | }
28 |
29 | extension TextContent {
| `- note: add @available attribute to enclosing extension
30 | var view: Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | switch self {
32 | case let .string(value):
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:33:20: error: 'Text' is only available in macOS 10.15 or newer
27 | }
28 |
29 | extension TextContent {
| `- note: add @available attribute to enclosing extension
30 | var view: Text {
| `- note: add @available attribute to enclosing property
31 | switch self {
32 | case let .string(value):
33 | return Text(value)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | case let .localizedString(key, tableName, bundle, comment):
35 | return Text(key, tableName: tableName, bundle: bundle, comment: comment)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:35:20: error: 'Text' is only available in macOS 10.15 or newer
27 | }
28 |
29 | extension TextContent {
| `- note: add @available attribute to enclosing extension
30 | var view: Text {
| `- note: add @available attribute to enclosing property
31 | switch self {
32 | case let .string(value):
33 | return Text(value)
34 | case let .localizedString(key, tableName, bundle, comment):
35 | return Text(key, tableName: tableName, bundle: bundle, comment: comment)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | // TODO: AttributedString for iOS 15
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/TextContent.swift:35:20: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
27 | }
28 |
29 | extension TextContent {
| `- note: add @available attribute to enclosing extension
30 | var view: Text {
| `- note: add @available attribute to enclosing property
31 | switch self {
32 | case let .string(value):
33 | return Text(value)
34 | case let .localizedString(key, tableName, bundle, comment):
35 | return Text(key, tableName: tableName, bundle: bundle, comment: comment)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | // TODO: AttributedString for iOS 15
37 | }
BUILD FAILURE 6.2 macosSpm