diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /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 0000000..ceab39b
--- /dev/null
+++ b/Package.resolved
@@ -0,0 +1,25 @@
+{
+ "object": {
+ "pins": [
+ {
+ "package": "Inspire",
+ "repositoryURL": "https://github.com/xaoxuu/Inspire.git",
+ "state": {
+ "branch": null,
+ "revision": "fed13e3530ca38f884d190ea5c7b12b8f3b2a41b",
+ "version": "1.1.0"
+ }
+ },
+ {
+ "package": "SnapKit",
+ "repositoryURL": "https://github.com/SnapKit/SnapKit.git",
+ "state": {
+ "branch": null,
+ "revision": "d458564516e5676af9c70b4f4b2a9178294f1bc6",
+ "version": "5.0.1"
+ }
+ }
+ ]
+ },
+ "version": 1
+}
diff --git a/Package.swift b/Package.swift
new file mode 100644
index 0000000..fa89b16
--- /dev/null
+++ b/Package.swift
@@ -0,0 +1,23 @@
+// swift-tools-version:5.0
+
+import PackageDescription
+
+let package = Package(
+ name: "ProHUD",
+ platforms: [.iOS(.v10)],
+ products: [
+ .library(name: "ProHUD", targets: ["ProHUD"]),
+ ],
+ dependencies: [
+ .package(url: "https://github.com/SnapKit/SnapKit.git", "5.0.0" ..< "6.0.0"),
+ .package(url: "https://github.com/xaoxuu/Inspire.git", "1.1.0" ..< "2.0.0"),
+ ],
+ targets: [
+ .target(
+ name: "ProHUD",
+ dependencies: ["SnapKit", "Inspire"],
+ path: "Source"
+ )
+ ],
+ swiftLanguageVersions: [.v5]
+)
diff --git a/ProHUD.xcodeproj/project.pbxproj b/ProHUD.xcodeproj/project.pbxproj
index 78c6473..d6d0b92 100644
--- a/ProHUD.xcodeproj/project.pbxproj
+++ b/ProHUD.xcodeproj/project.pbxproj
@@ -116,6 +116,7 @@
isa = PBXGroup;
children = (
CD95D26722E72D68007559A3 /* ProHUD.podspec */,
+ CDC67BED2490A28500CC6FE6 /* Source */,
CD95D21E22E72C4C007559A3 /* ProHUD */,
CD95D21D22E72C4C007559A3 /* Products */,
33E080A4BE17176DF10FFA89 /* Pods */,
@@ -132,6 +133,14 @@
sourceTree = "";
};
CD95D21E22E72C4C007559A3 /* ProHUD */ = {
+ isa = PBXGroup;
+ children = (
+ CD95D22022E72C4C007559A3 /* Info.plist */,
+ );
+ path = ProHUD;
+ sourceTree = "";
+ };
+ CDC67BED2490A28500CC6FE6 /* Source */ = {
isa = PBXGroup;
children = (
CD95D21F22E72C4C007559A3 /* ProHUD.h */,
@@ -143,9 +152,8 @@
CD6CD87322F185B400F4FD4A /* Toast */,
CD16491022EF0A4B0077988C /* Alert */,
CD6CD87C22F185DA00F4FD4A /* Guard */,
- CD95D22022E72C4C007559A3 /* Info.plist */,
);
- path = ProHUD;
+ path = Source;
sourceTree = "";
};
/* End PBXGroup section */
diff --git a/ProHUD/Alert/AlertConfig.swift b/Source/Alert/AlertConfig.swift
similarity index 100%
rename from ProHUD/Alert/AlertConfig.swift
rename to Source/Alert/AlertConfig.swift
diff --git a/ProHUD/Alert/AlertController.swift b/Source/Alert/AlertController.swift
similarity index 100%
rename from ProHUD/Alert/AlertController.swift
rename to Source/Alert/AlertController.swift
diff --git a/ProHUD/Alert/AlertModel.swift b/Source/Alert/AlertModel.swift
similarity index 100%
rename from ProHUD/Alert/AlertModel.swift
rename to Source/Alert/AlertModel.swift
diff --git a/ProHUD/Guard/GuardConfig.swift b/Source/Guard/GuardConfig.swift
similarity index 100%
rename from ProHUD/Guard/GuardConfig.swift
rename to Source/Guard/GuardConfig.swift
diff --git a/ProHUD/Guard/GuardController.swift b/Source/Guard/GuardController.swift
similarity index 100%
rename from ProHUD/Guard/GuardController.swift
rename to Source/Guard/GuardController.swift
diff --git a/ProHUD/Guard/GuardModel.swift b/Source/Guard/GuardModel.swift
similarity index 100%
rename from ProHUD/Guard/GuardModel.swift
rename to Source/Guard/GuardModel.swift
diff --git a/ProHUD/HUDConfig.swift b/Source/HUDConfig.swift
similarity index 100%
rename from ProHUD/HUDConfig.swift
rename to Source/HUDConfig.swift
diff --git a/ProHUD/HUDController.swift b/Source/HUDController.swift
similarity index 100%
rename from ProHUD/HUDController.swift
rename to Source/HUDController.swift
diff --git a/ProHUD/HUDView.swift b/Source/HUDView.swift
similarity index 100%
rename from ProHUD/HUDView.swift
rename to Source/HUDView.swift
diff --git a/ProHUD/ProHUD.h b/Source/ProHUD.h
similarity index 100%
rename from ProHUD/ProHUD.h
rename to Source/ProHUD.h
diff --git a/ProHUD/ProHUD.swift b/Source/ProHUD.swift
similarity index 100%
rename from ProHUD/ProHUD.swift
rename to Source/ProHUD.swift
diff --git a/ProHUD/ProHUD.xcassets/Contents.json b/Source/ProHUD.xcassets/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/Contents.json
rename to Source/ProHUD.xcassets/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDError.imageset/Contents.json b/Source/ProHUD.xcassets/ProHUDError.imageset/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDError.imageset/Contents.json
rename to Source/ProHUD.xcassets/ProHUDError.imageset/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@2x.png b/Source/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@2x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@2x.png
rename to Source/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@2x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@3x.png b/Source/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@3x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@3x.png
rename to Source/ProHUD.xcassets/ProHUDError.imageset/ProHUDError@3x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/Contents.json b/Source/ProHUD.xcassets/ProHUDLoading.imageset/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/Contents.json
rename to Source/ProHUD.xcassets/ProHUDLoading.imageset/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@2x.png b/Source/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@2x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@2x.png
rename to Source/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@2x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@3x.png b/Source/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@3x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@3x.png
rename to Source/ProHUD.xcassets/ProHUDLoading.imageset/ProHUDLoading@3x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/Contents.json b/Source/ProHUD.xcassets/ProHUDMessage.imageset/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/Contents.json
rename to Source/ProHUD.xcassets/ProHUDMessage.imageset/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png b/Source/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png
rename to Source/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png b/Source/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png
rename to Source/ProHUD.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/Contents.json b/Source/ProHUD.xcassets/ProHUDSuccess.imageset/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/Contents.json
rename to Source/ProHUD.xcassets/ProHUDSuccess.imageset/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@2x.png b/Source/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@2x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@2x.png
rename to Source/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@2x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@3x.png b/Source/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@3x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@3x.png
rename to Source/ProHUD.xcassets/ProHUDSuccess.imageset/ProHUDSuccess@3x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/Contents.json b/Source/ProHUD.xcassets/ProHUDWarning.imageset/Contents.json
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/Contents.json
rename to Source/ProHUD.xcassets/ProHUDWarning.imageset/Contents.json
diff --git a/ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@2x.png b/Source/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@2x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@2x.png
rename to Source/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@2x.png
diff --git a/ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@3x.png b/Source/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@3x.png
similarity index 100%
rename from ProHUD/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@3x.png
rename to Source/ProHUD.xcassets/ProHUDWarning.imageset/ProHUDWarning@3x.png
diff --git a/ProHUD/Toast/ToastConfig.swift b/Source/Toast/ToastConfig.swift
similarity index 100%
rename from ProHUD/Toast/ToastConfig.swift
rename to Source/Toast/ToastConfig.swift
diff --git a/ProHUD/Toast/ToastController.swift b/Source/Toast/ToastController.swift
similarity index 100%
rename from ProHUD/Toast/ToastController.swift
rename to Source/Toast/ToastController.swift
diff --git a/ProHUD/Toast/ToastModel.swift b/Source/Toast/ToastModel.swift
similarity index 100%
rename from ProHUD/Toast/ToastModel.swift
rename to Source/Toast/ToastModel.swift