diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..906fddba --- /dev/null +++ b/Package.resolved @@ -0,0 +1,25 @@ +{ + "object": { + "pins": [ + { + "package": "PanModal", + "repositoryURL": "https://github.com/slackhq/PanModal.git", + "state": { + "branch": null, + "revision": "b012aecb6b67a8e46369227f893c12544846613f", + "version": "1.2.7" + } + }, + { + "package": "SnapKit", + "repositoryURL": "https://github.com/SnapKit/SnapKit", + "state": { + "branch": null, + "revision": "d458564516e5676af9c70b4f4b2a9178294f1bc6", + "version": "5.0.1" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..7bf509ce --- /dev/null +++ b/Package.swift @@ -0,0 +1,34 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "YDS", + + platforms: [ + .iOS(.v13) + ], + + products: [ + .library( + name: "YDS", + targets: ["YDS"]), + ], + + dependencies: [ + .package(name: "PanModal", url: "https://github.com/slackhq/PanModal.git", from: "1.0.0"), + .package(name: "SnapKit", url: "https://github.com/SnapKit/SnapKit", from: "5.0.0"), + ], + + targets: [ + .target( + name: "YDS", + dependencies: [ + .product(name: "PanModal", package: "PanModal"), + .product(name: "SnapKit", package: "SnapKit"), + ], + path: "YDS/Source", + resources: [.process("YDS/Source/Foundation/YDSIcon.xcassets")] + ) + ] +) + diff --git a/YDS/Source/Foundation/YDSIcon.swift b/YDS/Source/Foundation/YDSIcon.swift index eacc17aa..cd1c25eb 100644 --- a/YDS/Source/Foundation/YDSIcon.swift +++ b/YDS/Source/Foundation/YDSIcon.swift @@ -92,10 +92,11 @@ public enum YDSIcon { extension UIImage { fileprivate static func load(name: String) -> UIImage { - guard let image = UIImage(named: name, in: YDSBundle.bundle, compatibleWith: nil) else { + guard let image = UIImage(named: name, in: .module, compatibleWith: nil) else { assert(false, "\(name) 이미지 로드 실패") return UIImage() } + image.accessibilityIdentifier = name return image }