Skip to content

Commit

Permalink
Package (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Dec 6, 2024
1 parent f4492c3 commit 83ea5d0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
27 changes: 21 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,36 @@
import PackageDescription

let package = Package(
name: "RunLoopQueue",
name: "WithPrerender",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v10),
.visionOS(.v1)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "RunLoopQueue",
targets: ["RunLoopQueue"])
name: "WithPrerender",
targets: ["WithPrerender"]
),
.library(
name: "CATransactionQueue",
targets: ["CATransactionQueue"]
),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(name: "CATransactionQueue"),
.target(
name: "RunLoopQueue"),
name: "WithPrerender",
dependencies: ["CATransactionQueue"]
),
.testTarget(
name: "RunLoopQueueTests",
dependencies: ["RunLoopQueue"]
name: "WithPrerenderTests",
dependencies: ["WithPrerender"]
),
],
swiftLanguageModes: [.v6]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CATransactionQueue

@MainActor
public func withPrerender(_ body: @escaping @MainActor () -> Void) {
Expand Down

0 comments on commit 83ea5d0

Please sign in to comment.