Build Information
Failed to build sharelink-for-swiftui, reference 1.1.0 (d8ce8a
), with Swift 6.0 for Linux on 5 Nov 2024 20:02:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/sharelink-for-swiftui.git
Reference: 1.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/igor11191708/sharelink-for-swiftui
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at d8ce8a5 Create AttributedStringBuilderTests.swift
Cloned https://github.com/igor11191708/sharelink-for-swiftui.git
Revision (git rev-parse @):
d8ce8a54ea47dee19d9840f59dea4679d0904196
SUCCESS checkout https://github.com/igor11191708/sharelink-for-swiftui.git at 1.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/igor11191708/sharelink-for-swiftui.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling sharelink_for_swiftui ShareLinkView.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:26:33: error: cannot find type 'UIActivity' in scope
24 |
25 | /// Optional custom activities to include in the share sheet.
26 | let applicationActivities: [UIActivity]?
| `- error: cannot find type 'UIActivity' in scope
27 |
28 | /// Optional activity types to exclude from the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:29:33: error: cannot find type 'UIActivity' in scope
27 |
28 | /// Optional activity types to exclude from the share sheet.
29 | let excludedActivityTypes: [UIActivity.ActivityType]?
| `- error: cannot find type 'UIActivity' in scope
30 |
31 | /// Initializes a new `ShareLinkView`.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:39:33: error: cannot find type 'UIActivity' in scope
37 | init(
38 | data: [Any],
39 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
40 | excludedActivityTypes: [UIActivity.ActivityType]? = nil
41 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:40:33: error: cannot find type 'UIActivity' in scope
38 | data: [Any],
39 | applicationActivities: [UIActivity]? = nil,
40 | excludedActivityTypes: [UIActivity.ActivityType]? = nil
| `- error: cannot find type 'UIActivity' in scope
41 | ) {
42 | self.data = data
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:51:47: error: cannot find type 'Context' in scope
49 | /// - Parameter context: The context in which the view is being created.
50 | /// - Returns: An `ActivitySheetController` configured with the provided data, application activities, and excluded activity types.
51 | public func makeUIViewController(context: Context) -> ActivitySheetController {
| `- error: cannot find type 'Context' in scope
52 | let controller = ActivitySheetController(activityItems: data, applicationActivities: applicationActivities)
53 | controller.excludedActivityTypes = excludedActivityTypes
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:63:94: error: cannot find type 'Context' in scope
61 | /// - uiViewController: The view controller to be updated.
62 | /// - context: The context in which the view is being updated.
63 | public func updateUIViewController(_ uiViewController: ActivitySheetController, context: Context) {}
| `- error: cannot find type 'Context' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:20:23: error: cannot find type 'UIViewControllerRepresentable' in scope
18 |
19 | /// A SwiftUI view that wraps a `UIActivityViewController` to share data.
20 | struct ShareLinkView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
21 |
22 | /// The data to be shared. It can include items like text, images, URLs, etc.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:52:49: error: argument passed to call that takes no arguments
50 | /// - Returns: An `ActivitySheetController` configured with the provided data, application activities, and excluded activity types.
51 | public func makeUIViewController(context: Context) -> ActivitySheetController {
52 | let controller = ActivitySheetController(activityItems: data, applicationActivities: applicationActivities)
| `- error: argument passed to call that takes no arguments
53 | controller.excludedActivityTypes = excludedActivityTypes
54 | controller.modalPresentationStyle = .popover
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:54:46: error: cannot infer contextual base in reference to member 'popover'
52 | let controller = ActivitySheetController(activityItems: data, applicationActivities: applicationActivities)
53 | controller.excludedActivityTypes = excludedActivityTypes
54 | controller.modalPresentationStyle = .popover
| `- error: cannot infer contextual base in reference to member 'popover'
55 | return controller
56 | }
[4/11] Compiling sharelink_for_swiftui PrintFormatters.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:18:64: error: cannot find type 'UISimpleTextPrintFormatter' in scope
16 | /// - Returns: A `UISimpleTextPrintFormatter` configured with the provided string and title.
17 | @MainActor
18 | func printStringFormatter(_ value: String, _ title: String) -> UISimpleTextPrintFormatter {
| `- error: cannot find type 'UISimpleTextPrintFormatter' in scope
19 | // Create attributed string for title using the builder
20 | let titleStr = AttributedStringBuilder()
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIViewPrintFormatter' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIImage' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:16:23: error: cannot find type 'UIFont' in scope
14 |
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
| `- error: cannot find type 'UIFont' in scope
17 | private var foregroundColor: UIColor = .black
18 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:17:34: error: cannot find type 'UIColor' in scope
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
17 | private var foregroundColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
18 |
19 | /// Sets the font for the attributed string.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'CGFloat' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'UIFont' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:21:41: error: cannot infer contextual base in reference to member 'bold'
19 | // Create attributed string for title using the builder
20 | let titleStr = AttributedStringBuilder()
21 | .setFont(fontSize: 50, weight: .bold)
| `- error: cannot infer contextual base in reference to member 'bold'
22 | .setForegroundColor(.black)
23 | .build(with: title + "\n") // Adding a newline after the title
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:22:30: error: cannot infer contextual base in reference to member 'black'
20 | let titleStr = AttributedStringBuilder()
21 | .setFont(fontSize: 50, weight: .bold)
22 | .setForegroundColor(.black)
| `- error: cannot infer contextual base in reference to member 'black'
23 | .build(with: title + "\n") // Adding a newline after the title
24 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:25:18: error: cannot find 'NSMutableAttributedString' in scope
23 | .build(with: title + "\n") // Adding a newline after the title
24 |
25 | let result = NSMutableAttributedString()
| `- error: cannot find 'NSMutableAttributedString' in scope
26 | result.append(titleStr)
27 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:32:34: error: cannot infer contextual base in reference to member 'black'
30 | let valueStr = AttributedStringBuilder()
31 | .setFont(fontSize: 27)
32 | .setForegroundColor(.black)
| `- error: cannot infer contextual base in reference to member 'black'
33 | .build(with: value)
34 | result.append(valueStr)
[5/11] Compiling sharelink_for_swiftui AttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:16:23: error: cannot find type 'UIFont' in scope
14 |
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
| `- error: cannot find type 'UIFont' in scope
17 | private var foregroundColor: UIColor = .black
18 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:17:34: error: cannot find type 'UIColor' in scope
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
17 | private var foregroundColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
18 |
19 | /// Sets the font for the attributed string.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'CGFloat' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'UIFont' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:34:38: error: cannot find type 'UIColor' in scope
32 | /// - Parameter color: The color of the text.
33 | /// - Returns: The builder instance with the updated color.
34 | func setForegroundColor(_ color: UIColor) -> AttributedStringBuilder {
| `- error: cannot find type 'UIColor' in scope
35 | self.foregroundColor = color
36 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:43:38: error: cannot find type 'NSAttributedString' in scope
41 | /// - Parameter text: The text to be converted to an attributed string.
42 | /// - Returns: An `NSAttributedString` with the set attributes.
43 | func build(with text: String) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
44 | let attributes: [NSAttributedString.Key: Any] = [
45 | .font: self.font,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:26:21: error: cannot find 'UIFont' in scope
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
| `- error: cannot find 'UIFont' in scope
27 | return self
28 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:44:26: error: cannot find type 'NSAttributedString' in scope
42 | /// - Returns: An `NSAttributedString` with the set attributes.
43 | func build(with text: String) -> NSAttributedString {
44 | let attributes: [NSAttributedString.Key: Any] = [
| `- error: cannot find type 'NSAttributedString' in scope
45 | .font: self.font,
46 | .foregroundColor: self.foregroundColor
[6/11] Compiling sharelink_for_swiftui TransportableItem.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:50: error: cannot find type 'NSObject' in scope
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- error: cannot find type 'NSObject' in scope
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:60: error: cannot find type 'UIActivityItemSource' in scope
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- error: cannot find type 'UIActivityItemSource' in scope
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:23:23: error: cannot find type 'UIImage' in scope
21 |
22 | /// An optional icon for the item.
23 | private let icon: UIImage?
| `- error: cannot find type 'UIImage' in scope
24 |
25 | /// Provides a getter for the item to be shared.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:36:18: error: cannot find type 'UIImage' in scope
34 |
35 | /// Provides a getter for the icon.
36 | var getIcon: UIImage? {
| `- error: cannot find type 'UIImage' in scope
37 | return icon
38 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
44 | /// - icon: An optional icon for the item.
45 | /// - title: An optional title for the item.
46 | init(item: T, icon: UIImage? = nil, title: String? = nil) {
| `- error: cannot find type 'UIImage' in scope
47 | self.item = item
48 | self.title = title
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:57:81: error: cannot find type 'UIActivityViewController' in scope
55 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the placeholder item.
56 | /// - Returns: The item to be shared.
57 | public func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
| `- error: cannot find type 'UIActivityViewController' in scope
58 | return item
59 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:66: error: cannot find type 'UIActivityViewController' in scope
65 | /// - activityType: The type of activity requesting the item.
66 | /// - Returns: The item to be shared.
67 | public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
| `- error: cannot find type 'UIActivityViewController' in scope
68 | return item
69 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:126: error: cannot find type 'UIActivity' in scope
65 | /// - activityType: The type of activity requesting the item.
66 | /// - Returns: The item to be shared.
67 | public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
| `- error: cannot find type 'UIActivity' in scope
68 | return item
69 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:107: error: cannot find type 'LPLinkMetadata' in scope
73 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the metadata.
74 | /// - Returns: The `LPLinkMetadata` object containing metadata about the item.
75 | public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
| `- error: cannot find type 'LPLinkMetadata' in scope
76 | let metadata = LPLinkMetadata()
77 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:78: error: cannot find type 'UIActivityViewController' in scope
73 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the metadata.
74 | /// - Returns: The `LPLinkMetadata` object containing metadata about the item.
75 | public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
| `- error: cannot find type 'UIActivityViewController' in scope
76 | let metadata = LPLinkMetadata()
77 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:50:9: error: 'super' members cannot be referenced in a root class
48 | self.title = title
49 | self.icon = icon
50 | super.init()
| `- error: 'super' members cannot be referenced in a root class
51 | }
52 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:76:24: error: cannot find 'LPLinkMetadata' in scope
74 | /// - Returns: The `LPLinkMetadata` object containing metadata about the item.
75 | public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
76 | let metadata = LPLinkMetadata()
| `- error: cannot find 'LPLinkMetadata' in scope
77 |
78 | // Set icon if available
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:80:37: error: cannot find 'NSItemProvider' in scope
78 | // Set icon if available
79 | if let icon = icon {
80 | metadata.iconProvider = NSItemProvider(object: icon)
| `- error: cannot find 'NSItemProvider' in scope
81 | } else if let icon = item as? UIImage {
82 | metadata.iconProvider = NSItemProvider(object: icon)
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:81:39: error: cannot find type 'UIImage' in scope
79 | if let icon = icon {
80 | metadata.iconProvider = NSItemProvider(object: icon)
81 | } else if let icon = item as? UIImage {
| `- error: cannot find type 'UIImage' in scope
82 | metadata.iconProvider = NSItemProvider(object: icon)
83 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:82:37: error: cannot find 'NSItemProvider' in scope
80 | metadata.iconProvider = NSItemProvider(object: icon)
81 | } else if let icon = item as? UIImage {
82 | metadata.iconProvider = NSItemProvider(object: icon)
| `- error: cannot find 'NSItemProvider' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:86:33: error: cannot find type 'UIImage' in scope
84 |
85 | // Set image if available
86 | if let image = item as? UIImage {
| `- error: cannot find type 'UIImage' in scope
87 | metadata.imageProvider = NSItemProvider(object: image)
88 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:87:38: error: cannot find 'NSItemProvider' in scope
85 | // Set image if available
86 | if let image = item as? UIImage {
87 | metadata.imageProvider = NSItemProvider(object: image)
| `- error: cannot find 'NSItemProvider' in scope
88 | }
89 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:96:59: error: cannot find 'URL' in scope
94 |
95 | // Set item URL if the item is a URL
96 | if let urlString = item as? String, let itemURL = URL(string: urlString) {
| `- error: cannot find 'URL' in scope
97 | metadata.url = itemURL
98 | } else if let itemURL = item as? URL {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:98:42: error: cannot find type 'URL' in scope
96 | if let urlString = item as? String, let itemURL = URL(string: urlString) {
97 | metadata.url = itemURL
98 | } else if let itemURL = item as? URL {
| `- error: cannot find type 'URL' in scope
99 | metadata.url = itemURL
100 | }
[7/11] Compiling sharelink_for_swiftui Transportable.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:27:11: error: cannot find type 'URL' in scope
25 |
26 | @available(iOS 14.0, *)
27 | extension URL: Transportable {
| `- error: cannot find type 'URL' in scope
28 | /// The description of a URL is its absolute string representation.
29 | public var description: String { self.absoluteString }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:33:11: error: cannot find type 'UIImage' in scope
31 |
32 | @available(iOS 14.0, *)
33 | extension UIImage: Transportable {
| `- error: cannot find type 'UIImage' in scope
34 | /// Property to extract the named parameter from the image description.
35 | var namedParameter: String? {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:53:11: error: cannot find type 'Data' in scope
51 |
52 | @available(iOS 14.0, *)
53 | extension Data: Transportable {
| `- error: cannot find type 'Data' in scope
54 | /// The description of data is its string representation, or "Data object" if conversion fails.
55 | public var description: String {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:61:11: error: cannot find type 'NSAttributedString' in scope
59 |
60 | @available(iOS 14.0, *)
61 | extension NSAttributedString: Transportable {}
| `- error: cannot find type 'NSAttributedString' in scope
62 |
63 | @available(iOS 14.0, *)
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:64:11: error: cannot find type 'CLLocation' in scope
62 |
63 | @available(iOS 14.0, *)
64 | extension CLLocation: Transportable {}
| `- error: cannot find type 'CLLocation' in scope
65 |
[8/11] Compiling sharelink_for_swiftui ActivitySheetController.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:13:38: error: cannot find type 'UIActivityViewController' in scope
11 |
12 | /// A custom `UIActivityViewController` subclass that customizes the presentation of the activity sheet.
13 | final class ActivitySheetController: UIActivityViewController {
| `- error: cannot find type 'UIActivityViewController' in scope
14 |
15 | deinit {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:24:26: error: method does not override any method from its superclass
22 | ///
23 | /// - Parameter animated: If true, the view is being added to the window using an animation.
24 | public override func viewWillAppear(_ animated: Bool) {
| `- error: method does not override any method from its superclass
25 | super.viewWillAppear(animated)
26 | if #available(iOS 15.0, *) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:25:9: error: 'super' members cannot be referenced in a root class
23 | /// - Parameter animated: If true, the view is being added to the window using an animation.
24 | public override func viewWillAppear(_ animated: Bool) {
25 | super.viewWillAppear(animated)
| `- error: 'super' members cannot be referenced in a root class
26 | if #available(iOS 15.0, *) {
27 | /// Presentation for iOS 15 and later
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:28:35: error: cannot find 'sheetPresentationController' in scope
26 | if #available(iOS 15.0, *) {
27 | /// Presentation for iOS 15 and later
28 | if let presentation = sheetPresentationController {
| `- error: cannot find 'sheetPresentationController' in scope
29 | presentation.detents = [.medium(), .large()]
30 | presentation.prefersGrabberVisible = true
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:29:42: error: type 'Any' has no member 'medium'
27 | /// Presentation for iOS 15 and later
28 | if let presentation = sheetPresentationController {
29 | presentation.detents = [.medium(), .large()]
| `- error: type 'Any' has no member 'medium'
30 | presentation.prefersGrabberVisible = true
31 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:29:53: error: type 'Any' has no member 'large'
27 | /// Presentation for iOS 15 and later
28 | if let presentation = sheetPresentationController {
29 | presentation.detents = [.medium(), .large()]
| `- error: type 'Any' has no member 'large'
30 | presentation.prefersGrabberVisible = true
31 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:34:13: error: cannot find 'modalPresentationStyle' in scope
32 | } else {
33 | /// Support for iOS 14
34 | modalPresentationStyle = .overFullScreen
| `- error: cannot find 'modalPresentationStyle' in scope
35 | }
36 | }
[9/11] Compiling sharelink_for_swiftui TransportableItemBuilder.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:30:23: error: cannot find type 'UIImage' in scope
28 |
29 | /// An optional icon for the item.
30 | private var icon: UIImage?
| `- error: cannot find type 'UIImage' in scope
31 |
32 | /// A flag to determine if the print action should be included.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
55 | /// - Parameter icon: An optional icon for the item.
56 | /// - Returns: The builder instance with the updated icon.
57 | public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
| `- error: cannot find type 'UIImage' in scope
58 | self.icon = icon
59 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:162:93: error: cannot find type 'UISimpleTextPrintFormatter' in scope
160 | /// - Returns: A `UISimpleTextPrintFormatter` configured with the provided item and title.
161 | @MainActor
162 | fileprivate func createStringFormatter<T: Transportable>(item: T, resolvedTitle: String) -> UISimpleTextPrintFormatter {
| `- error: cannot find type 'UISimpleTextPrintFormatter' in scope
163 | switch item {
164 | case let item as String:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:90:30: error: cannot find type 'URL' in scope
88 | case let item as String:
89 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
90 | case let item as URL:
| `- error: cannot find type 'URL' in scope
91 | return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
92 | case let item as UIImage:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:92:30: error: cannot find type 'UIImage' in scope
90 | case let item as URL:
91 | return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
92 | case let item as UIImage:
| `- error: cannot find type 'UIImage' in scope
93 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
94 | case let item as Data:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:94:30: error: cannot find type 'Data' in scope
92 | case let item as UIImage:
93 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
94 | case let item as Data:
| `- error: cannot find type 'Data' in scope
95 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
96 | case let item as NSAttributedString:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:96:30: error: cannot find type 'NSAttributedString' in scope
94 | case let item as Data:
95 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
96 | case let item as NSAttributedString:
| `- error: cannot find type 'NSAttributedString' in scope
97 | return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
98 | case let item as CLLocation:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:98:30: error: cannot find type 'CLLocation' in scope
96 | case let item as NSAttributedString:
97 | return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
98 | case let item as CLLocation:
| `- error: cannot find type 'CLLocation' in scope
99 | let locationURLString = "https://maps.apple.com/?ll=\(item.coordinate.latitude),\(item.coordinate.longitude)"
100 | return [TransportableItem(item: locationURLString, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
44 | /// - icon: An optional icon for the item.
45 | /// - title: An optional title for the item.
46 | init(item: T, icon: UIImage? = nil, title: String? = nil) {
| `- error: cannot find type 'UIImage' in scope
47 | self.item = item
48 | self.title = title
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:89:25: error: generic parameter 'T' could not be inferred
87 | switch item {
88 | case let item as String:
89 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
90 | case let item as URL:
91 | return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:91:25: error: generic parameter 'T' could not be inferred
89 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
90 | case let item as URL:
91 | return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
92 | case let item as UIImage:
93 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:93:25: error: generic parameter 'T' could not be inferred
91 | return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
92 | case let item as UIImage:
93 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
94 | case let item as Data:
95 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:95:25: error: generic parameter 'T' could not be inferred
93 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
94 | case let item as Data:
95 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
96 | case let item as NSAttributedString:
97 | return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:97:25: error: generic parameter 'T' could not be inferred
95 | return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
96 | case let item as NSAttributedString:
97 | return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
98 | case let item as CLLocation:
99 | let locationURLString = "https://maps.apple.com/?ll=\(item.coordinate.latitude),\(item.coordinate.longitude)"
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:100:25: error: generic parameter 'T' could not be inferred
98 | case let item as CLLocation:
99 | let locationURLString = "https://maps.apple.com/?ll=\(item.coordinate.latitude),\(item.coordinate.longitude)"
100 | return [TransportableItem(item: locationURLString, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
101 | default:
102 | return [TransportableItem(item: item.description, icon: icon, title: resolvedTitle)]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:102:25: error: generic parameter 'T' could not be inferred
100 | return [TransportableItem(item: locationURLString, icon: icon, title: resolvedTitle)]
101 | default:
102 | return [TransportableItem(item: item.description, icon: icon, title: resolvedTitle)]
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
103 | }
104 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- note: 'T' declared as parameter to type 'TransportableItem'
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:116:37: error: cannot find type 'UIImage' in scope
114 | let resolvedTitle = resolveTitle(item: item, title: title)
115 |
116 | if let imageItem = item as? UIImage {
| `- error: cannot find type 'UIImage' in scope
117 | return [printImageFormatter(imageItem)]
118 | } else {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIViewPrintFormatter' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIImage' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:140:22: error: cannot find type 'URL' in scope
138 | case let item as String:
139 | return item
140 | case let item as URL:
| `- error: cannot find type 'URL' in scope
141 | return item.absoluteString
142 | case let item as UIImage:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:142:22: error: cannot find type 'UIImage' in scope
140 | case let item as URL:
141 | return item.absoluteString
142 | case let item as UIImage:
| `- error: cannot find type 'UIImage' in scope
143 | return item.namedParameter ?? "Untitled"
144 | case let item as Data:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:144:22: error: cannot find type 'Data' in scope
142 | case let item as UIImage:
143 | return item.namedParameter ?? "Untitled"
144 | case let item as Data:
| `- error: cannot find type 'Data' in scope
145 | return item.description
146 | case let item as NSAttributedString:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:146:22: error: cannot find type 'NSAttributedString' in scope
144 | case let item as Data:
145 | return item.description
146 | case let item as NSAttributedString:
| `- error: cannot find type 'NSAttributedString' in scope
147 | return item.string
148 | case let item as CLLocation:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:148:22: error: cannot find type 'CLLocation' in scope
146 | case let item as NSAttributedString:
147 | return item.string
148 | case let item as CLLocation:
| `- error: cannot find type 'CLLocation' in scope
149 | return "\(item.coordinate.latitude), \(item.coordinate.longitude)"
150 | default:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:166:22: error: cannot find type 'URL' in scope
164 | case let item as String:
165 | return printStringFormatter(item, resolvedTitle)
166 | case let item as URL:
| `- error: cannot find type 'URL' in scope
167 | return printStringFormatter(item.absoluteString, resolvedTitle)
168 | case let item as Data:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:168:22: error: cannot find type 'Data' in scope
166 | case let item as URL:
167 | return printStringFormatter(item.absoluteString, resolvedTitle)
168 | case let item as Data:
| `- error: cannot find type 'Data' in scope
169 | return printStringFormatter(item.description, resolvedTitle)
170 | case let item as NSAttributedString:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:170:22: error: cannot find type 'NSAttributedString' in scope
168 | case let item as Data:
169 | return printStringFormatter(item.description, resolvedTitle)
170 | case let item as NSAttributedString:
| `- error: cannot find type 'NSAttributedString' in scope
171 | return printStringFormatter(item.string, resolvedTitle)
172 | case let item as CLLocation:
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:172:22: error: cannot find type 'CLLocation' in scope
170 | case let item as NSAttributedString:
171 | return printStringFormatter(item.string, resolvedTitle)
172 | case let item as CLLocation:
| `- error: cannot find type 'CLLocation' in scope
173 | let locationURLString = "https://maps.apple.com/?ll=\(item.coordinate.latitude),\(item.coordinate.longitude)"
174 | return printStringFormatter(locationURLString, resolvedTitle)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Emitting module sharelink_for_swiftui
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:38: error: cannot find type 'View' in scope
13 | @available(iOS 14.0, *)
14 | @MainActor
15 | public struct ShareLinkButton<Label: View>: View {
| `- error: cannot find type 'View' in scope
16 |
17 | /// State to control the presentation of the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:18:6: error: unknown attribute 'State'
16 |
17 | /// State to control the presentation of the share sheet.
18 | @State private var isPresented: Bool = false
| `- error: unknown attribute 'State'
19 |
20 | /// The data to be shared. It can include items like text, images, URLs, etc.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:27:41: error: cannot find type 'UIActivity' in scope
25 |
26 | /// Optional custom activities to include in the share sheet.
27 | private let applicationActivities: [UIActivity]?
| `- error: cannot find type 'UIActivity' in scope
28 |
29 | /// Optional activity types to exclude from the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:30:41: error: cannot find type 'UIActivity' in scope
28 |
29 | /// Optional activity types to exclude from the share sheet.
30 | private let excludedActivityTypes: [UIActivity.ActivityType]?
| `- error: cannot find type 'UIActivity' in scope
31 |
32 | /// Initializer for `Transportable` items using the builder internally.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:44:15: error: cannot find type 'UIImage' in scope
42 | public init<T: Transportable>(
43 | item: T,
44 | icon: UIImage? = nil,
| `- error: cannot find type 'UIImage' in scope
45 | title: String? = nil,
46 | printAction: Bool = true,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:47:33: error: cannot find type 'UIActivity' in scope
45 | title: String? = nil,
46 | printAction: Bool = true,
47 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
49 | @ViewBuilder label: @escaping () -> Label
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:48:33: error: cannot find type 'UIActivity' in scope
46 | printAction: Bool = true,
47 | applicationActivities: [UIActivity]? = nil,
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
| `- error: cannot find type 'UIActivity' in scope
49 | @ViewBuilder label: @escaping () -> Label
50 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:49:10: error: unknown attribute 'ViewBuilder'
47 | applicationActivities: [UIActivity]? = nil,
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
49 | @ViewBuilder label: @escaping () -> Label
| `- error: unknown attribute 'ViewBuilder'
50 | ) {
51 | let builder = TransportableItemBuilder(item: item)
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:70:21: error: cannot find type 'UIActivityItemSource' in scope
68 | /// - label: A closure that provides the label for the button.
69 | public init(
70 | itemSource: UIActivityItemSource,
| `- error: cannot find type 'UIActivityItemSource' in scope
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:71:33: error: cannot find type 'UIActivity' in scope
69 | public init(
70 | itemSource: UIActivityItemSource,
71 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
73 | @ViewBuilder label: @escaping () -> Label
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:72:33: error: cannot find type 'UIActivity' in scope
70 | itemSource: UIActivityItemSource,
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
| `- error: cannot find type 'UIActivity' in scope
73 | @ViewBuilder label: @escaping () -> Label
74 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:73:10: error: unknown attribute 'ViewBuilder'
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
73 | @ViewBuilder label: @escaping () -> Label
| `- error: unknown attribute 'ViewBuilder'
74 | ) {
75 | self.data = [itemSource]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:82:27: error: cannot find type 'View' in scope
80 |
81 | /// The content and behavior of the view.
82 | public var body: some View {
| `- error: cannot find type 'View' in scope
83 | Button(action: {
84 | isPresented = true
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:45: error: cannot find type 'View' in scope
13 | @available(iOS 14.0, *)
14 | @MainActor
15 | public struct ShareLinkButton<Label: View>: View {
| `- error: cannot find type 'View' in scope
16 |
17 | /// State to control the presentation of the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:27:11: error: cannot find type 'URL' in scope
25 |
26 | @available(iOS 14.0, *)
27 | extension URL: Transportable {
| `- error: cannot find type 'URL' in scope
28 | /// The description of a URL is its absolute string representation.
29 | public var description: String { self.absoluteString }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:33:11: error: cannot find type 'UIImage' in scope
31 |
32 | @available(iOS 14.0, *)
33 | extension UIImage: Transportable {
| `- error: cannot find type 'UIImage' in scope
34 | /// Property to extract the named parameter from the image description.
35 | var namedParameter: String? {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:53:11: error: cannot find type 'Data' in scope
51 |
52 | @available(iOS 14.0, *)
53 | extension Data: Transportable {
| `- error: cannot find type 'Data' in scope
54 | /// The description of data is its string representation, or "Data object" if conversion fails.
55 | public var description: String {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:61:11: error: cannot find type 'NSAttributedString' in scope
59 |
60 | @available(iOS 14.0, *)
61 | extension NSAttributedString: Transportable {}
| `- error: cannot find type 'NSAttributedString' in scope
62 |
63 | @available(iOS 14.0, *)
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:64:11: error: cannot find type 'CLLocation' in scope
62 |
63 | @available(iOS 14.0, *)
64 | extension CLLocation: Transportable {}
| `- error: cannot find type 'CLLocation' in scope
65 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:26:33: error: cannot find type 'UIActivity' in scope
24 |
25 | /// Optional custom activities to include in the share sheet.
26 | let applicationActivities: [UIActivity]?
| `- error: cannot find type 'UIActivity' in scope
27 |
28 | /// Optional activity types to exclude from the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:29:33: error: cannot find type 'UIActivity' in scope
27 |
28 | /// Optional activity types to exclude from the share sheet.
29 | let excludedActivityTypes: [UIActivity.ActivityType]?
| `- error: cannot find type 'UIActivity' in scope
30 |
31 | /// Initializes a new `ShareLinkView`.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:39:33: error: cannot find type 'UIActivity' in scope
37 | init(
38 | data: [Any],
39 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
40 | excludedActivityTypes: [UIActivity.ActivityType]? = nil
41 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:40:33: error: cannot find type 'UIActivity' in scope
38 | data: [Any],
39 | applicationActivities: [UIActivity]? = nil,
40 | excludedActivityTypes: [UIActivity.ActivityType]? = nil
| `- error: cannot find type 'UIActivity' in scope
41 | ) {
42 | self.data = data
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:51:47: error: cannot find type 'Context' in scope
49 | /// - Parameter context: The context in which the view is being created.
50 | /// - Returns: An `ActivitySheetController` configured with the provided data, application activities, and excluded activity types.
51 | public func makeUIViewController(context: Context) -> ActivitySheetController {
| `- error: cannot find type 'Context' in scope
52 | let controller = ActivitySheetController(activityItems: data, applicationActivities: applicationActivities)
53 | controller.excludedActivityTypes = excludedActivityTypes
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:63:94: error: cannot find type 'Context' in scope
61 | /// - uiViewController: The view controller to be updated.
62 | /// - context: The context in which the view is being updated.
63 | public func updateUIViewController(_ uiViewController: ActivitySheetController, context: Context) {}
| `- error: cannot find type 'Context' in scope
64 | }
65 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:20:23: error: cannot find type 'UIViewControllerRepresentable' in scope
18 |
19 | /// A SwiftUI view that wraps a `UIActivityViewController` to share data.
20 | struct ShareLinkView: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
21 |
22 | /// The data to be shared. It can include items like text, images, URLs, etc.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:13:38: error: cannot find type 'UIActivityViewController' in scope
11 |
12 | /// A custom `UIActivityViewController` subclass that customizes the presentation of the activity sheet.
13 | final class ActivitySheetController: UIActivityViewController {
| `- error: cannot find type 'UIActivityViewController' in scope
14 |
15 | deinit {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:24:26: error: method does not override any method from its superclass
22 | ///
23 | /// - Parameter animated: If true, the view is being added to the window using an animation.
24 | public override func viewWillAppear(_ animated: Bool) {
| `- error: method does not override any method from its superclass
25 | super.viewWillAppear(animated)
26 | if #available(iOS 15.0, *) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:50: error: cannot find type 'NSObject' in scope
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- error: cannot find type 'NSObject' in scope
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:60: error: cannot find type 'UIActivityItemSource' in scope
13 |
14 | /// A class that conforms to `UIActivityItemSource` to provide transportable items for sharing activities.
15 | final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
| `- error: cannot find type 'UIActivityItemSource' in scope
16 | /// The item to be shared, conforming to the `Transportable` protocol.
17 | private let item: T
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:23:23: error: cannot find type 'UIImage' in scope
21 |
22 | /// An optional icon for the item.
23 | private let icon: UIImage?
| `- error: cannot find type 'UIImage' in scope
24 |
25 | /// Provides a getter for the item to be shared.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:36:18: error: cannot find type 'UIImage' in scope
34 |
35 | /// Provides a getter for the icon.
36 | var getIcon: UIImage? {
| `- error: cannot find type 'UIImage' in scope
37 | return icon
38 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
44 | /// - icon: An optional icon for the item.
45 | /// - title: An optional title for the item.
46 | init(item: T, icon: UIImage? = nil, title: String? = nil) {
| `- error: cannot find type 'UIImage' in scope
47 | self.item = item
48 | self.title = title
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:57:81: error: cannot find type 'UIActivityViewController' in scope
55 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the placeholder item.
56 | /// - Returns: The item to be shared.
57 | public func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
| `- error: cannot find type 'UIActivityViewController' in scope
58 | return item
59 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:66: error: cannot find type 'UIActivityViewController' in scope
65 | /// - activityType: The type of activity requesting the item.
66 | /// - Returns: The item to be shared.
67 | public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
| `- error: cannot find type 'UIActivityViewController' in scope
68 | return item
69 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:126: error: cannot find type 'UIActivity' in scope
65 | /// - activityType: The type of activity requesting the item.
66 | /// - Returns: The item to be shared.
67 | public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
| `- error: cannot find type 'UIActivity' in scope
68 | return item
69 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:107: error: cannot find type 'LPLinkMetadata' in scope
73 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the metadata.
74 | /// - Returns: The `LPLinkMetadata` object containing metadata about the item.
75 | public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
| `- error: cannot find type 'LPLinkMetadata' in scope
76 | let metadata = LPLinkMetadata()
77 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:78: error: cannot find type 'UIActivityViewController' in scope
73 | /// - Parameter activityViewController: The `UIActivityViewController` requesting the metadata.
74 | /// - Returns: The `LPLinkMetadata` object containing metadata about the item.
75 | public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
| `- error: cannot find type 'UIActivityViewController' in scope
76 | let metadata = LPLinkMetadata()
77 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:16:23: error: cannot find type 'UIFont' in scope
14 |
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
| `- error: cannot find type 'UIFont' in scope
17 | private var foregroundColor: UIColor = .black
18 |
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:17:34: error: cannot find type 'UIColor' in scope
15 | /// Private variables for attributes
16 | private var font: UIFont = UIFont.systemFont(ofSize: 12)
17 | private var foregroundColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
18 |
19 | /// Sets the font for the attributed string.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'CGFloat' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
23 | /// - weight: The weight of the font.
24 | /// - Returns: The builder instance with the updated font.
25 | func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
| `- error: cannot find type 'UIFont' in scope
26 | self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
27 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:34:38: error: cannot find type 'UIColor' in scope
32 | /// - Parameter color: The color of the text.
33 | /// - Returns: The builder instance with the updated color.
34 | func setForegroundColor(_ color: UIColor) -> AttributedStringBuilder {
| `- error: cannot find type 'UIColor' in scope
35 | self.foregroundColor = color
36 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:43:38: error: cannot find type 'NSAttributedString' in scope
41 | /// - Parameter text: The text to be converted to an attributed string.
42 | /// - Returns: An `NSAttributedString` with the set attributes.
43 | func build(with text: String) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
44 | let attributes: [NSAttributedString.Key: Any] = [
45 | .font: self.font,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:18:64: error: cannot find type 'UISimpleTextPrintFormatter' in scope
16 | /// - Returns: A `UISimpleTextPrintFormatter` configured with the provided string and title.
17 | @MainActor
18 | func printStringFormatter(_ value: String, _ title: String) -> UISimpleTextPrintFormatter {
| `- error: cannot find type 'UISimpleTextPrintFormatter' in scope
19 | // Create attributed string for title using the builder
20 | let titleStr = AttributedStringBuilder()
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIViewPrintFormatter' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
43 | /// - Returns: A `UIViewPrintFormatter` configured with the provided image.
44 | @MainActor
45 | func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
| `- error: cannot find type 'UIImage' in scope
46 | return UIImageView(image: value).viewPrintFormatter()
47 | }
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:30:23: error: cannot find type 'UIImage' in scope
28 |
29 | /// An optional icon for the item.
30 | private var icon: UIImage?
| `- error: cannot find type 'UIImage' in scope
31 |
32 | /// A flag to determine if the print action should be included.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
55 | /// - Parameter icon: An optional icon for the item.
56 | /// - Returns: The builder instance with the updated icon.
57 | public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
| `- error: cannot find type 'UIImage' in scope
58 | self.icon = icon
59 | return self
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:162:93: error: cannot find type 'UISimpleTextPrintFormatter' in scope
160 | /// - Returns: A `UISimpleTextPrintFormatter` configured with the provided item and title.
161 | @MainActor
162 | fileprivate func createStringFormatter<T: Transportable>(item: T, resolvedTitle: String) -> UISimpleTextPrintFormatter {
| `- error: cannot find type 'UISimpleTextPrintFormatter' in scope
163 | switch item {
164 | case let item as String:
[11/11] Compiling sharelink_for_swiftui ShareLinkButton.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:38: error: cannot find type 'View' in scope
13 | @available(iOS 14.0, *)
14 | @MainActor
15 | public struct ShareLinkButton<Label: View>: View {
| `- error: cannot find type 'View' in scope
16 |
17 | /// State to control the presentation of the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:18:6: error: unknown attribute 'State'
16 |
17 | /// State to control the presentation of the share sheet.
18 | @State private var isPresented: Bool = false
| `- error: unknown attribute 'State'
19 |
20 | /// The data to be shared. It can include items like text, images, URLs, etc.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:27:41: error: cannot find type 'UIActivity' in scope
25 |
26 | /// Optional custom activities to include in the share sheet.
27 | private let applicationActivities: [UIActivity]?
| `- error: cannot find type 'UIActivity' in scope
28 |
29 | /// Optional activity types to exclude from the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:30:41: error: cannot find type 'UIActivity' in scope
28 |
29 | /// Optional activity types to exclude from the share sheet.
30 | private let excludedActivityTypes: [UIActivity.ActivityType]?
| `- error: cannot find type 'UIActivity' in scope
31 |
32 | /// Initializer for `Transportable` items using the builder internally.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:44:15: error: cannot find type 'UIImage' in scope
42 | public init<T: Transportable>(
43 | item: T,
44 | icon: UIImage? = nil,
| `- error: cannot find type 'UIImage' in scope
45 | title: String? = nil,
46 | printAction: Bool = true,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:47:33: error: cannot find type 'UIActivity' in scope
45 | title: String? = nil,
46 | printAction: Bool = true,
47 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
49 | @ViewBuilder label: @escaping () -> Label
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:48:33: error: cannot find type 'UIActivity' in scope
46 | printAction: Bool = true,
47 | applicationActivities: [UIActivity]? = nil,
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
| `- error: cannot find type 'UIActivity' in scope
49 | @ViewBuilder label: @escaping () -> Label
50 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:49:10: error: unknown attribute 'ViewBuilder'
47 | applicationActivities: [UIActivity]? = nil,
48 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
49 | @ViewBuilder label: @escaping () -> Label
| `- error: unknown attribute 'ViewBuilder'
50 | ) {
51 | let builder = TransportableItemBuilder(item: item)
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:70:21: error: cannot find type 'UIActivityItemSource' in scope
68 | /// - label: A closure that provides the label for the button.
69 | public init(
70 | itemSource: UIActivityItemSource,
| `- error: cannot find type 'UIActivityItemSource' in scope
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:71:33: error: cannot find type 'UIActivity' in scope
69 | public init(
70 | itemSource: UIActivityItemSource,
71 | applicationActivities: [UIActivity]? = nil,
| `- error: cannot find type 'UIActivity' in scope
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
73 | @ViewBuilder label: @escaping () -> Label
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:72:33: error: cannot find type 'UIActivity' in scope
70 | itemSource: UIActivityItemSource,
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
| `- error: cannot find type 'UIActivity' in scope
73 | @ViewBuilder label: @escaping () -> Label
74 | ) {
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:73:10: error: unknown attribute 'ViewBuilder'
71 | applicationActivities: [UIActivity]? = nil,
72 | excludedActivityTypes: [UIActivity.ActivityType]? = nil,
73 | @ViewBuilder label: @escaping () -> Label
| `- error: unknown attribute 'ViewBuilder'
74 | ) {
75 | self.data = [itemSource]
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:82:27: error: cannot find type 'View' in scope
80 |
81 | /// The content and behavior of the view.
82 | public var body: some View {
| `- error: cannot find type 'View' in scope
83 | Button(action: {
84 | isPresented = true
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:45: error: cannot find type 'View' in scope
13 | @available(iOS 14.0, *)
14 | @MainActor
15 | public struct ShareLinkButton<Label: View>: View {
| `- error: cannot find type 'View' in scope
16 |
17 | /// State to control the presentation of the share sheet.
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
55 | /// - Parameter icon: An optional icon for the item.
56 | /// - Returns: The builder instance with the updated icon.
57 | public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
| `- error: cannot find type 'UIImage' in scope
58 | self.icon = icon
59 | return self
BUILD FAILURE 6.0 linux