From 791fd4c372ac7d42d7e15f5e0196c4f1d1782a03 Mon Sep 17 00:00:00 2001 From: Florian Fittschen Date: Thu, 4 Mar 2021 14:25:42 +0100 Subject: [PATCH] Add Swift Package Manager support --- .gitignore | 1 + Package.swift | 24 ++++++++++++++++++++++++ Sources/UIApplication+Load.swift | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index 1497842..7deba5a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ doxygenWarnings.txt *.xccheckout DerivedData/ +.swiftpm/ \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..e1399ca --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.3 + +import PackageDescription + +let package = Package( + name: "Toaster", + products: [ + .library( + name: "Toaster", + targets: ["Toaster"] + ), + ], + targets: [ + .target( + name: "Toaster", + path: "Sources" + ), + .testTarget( + name: "ToasterTests", + dependencies: ["Toaster"], + path: "ToasterTests" + ), + ] +) diff --git a/Sources/UIApplication+Load.swift b/Sources/UIApplication+Load.swift index cc62c13..e129b69 100644 --- a/Sources/UIApplication+Load.swift +++ b/Sources/UIApplication+Load.swift @@ -6,7 +6,7 @@ // Copyright © 2019 Suyeol Jeon. All rights reserved. // -import Foundation +import UIKit extension UIApplication {