Build Information
Failed to build swiftui-matched-inline-title, reference 0.1.0 (a86cc6
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 17:47:14 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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sebj/swiftui-matched-inline-title.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sebj/swiftui-matched-inline-title
* tag 0.1.0 -> FETCH_HEAD
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 0.1.0
========================================
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": "swiftui-matched-inline-title",
"name": "swiftui-matched-inline-title",
"url": "https://github.com/sebj/swiftui-matched-inline-title.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-matched-inline-title",
"dependencies": [
]
}
]
}
Fetching https://github.com/sebj/swiftui-matched-inline-title.git
[1/15] Fetching swiftui-matched-inline-title
Fetched https://github.com/sebj/swiftui-matched-inline-title.git from cache (1.01s)
Creating working copy for https://github.com/sebj/swiftui-matched-inline-title.git
Working copy of https://github.com/sebj/swiftui-matched-inline-title.git resolved at 0.1.0 (a86cc62)
warning: '.resolve-product-dependencies': dependency 'swiftui-matched-inline-title' 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/sebj/swiftui-matched-inline-title.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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:5:29: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | @available(tvOS, unavailable)
4 | extension View {
5 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
6 |
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/ScrollView+MatchedInlineTitle.swift:17:9: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
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 '@MainActor' to make instance method 'matchedInlineTitle(in:)' part of global actor 'MainActor'
17 | _MatchedTitleContainer {
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | self
19 | .coordinateSpace(name: namespace)
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_MatchedTitleContainer.swift:13:5: note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
11 | private let content: () -> Content
12 |
13 | init(@ViewBuilder _ content: @escaping () -> Content) {
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
14 | self.content = content
15 | }
[4/8] Compiling MatchedInlineTitle _TitlePreferenceKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/MatchedInlineTitle/Internal/_TitlePreferenceKey.swift:16: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
14 | typealias Value = _TitlePreferenceData?
15 |
16 | static var defaultValue: _TitlePreferenceData?
| |- 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
17 |
18 | static func reduce(value: inout Value, nextValue: () -> Value) {
[5/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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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 | }
[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/Internal/_TitlePreferenceKey.swift:16: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
14 | typealias Value = _TitlePreferenceData?
15 |
16 | static var defaultValue: _TitlePreferenceData?
| |- 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
17 |
18 | static func reduce(value: inout Value, nextValue: () -> Value) {
/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 _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:23:14: error: ambiguous use of 'toolbar(content:)'
21 | isVisible = data?.isVisible ?? false
22 | }
23 | .toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
24 | ToolbarItem(placement: .principal) {
25 | title.map(\.view)
SwiftUI.View:3:29: note: found this candidate in module 'SwiftUI'
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | extension View {
3 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
4 |
5 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
6 |
7 | nonisolated public func toolbar<Content>(id: String, @ToolbarContentBuilder content: () -> Content) -> some View where Content : CustomizableToolbarContent
BUILD FAILURE 6.0 macosSpm