Skip to content

Commit 9c1fc8a

Browse files
author
Edgar Žigis
committed
Add Swift Package Manager support
1 parent 24a1ed1 commit 9c1fc8a

File tree

21 files changed

+155
-70
lines changed

21 files changed

+155
-70
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>CocoaTextField.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>CocoaTextField</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>CocoaTextFieldTests</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
</dict>
26+
</dict>
27+
</plist>

CocoaTextField.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "CocoaTextField"
3-
spec.version = "1.0.0"
3+
spec.version = "1.1.0"
44
spec.summary = "Highly customizable text field created according to Material.IO guidelines."
55

66
spec.homepage = "https://github.com/edgar-zigis/CocoaTextField"
@@ -12,9 +12,9 @@ Pod::Spec.new do |spec|
1212

1313
spec.platform = :ios
1414
spec.ios.deployment_target = '11.0'
15-
spec.swift_version = '5.0'
15+
spec.swift_version = '5.2'
1616

1717
spec.source = { :git => "https://github.com/edgar-zigis/CocoaTextField.git", :tag => "#{spec.version}" }
1818

19-
spec.source_files = "CocoaTextField/**/*.{swift}"
19+
spec.source_files = "Sources/CocoaTextField/**/*.{swift}"
2020
end

CocoaTextField.xcodeproj/project.pbxproj

+87-67
Large diffs are not rendered by default.

Package.swift

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "CocoaTextField",
8+
platforms: [
9+
.iOS(.v11)
10+
],
11+
products: [
12+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
13+
.library(
14+
name: "CocoaTextField",
15+
targets: ["CocoaTextField"]),
16+
],
17+
dependencies: [
18+
// Dependencies declare other packages that this package depends on.
19+
// .package(url: /* package url */, from: "1.0.0"),
20+
],
21+
targets: [
22+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
23+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
24+
.target(
25+
name: "CocoaTextField",
26+
dependencies: []),
27+
.testTarget(
28+
name: "CocoaTextFieldTests",
29+
dependencies: ["CocoaTextField"]),
30+
]
31+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sample-c.gif

-1.22 MB
Binary file not shown.

sample.gif

-1000 KB
Loading

0 commit comments

Comments
 (0)