4 Commits

Author SHA1 Message Date
Dhaval Thanki a37abe3ca4 Swift Package Manager support added 2022-01-16 19:19:32 +05:30
Dhaval Thanki a59e433f3f Update LICENSE 2020-09-15 12:05:14 +05:30
Dhaval Thanki 02fe671728 Update README.md 2020-04-14 13:03:52 +05:30
Dhaval Thanki 28f9fab420 Update README.md 2020-04-11 13:52:42 +05:30
10 changed files with 62 additions and 29 deletions
+2 -2
View File
@@ -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
View File
View File
@@ -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;
};
@@ -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
}
}
}
-1
View File
@@ -1,6 +1,5 @@
import UIKit
import XCTest
import DTTextField
class Tests: XCTestCase {
+3 -1
View File
@@ -1,4 +1,6 @@
Copyright (c) 2017 dvl.thanki@gmail.com <dhaval@pixometryinfosoft.com>
The MIT License (MIT)
Copyright (c) 2020 Dhaval Thanki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+27
View File
@@ -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]
)
+4 -4
View File
@@ -1,10 +1,10 @@
# DTTextField
[![Version](https://img.shields.io/badge/Pod-V0.3.0-green.svg)](https://github.com/iDhaval/DTTextField/releases/tag/0.2.4)
[![Version](https://img.shields.io/badge/Pod-V0.4.0-green.svg)](https://github.com/iDhaval/DTTextField/releases/tag/0.2.4)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/iDhaval/DTTextField/blob/master/LICENSE)
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/matteocrippa/awesome-swift)
[![Platform](https://img.shields.io/badge/Language-Swift_4.0-orange.svg)](https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/)
![Xcode](https://img.shields.io/badge/Xcode-9.0-blue.svg)
[![Platform](https://img.shields.io/badge/Language-Swift_5.0-orange.svg)](https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/)
![Xcode](https://img.shields.io/badge/Xcode-11.0-blue.svg)
![Demo](https://github.com/iDhaval/DTTextField/blob/master/DTTextField.gif?raw=true)
@@ -62,7 +62,7 @@ pod 'DTTextField'
| dtLayer | CALayer | If you want to formate DTTextField than use dtLayer property instead of layer (e.g. background color) |
| borderColor | UIColor | Change border color of DTTextField |
| canShowBorder | Bool | Toggle border of DTTextField |
| dtborderStyle | enum | none, rounded , sqare |
| dtborderStyle | enum | none, rounded , sqare , top , bottom , left , right |
## Methods