diff --git a/DTTextField.podspec b/DTTextField.podspec index f5cdecc..d749262 100644 --- a/DTTextField.podspec +++ b/DTTextField.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = 'DTTextField' -s.version = '0.4.0' +s.version = '0.5.0' s.summary = 'DTTextField is UITextField library.' s.description = <<-DESC @@ -23,7 +23,7 @@ s.source = { :git => 'https://github.com/iDhaval/DTTextField.git', :ta s.ios.deployment_target = '9.0' -s.source_files = 'DTTextField/Classes/*.{swift}' +s.source_files = 'Sources/DTTextField/**/*' s.frameworks = 'UIKit' end diff --git a/DTTextField/Assets/.gitkeep b/DTTextField/Assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/DTTextField/Classes/.gitkeep b/DTTextField/Classes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/Example/DTTextField.xcodeproj/project.pbxproj b/Example/DTTextField.xcodeproj/project.pbxproj index af174b4..ef3046d 100644 --- a/Example/DTTextField.xcodeproj/project.pbxproj +++ b/Example/DTTextField.xcodeproj/project.pbxproj @@ -418,7 +418,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -433,7 +433,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/Example/DTTextField/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/DTTextField/Images.xcassets/AppIcon.appiconset/Contents.json index b8236c6..8121323 100644 --- a/Example/DTTextField/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/Example/DTTextField/Images.xcassets/AppIcon.appiconset/Contents.json @@ -2,47 +2,52 @@ "images" : [ { "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" + "scale" : "2x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" + "scale" : "3x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" + "scale" : "2x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" + "scale" : "3x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" + "scale" : "2x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" + "scale" : "3x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" + "scale" : "2x", + "size" : "60x60" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" } ], "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/Example/Tests/Tests.swift b/Example/Tests/Tests.swift index a14cd85..f72f944 100644 --- a/Example/Tests/Tests.swift +++ b/Example/Tests/Tests.swift @@ -1,6 +1,5 @@ import UIKit import XCTest -import DTTextField class Tests: XCTestCase { diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..949dd59 --- /dev/null +++ b/Package.swift @@ -0,0 +1,27 @@ +// swift-tools-version:5.5 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "DTTextField", + platforms: [.iOS(.v9)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "DTTextField", + targets: ["DTTextField"]), + ], + 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: "DTTextField", + dependencies: []), + ], + swiftLanguageVersions: [.v5] +) diff --git a/DTTextField/Classes/DTTextField.swift b/Sources/DTTextField/DTTextField.swift similarity index 100% rename from DTTextField/Classes/DTTextField.swift rename to Sources/DTTextField/DTTextField.swift