diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4464ae5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.swiftpm/ \ No newline at end of file diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..8b5ef50 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "SnapshotTesting", + "repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing.git", + "state": { + "branch": null, + "revision": "f8a9c997c3c1dab4e216a8ec9014e23144cbab37", + "version": "1.9.0" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..24615e5 --- /dev/null +++ b/Package.swift @@ -0,0 +1,31 @@ +// swift-tools-version:5.2 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "ios-accessibility-text-snapshot", + platforms: [ + .iOS(.v12), + ], + products: [ + .library( + name: "ios-accessibility-text-snapshot", + targets: ["ios-accessibility-text-snapshot"] + ), + ], + dependencies: [ + .package( + name: "SnapshotTesting", + url: "https://github.com/pointfreeco/swift-snapshot-testing.git", + .upToNextMajor(from: "1.8.0") + ) + ], + targets: [ + .target( + name: "ios-accessibility-text-snapshot", + dependencies: ["SnapshotTesting"], + path: "Sources" + ) + ] +) diff --git a/Sources/Accessibility.testing.swift b/Sources/Accessibility.testing.swift index 66de4f3..ac13609 100644 --- a/Sources/Accessibility.testing.swift +++ b/Sources/Accessibility.testing.swift @@ -1,4 +1,4 @@ -import Foundation +import UIKit import SnapshotTesting