Skip to content

Commit

Permalink
add swift package
Browse files Browse the repository at this point in the history
  • Loading branch information
kishanraja committed May 12, 2020
1 parent 31b65ee commit 15252dd
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FloatingLabelTextFieldSwiftUI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pod::Spec.new do |s|

s.ios.deployment_target = '13.0'

s.source_files = 'Source/**/*.swift'
s.source_files = 'Sources/**/*.swift'

s.swift_version = '5.0'
s.platforms = {
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "FloatingLabelTextFieldSwiftUI",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "FloatingLabelTextFieldSwiftUI",
targets: ["FloatingLabelTextFieldSwiftUI"]),
],
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 which this package depends on.
.target(
name: "FloatingLabelTextFieldSwiftUI",
dependencies: []),
.testTarget(
name: "FloatingLabelTextFieldSwiftUITests",
dependencies: ["FloatingLabelTextFieldSwiftUI"]),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import XCTest
@testable import FloatingLabelTextFieldSwiftUI

final class FloatingLabelTextFieldSwiftUITests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(FloatingLabelTextFieldSwiftUI().text, "Hello, World!")
}

static var allTests = [
("testExample", testExample),
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(FloatingLabelTextFieldSwiftUITests.allTests),
]
}
#endif
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import FloatingLabelTextFieldSwiftUITests

var tests = [XCTestCaseEntry]()
tests += FloatingLabelTextFieldSwiftUITests.allTests()
XCTMain(tests)

0 comments on commit 15252dd

Please sign in to comment.