Skip to content

Commit 15252dd

Browse files
committed
add swift package
1 parent 31b65ee commit 15252dd

File tree

12 files changed

+67
-1
lines changed

12 files changed

+67
-1
lines changed

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

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FloatingLabelTextFieldSwiftUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Pod::Spec.new do |s|
3030

3131
s.ios.deployment_target = '13.0'
3232

33-
s.source_files = 'Source/**/*.swift'
33+
s.source_files = 'Sources/**/*.swift'
3434

3535
s.swift_version = '5.0'
3636
s.platforms = {

Package.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version:5.1
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: "FloatingLabelTextFieldSwiftUI",
8+
products: [
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "FloatingLabelTextFieldSwiftUI",
12+
targets: ["FloatingLabelTextFieldSwiftUI"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
21+
.target(
22+
name: "FloatingLabelTextFieldSwiftUI",
23+
dependencies: []),
24+
.testTarget(
25+
name: "FloatingLabelTextFieldSwiftUITests",
26+
dependencies: ["FloatingLabelTextFieldSwiftUI"]),
27+
]
28+
)

Source/Extensions/TextAlignment+Extension.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/Extensions/TextAlignment+Extension.swift

File renamed without changes.

Source/Extensions/UIControl+Extension.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/Extensions/UIControl+Extension.swift

File renamed without changes.

Source/Extensions/UIResponder+Extesnion.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/Extensions/UIResponder+Extesnion.swift

File renamed without changes.

Source/Extensions/View+Extension.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/Extensions/View+Extension.swift

File renamed without changes.

Source/FloatingLabelTextField.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/FloatingLabelTextField.swift

File renamed without changes.

Source/ObservableObject/ObservableObject.swift renamed to Sources/FloatingLabelTextFieldSwiftUI/ObservableObject/ObservableObject.swift

File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import XCTest
2+
@testable import FloatingLabelTextFieldSwiftUI
3+
4+
final class FloatingLabelTextFieldSwiftUITests: XCTestCase {
5+
func testExample() {
6+
// This is an example of a functional test case.
7+
// Use XCTAssert and related functions to verify your tests produce the correct
8+
// results.
9+
XCTAssertEqual(FloatingLabelTextFieldSwiftUI().text, "Hello, World!")
10+
}
11+
12+
static var allTests = [
13+
("testExample", testExample),
14+
]
15+
}

0 commit comments

Comments
 (0)