Update SPM to AmzdIntrospect

This commit is contained in:
Casper Zandbergen 2020-12-08 13:49:22 +01:00
parent 744964461b
commit ce8c101aee
3 changed files with 6 additions and 11 deletions

View File

@ -2,12 +2,12 @@
"object": { "object": {
"pins": [ "pins": [
{ {
"package": "Introspect", "package": "AmzdIntrospect",
"repositoryURL": "https://github.com/timbersoftware/SwiftUI-Introspect.git", "repositoryURL": "https://github.com/Amzd/SwiftUI-Introspect.git",
"state": { "state": {
"branch": null, "branch": null,
"revision": "f1ec9da347a7fbe53c520d35434f6c2295650bd5", "revision": "daa2ee72339db6b7490e29815afaa6e50b1cd208",
"version": "0.1.1" "version": "0.1.3"
} }
} }
] ]

View File

@ -20,14 +20,14 @@ let package = Package(
dependencies: [ dependencies: [
// Dependencies declare other packages that this package depends on. // Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"), // .package(url: /* package url */, from: "1.0.0"),
.package(name: "Introspect", url: "https://github.com/timbersoftware/SwiftUI-Introspect.git", .upToNextMajor(from: "0.1.0")) .package(name: "AmzdIntrospect", url: "https://github.com/Amzd/SwiftUI-Introspect.git", .upToNextMajor(from: "0.1.3"))
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target( .target(
name: "ScrollViewProxy", name: "ScrollViewProxy",
dependencies: ["Introspect"]), dependencies: ["AmzdIntrospect"]),
// .testTarget( // .testTarget(
// name: "ScrollViewProxyTests", // name: "ScrollViewProxyTests",
// dependencies: ["ScrollViewProxy"]), // dependencies: ["ScrollViewProxy"]),

View File

@ -1,12 +1,7 @@
// Created by Casper Zandbergen on 01/06/2020. // Created by Casper Zandbergen on 01/06/2020.
// https://twitter.com/amzdme // https://twitter.com/amzdme
#if canImport(Introspect)
import Introspect
#elseif canImport(AmzdIntrospect)
// CocoaPods
import AmzdIntrospect import AmzdIntrospect
#endif
import SwiftUI import SwiftUI
import Combine import Combine