diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..fe7b03b7 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "DynamicBlurView", + "repositoryURL": "https://github.com/KyoheiG3/DynamicBlurView", + "state": { + "branch": null, + "revision": "fbf91352ff3defee8e1fc7525696404bc3740a86", + "version": "5.0.4" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..4251a440 --- /dev/null +++ b/Package.swift @@ -0,0 +1,42 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "PopupDialog", + platforms: [ + .iOS(.v10) + ], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "PopupDialog", + targets: ["PopupDialog"]) + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + .package( + name: "DynamicBlurView", + url: "https://github.com/KyoheiG3/DynamicBlurView", + from: "5.0.0"), + .package( + name: "Nimble", + path: "Example/Nimble"), + .package( + name: "FBSnapshotTestCase", + path: "Example/iOSSnapshotTestCase") + ], + 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 this package depends on. + .target( + name: "PopupDialog", + dependencies: ["DynamicBlurView"], + path: "PopupDialog/Classes"), + .testTarget( + name: "PopupDialogTests", + dependencies: ["PopupDialog", "Nimble", "FBSnapshotTestCase"], + path: "Tests") + ] +) diff --git a/PopupDialog/Classes/InteractiveTransition.swift b/PopupDialog/Classes/InteractiveTransition.swift index 0f9f2f43..28182aa2 100644 --- a/PopupDialog/Classes/InteractiveTransition.swift +++ b/PopupDialog/Classes/InteractiveTransition.swift @@ -24,6 +24,7 @@ // import Foundation +import UIKit // Handles interactive transition triggered via pan gesture recognizer on dialog final internal class InteractiveTransition: UIPercentDrivenInteractiveTransition { diff --git a/PopupDialog/Classes/PopupDialogOverlayView.swift b/PopupDialog/Classes/PopupDialogOverlayView.swift index a1326c08..2999f2ad 100644 --- a/PopupDialog/Classes/PopupDialogOverlayView.swift +++ b/PopupDialog/Classes/PopupDialogOverlayView.swift @@ -24,6 +24,7 @@ // import Foundation +import UIKit import DynamicBlurView /// The (blurred) overlay view below the popup dialog