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": {
"pins": [
{
"package": "Introspect",
"repositoryURL": "https://github.com/timbersoftware/SwiftUI-Introspect.git",
"package": "AmzdIntrospect",
"repositoryURL": "https://github.com/Amzd/SwiftUI-Introspect.git",
"state": {
"branch": null,
"revision": "f1ec9da347a7fbe53c520d35434f6c2295650bd5",
"version": "0.1.1"
"revision": "daa2ee72339db6b7490e29815afaa6e50b1cd208",
"version": "0.1.3"
}
}
]

View File

@ -20,14 +20,14 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .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 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.
.target(
name: "ScrollViewProxy",
dependencies: ["Introspect"]),
dependencies: ["AmzdIntrospect"]),
// .testTarget(
// name: "ScrollViewProxyTests",
// dependencies: ["ScrollViewProxy"]),

View File

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