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/.swiftpm/xcode/package.xcworkspace/xcuserdata/dhruvilpatel.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/dhruvilpatel.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..112ed34 Binary files /dev/null and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/dhruvilpatel.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/.swiftpm/xcode/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist b/.swiftpm/xcode/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..2d716ec --- /dev/null +++ b/.swiftpm/xcode/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + PMAlertController.xcscheme_^#shared#^_ + + orderHint + 0 + + + SuppressBuildableAutocreation + + PMAlertController + + primary + + + PMAlertControllerTests + + primary + + + + + diff --git a/Library/PMAlertController.swift b/Library/PMAlertController.swift index 6a4efac..51fe54d 100755 --- a/Library/PMAlertController.swift +++ b/Library/PMAlertController.swift @@ -164,6 +164,13 @@ import UIKit assertionFailure("Could not load the bundle") } + }else if let bundleURL = Bundle.module.url(forResource: "PMAlertController", withExtension: "bundle"){ + if let bundle = Bundle(url: bundleURL) { + return bundle.loadNibNamed("PMAlertController", owner: self, options: nil) as [AnyObject]? + } + + }else if let nib = Bundle.module.loadNibNamed("PMAlertController", owner: self, options: nil) as [AnyObject]?{ + return nib } else if let nib = podBundle.loadNibNamed("PMAlertController", owner: self, options: nil) as [AnyObject]?{ return nib diff --git a/PMAlertController.xcodeproj/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist b/PMAlertController.xcodeproj/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1a23812 --- /dev/null +++ b/PMAlertController.xcodeproj/xcuserdata/dhruvilpatel.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SchemeUserState + + PMAlertController.xcscheme_^#shared#^_ + + orderHint + 0 + + PMAlertControllerSample.xcscheme_^#shared#^_ + + orderHint + 1 + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..d617e05 --- /dev/null +++ b/Package.swift @@ -0,0 +1,25 @@ +// 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: "PMAlertController", + platforms: [ + .iOS(.v9) + ], + products: [ + .library( + name: "PMAlertController", + targets: ["PMAlertController"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "PMAlertController", + dependencies: [], + path:"Library" + ) + ] +)