Build Information
Failed to build Unscreenshottable, reference main (a733dd
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:09:55 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/markiv/SwiftUI-Unscreenshottable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/markiv/SwiftUI-Unscreenshottable
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a733dd9 Add files via upload
Cloned https://github.com/markiv/SwiftUI-Unscreenshottable.git
Revision (git rev-parse @):
a733dd92213e09a2e69fe68cca0d564a0d58c32b
SUCCESS checkout https://github.com/markiv/SwiftUI-Unscreenshottable.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftui-unscreenshottable",
"name": "Unscreenshottable",
"url": "https://github.com/markiv/SwiftUI-Unscreenshottable.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-Unscreenshottable",
"dependencies": [
]
}
]
}
Fetching https://github.com/markiv/SwiftUI-Unscreenshottable.git
[1/60] Fetching swiftui-unscreenshottable
Fetched https://github.com/markiv/SwiftUI-Unscreenshottable.git from cache (0.83s)
Creating working copy for https://github.com/markiv/SwiftUI-Unscreenshottable.git
Working copy of https://github.com/markiv/SwiftUI-Unscreenshottable.git resolved at main (a733dd9)
warning: '.resolve-product-dependencies': dependency 'swiftui-unscreenshottable' 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/markiv/SwiftUI-Unscreenshottable.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Unscreenshottable
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:14:23: warning: static property 'screenshots' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
14 | public static let screenshots = ProtectionOptions(rawValue: 0x01)
| |- warning: static property 'screenshots' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'screenshots' 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
15 | /// Hide the view from screen sharing (e.g. AirPlay).
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:16:23: warning: static property 'screenSharing' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
14 | public static let screenshots = ProtectionOptions(rawValue: 0x01)
15 | /// Hide the view from screen sharing (e.g. AirPlay).
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
| |- warning: static property 'screenSharing' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'screenSharing' 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 | /// Hide the view while the app is not active (e.g. while task switching).
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:18:23: warning: static property 'inactivity' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
:
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
17 | /// Hide the view while the app is not active (e.g. while task switching).
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
| |- warning: static property 'inactivity' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inactivity' 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
19 | /// Hide the view from screenshots, screen sharing and during inactivity (task switching).
20 | public static let all = ProtectionOptions([.screenshots, .screenSharing, inactivity])
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:20:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
:
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
19 | /// Hide the view from screenshots, screen sharing and during inactivity (task switching).
20 | public static let all = ProtectionOptions([.screenshots, .screenSharing, inactivity])
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
21 |
22 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: cannot find type 'UITextField' in scope
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: cannot find type 'UITextField' in scope
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: cannot find type 'UIView' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: cannot find type 'UIView' in scope
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:33:20: error: 'horizontalSizeClass' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
| `- error: 'horizontalSizeClass' is only available in macOS 10.15 or newer
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:34:20: error: 'verticalSizeClass' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'verticalSizeClass' is only available in macOS 10.15 or newer
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'State' is only available in macOS 10.15 or newer
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'State' is only available in macOS 10.15 or newer
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: 'State' is only available in macOS 10.15 or newer
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:34:6: error: 'Environment' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'Environment' is only available in macOS 10.15 or newer
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:36:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
37 |
38 | init(options: ProtectionOptions = .all, content: @escaping () -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: cannot find type 'UIView' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: cannot find type 'UIView' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'UIView' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:35: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:86: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'View' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:50: error: 'ViewBuilder' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:86: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'View' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:97:15: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
97 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
98 | ProtectedView(options: options) {
99 | self
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:95: error: 'EmptyView' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:87:18: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:106:19: error: cannot find type 'UIView' in scope
104 | }
105 |
106 | private extension UIView {
| `- error: cannot find type 'UIView' in scope
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:119:11: error: cannot find type 'UITextField' in scope
117 | }
118 |
119 | extension UITextField {
| `- error: cannot find type 'UITextField' in scope
120 | /// Extracts a canvas view from a secure `TextField`'s view hierarchy.
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:139:27: error: 'View' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:163:61: error: 'View' is only available in macOS 10.15 or newer
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
164 | VStack {
165 | configuration.icon
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:173:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
171 | }
172 |
173 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
174 | DemoProtectedView()
175 | }
[4/4] Compiling Unscreenshottable ProtectedView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:14:23: warning: static property 'screenshots' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
14 | public static let screenshots = ProtectionOptions(rawValue: 0x01)
| |- warning: static property 'screenshots' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'screenshots' 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
15 | /// Hide the view from screen sharing (e.g. AirPlay).
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:16:23: warning: static property 'screenSharing' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
14 | public static let screenshots = ProtectionOptions(rawValue: 0x01)
15 | /// Hide the view from screen sharing (e.g. AirPlay).
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
| |- warning: static property 'screenSharing' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'screenSharing' 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 | /// Hide the view while the app is not active (e.g. while task switching).
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:18:23: warning: static property 'inactivity' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
:
16 | public static let screenSharing = ProtectionOptions(rawValue: 0x02)
17 | /// Hide the view while the app is not active (e.g. while task switching).
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
| |- warning: static property 'inactivity' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inactivity' 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
19 | /// Hide the view from screenshots, screen sharing and during inactivity (task switching).
20 | public static let all = ProtectionOptions([.screenshots, .screenSharing, inactivity])
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:20:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct ProtectionOptions: OptionSet {
| `- note: consider making struct 'ProtectionOptions' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 | /// Hide the view from screenshots.
:
18 | public static let inactivity = ProtectionOptions(rawValue: 0x04)
19 | /// Hide the view from screenshots, screen sharing and during inactivity (task switching).
20 | public static let all = ProtectionOptions([.screenshots, .screenSharing, inactivity])
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'ProtectionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
21 |
22 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: cannot find type 'UITextField' in scope
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: cannot find type 'UITextField' in scope
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: cannot find type 'UIView' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: cannot find type 'UIView' in scope
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:33:20: error: 'horizontalSizeClass' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
| `- error: 'horizontalSizeClass' is only available in macOS 10.15 or newer
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:34:20: error: 'verticalSizeClass' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'verticalSizeClass' is only available in macOS 10.15 or newer
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'State' is only available in macOS 10.15 or newer
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'State' is only available in macOS 10.15 or newer
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: 'State' is only available in macOS 10.15 or newer
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:34:6: error: 'Environment' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'Environment' is only available in macOS 10.15 or newer
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:36:36: error: 'AnyCancellable' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
34 | @Environment(\.verticalSizeClass) private var verticalSizeClass
35 | // @Environment(\.isSceneCaptured) private var isSceneCaptured // since iOS 17
36 | private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
37 |
38 | init(options: ProtectionOptions = .all, content: @escaping () -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: cannot find type 'UIView' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: cannot find type 'UIView' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'UIView' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:35: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
:
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:86: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'View' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:50: error: 'ViewBuilder' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:86: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| `- error: 'View' is only available in macOS 10.15 or newer
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:97:15: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
97 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
98 | ProtectedView(options: options) {
99 | self
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:96:95: error: 'EmptyView' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
:
93 | ///
94 | /// - Warning: Screenshot protection may stop working if Apple changes the view hierarchy in future iOS versions.
95 | func protected(
| `- note: add @available attribute to enclosing instance method
96 | from options: ProtectionOptions = .all, @ViewBuilder placeholder: () -> some View = { EmptyView() }
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | ) -> some View {
98 | ProtectedView(options: options) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:87:18: error: 'View' is only available in macOS 10.15 or newer
85 | }
86 |
87 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
88 | /// Protects this view from screenshotting, screen sharing and/or during inactivity.
89 | /// - Parameter placeholder: The optional content to display instead of this view during a screenshotting, screen
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:106:19: error: cannot find type 'UIView' in scope
104 | }
105 |
106 | private extension UIView {
| `- error: cannot find type 'UIView' in scope
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:119:11: error: cannot find type 'UITextField' in scope
117 | }
118 |
119 | extension UITextField {
| `- error: cannot find type 'UITextField' in scope
120 | /// Extracts a canvas view from a secure `TextField`'s view hierarchy.
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:139:27: error: 'View' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:163:61: error: 'View' is only available in macOS 10.15 or newer
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
164 | VStack {
165 | configuration.icon
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:173:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
171 | }
172 |
173 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
174 | DemoProtectedView()
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:40:27: error: cannot infer contextual base in reference to member 'init'
38 | init(options: ProtectionOptions = .all, content: @escaping () -> Content) {
39 | self.options = options
40 | self.textField = .init()
| `- error: cannot infer contextual base in reference to member 'init'
41 | self.hostingController = UIHostingController(rootView: content())
42 |
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:41:34: error: cannot find 'UIHostingController' in scope
39 | self.options = options
40 | self.textField = .init()
41 | self.hostingController = UIHostingController(rootView: content())
| `- error: cannot find 'UIHostingController' in scope
42 |
43 | textField.isSecureTextEntry = true
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:56:27: error: cannot find 'UIApplication' in scope
54 |
55 | if options.contains(.inactivity) {
56 | subscribe(to: UIApplication.willResignActiveNotification) { _ in true }
| `- error: cannot find 'UIApplication' in scope
57 | subscribe(to: UIApplication.didBecomeActiveNotification) { _ in false }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:57:27: error: cannot find 'UIApplication' in scope
55 | if options.contains(.inactivity) {
56 | subscribe(to: UIApplication.willResignActiveNotification) { _ in true }
57 | subscribe(to: UIApplication.didBecomeActiveNotification) { _ in false }
| `- error: cannot find 'UIApplication' in scope
58 | }
59 | if options.contains(.screenSharing) {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:60:27: error: cannot find 'UIScreen' in scope
58 | }
59 | if options.contains(.screenSharing) {
60 | subscribe(to: UIScreen.capturedDidChangeNotification) { ($0.object as? UIScreen)?.isCaptured ?? false }
| `- error: cannot find 'UIScreen' in scope
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:60:84: error: cannot find type 'UIScreen' in scope
58 | }
59 | if options.contains(.screenSharing) {
60 | subscribe(to: UIScreen.capturedDidChangeNotification) { ($0.object as? UIScreen)?.isCaptured ?? false }
| `- error: cannot find type 'UIScreen' in scope
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:70:34: error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
68 | func updateUIView(_ uiView: UIView, context: Context) {
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
| `- error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
71 | // "Harvest" a canvas view from the secure `TextField`'s view hierarchy.
72 | if let secureCanvas = textField.canvasView, let view = hostingController.view {
Dispatch.DispatchQueue:62:17: note: 'async(execute:)' declared here
60 | public func sync(execute workItem: DispatchWorkItem)
61 | @available(macOS 10.10, iOS 8.0, *)
62 | public func async(execute workItem: DispatchWorkItem)
| `- note: 'async(execute:)' declared here
63 | @available(macOS 10.14, iOS 12.0, *)
64 | public func asyncAndWait(execute workItem: DispatchWorkItem)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:101:10: error: value of type 'ProtectedView<Self>' has no member 'ignoresSafeArea'
99 | self
100 | }
101 | .ignoresSafeArea() // allow navigation and tab bar custom backgrounds to work.
| `- error: value of type 'ProtectedView<Self>' has no member 'ignoresSafeArea'
102 | .background(placeholder()) // place the placeholder behind the protected view.
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:9: error: 'VStack' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:141: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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
| |- 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
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:141:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
| |- warning: conformance of 'Image' 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
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:141:13: error: 'Label' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:141:13: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:141:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:142: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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
| |- 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
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:142:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
| |- warning: conformance of 'Image' 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
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:142:13: error: 'Label' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:142:13: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:142:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:143: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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
| |- 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
144 | }
145 | .labelStyle(ItemLabelStyle())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:143:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
| |- warning: conformance of 'Image' 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
144 | }
145 | .labelStyle(ItemLabelStyle())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:143:13: error: 'Label' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
144 | }
145 | .labelStyle(ItemLabelStyle())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:143:13: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
144 | }
145 | .labelStyle(ItemLabelStyle())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:143:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | }
145 | .labelStyle(ItemLabelStyle())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:140:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
| |- warning: conformance of 'Image' 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
141 | Label("Can you screenshot this?", systemImage: "camera")
142 | Label("Can you AirPlay this?", systemImage: "airplayvideo")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:145:10: error: 'labelStyle' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
143 | Label("Can you see this while task switching?", systemImage: "appwindow.swipe.rectangle")
144 | }
145 | .labelStyle(ItemLabelStyle())
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
146 | .imageScale(.large)
147 | .font(.title.bold())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:146:10: error: 'imageScale' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
144 | }
145 | .labelStyle(ItemLabelStyle())
146 | .imageScale(.large)
| |- error: 'imageScale' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
147 | .font(.title.bold())
148 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:147:10: error: 'font' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
145 | .labelStyle(ItemLabelStyle())
146 | .imageScale(.large)
147 | .font(.title.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .padding()
149 | .protected {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:147:16: error: 'title' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
145 | .labelStyle(ItemLabelStyle())
146 | .imageScale(.large)
147 | .font(.title.bold())
| |- error: 'title' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .padding()
149 | .protected {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:147:22: error: 'bold()' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
145 | .labelStyle(ItemLabelStyle())
146 | .imageScale(.large)
147 | .font(.title.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .padding()
149 | .protected {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:148:10: error: 'padding' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
146 | .imageScale(.large)
147 | .font(.title.bold())
148 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | .protected {
150 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:150:13: error: 'VStack' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
148 | .padding()
149 | .protected {
150 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:151:17: error: 'Image' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
149 | .protected {
150 | VStack {
151 | Image(systemName: "nosign")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:151:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
149 | .protected {
150 | VStack {
151 | Image(systemName: "nosign")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:152:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
150 | VStack {
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | .foregroundColor(.red)
154 | Text("Screenshots and screen sharing are not allowed.")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:152:34: error: 'scaledToFit()' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
150 | VStack {
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | .foregroundColor(.red)
154 | Text("Screenshots and screen sharing are not allowed.")
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:153:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | Text("Screenshots and screen sharing are not allowed.")
155 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:153:39: error: 'red' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | Text("Screenshots and screen sharing are not allowed.")
155 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:154:17: 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
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
154 | Text("Screenshots and screen sharing are not allowed.")
| |- 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
155 | }
156 | .font(.largeTitle.bold())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:154:17: error: 'Text' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
152 | .resizable().scaledToFit()
153 | .foregroundColor(.red)
154 | Text("Screenshots and screen sharing are not allowed.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | }
156 | .font(.largeTitle.bold())
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:150:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
148 | .padding()
149 | .protected {
150 | VStack {
| |- 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
151 | Image(systemName: "nosign")
152 | .resizable().scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:156:14: error: 'font' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
154 | Text("Screenshots and screen sharing are not allowed.")
155 | }
156 | .font(.largeTitle.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | .padding()
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:156:20: error: 'largeTitle' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
154 | Text("Screenshots and screen sharing are not allowed.")
155 | }
156 | .font(.largeTitle.bold())
| |- error: 'largeTitle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | .padding()
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:156:31: error: 'bold()' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
154 | Text("Screenshots and screen sharing are not allowed.")
155 | }
156 | .font(.largeTitle.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | .padding()
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:157:14: error: 'padding' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
155 | }
156 | .font(.largeTitle.bold())
157 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:159:10: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
134 | /// Demonstrates the `.protected` modifier.
135 | /// You can try it by dropping `DemoProtectedView()` into your app in DEBUG mode.
136 | public struct DemoProtectedView: View {
| `- note: add @available attribute to enclosing struct
137 | public init() {}
138 |
139 | public var body: some View {
| `- note: add @available attribute to enclosing property
140 | VStack(spacing: 20) {
141 | Label("Can you screenshot this?", systemImage: "camera")
:
157 | .padding()
158 | }
159 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:164:13: error: 'VStack' is only available in macOS 10.15 or newer
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
164 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | configuration.icon
166 | .foregroundColor(.accentColor)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:166:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
164 | VStack {
165 | configuration.icon
166 | .foregroundColor(.accentColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | configuration.title
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:166:39: error: 'accentColor' is only available in macOS 10.15 or newer
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
164 | VStack {
165 | configuration.icon
166 | .foregroundColor(.accentColor)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | configuration.title
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:167:17: warning: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
164 | VStack {
165 | configuration.icon
166 | .foregroundColor(.accentColor)
167 | configuration.title
| |- warning: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:164:20: warning: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
160 | }
161 |
162 | struct ItemLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
163 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
164 | VStack {
| |- warning: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
165 | configuration.icon
166 | .foregroundColor(.accentColor)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: cannot find type 'UIView' in scope
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: cannot find type 'UIView' in scope
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:123:21: error: cannot find type 'UIView' in scope
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: cannot find type 'UIView' in scope
124 | subviews.first {
125 | // iOS 15... iOS 14...
BUILD FAILURE 6.0 macosSpm