diff --git a/.DS_Store b/.DS_Store index ae8c2bf..b2b6245 100644 Binary files a/.DS_Store and b/.DS_Store differ 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/LRTextField/.DS_Store b/LRTextField/.DS_Store deleted file mode 100644 index fb26ddf..0000000 Binary files a/LRTextField/.DS_Store and /dev/null differ diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..3692705 --- /dev/null +++ b/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version: 5.6 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "LRTextField", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "LRTextField", + targets: ["LRTextField"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "LRTextField", + dependencies: []), + ] +) diff --git a/LRTextField/LRTextField.m b/Sources/LRTextField/LRTextField.m similarity index 100% rename from LRTextField/LRTextField.m rename to Sources/LRTextField/LRTextField.m diff --git a/LRTextField/LRTextField.h b/Sources/LRTextField/include/LRTextField.h similarity index 100% rename from LRTextField/LRTextField.h rename to Sources/LRTextField/include/LRTextField.h diff --git a/Sources/LRTextField/include/module.modulemap b/Sources/LRTextField/include/module.modulemap new file mode 100644 index 0000000..8fb874a --- /dev/null +++ b/Sources/LRTextField/include/module.modulemap @@ -0,0 +1,3 @@ +module LRTextField { + header "LRTextField.h" +}