Skip to content

Commit

Permalink
fix: build macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Jun 9, 2023
1 parent ad21941 commit 2f235f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "TsuzuKit",
platforms: [.iOS(.v15)],
platforms: [.iOS(.v15), .macOS(.v11)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down
2 changes: 2 additions & 0 deletions Sources/TsuzuKit/Representable/LinkPresentationView.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import SwiftUI
import LinkPresentation

#if canImport(UIKit)
public struct LinkPresentationView: UIViewRepresentable {
public typealias UIViewType = LPLinkView

Expand Down Expand Up @@ -95,3 +96,4 @@ public final class MetaCache {
}
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/TsuzuKit/Representable/PageControllView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SwiftUI

#if canImport(UIKit)
public struct PageControllView: UIViewRepresentable {
@Binding var currentPage: Int
let numberOfPages: Int
Expand Down Expand Up @@ -51,3 +52,4 @@ public struct PageControllView: UIViewRepresentable {
}
}
}
#endif

0 comments on commit 2f235f7

Please sign in to comment.