Skip to content

Commit 4511dd0

Browse files
authored
Default label color (#24)
* use `label` vs `black` as the default color * fix swiftpm warning
1 parent 68770e6 commit 4511dd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let package = Package(
1212
targets: ["ResponsiveTextField"]),
1313
],
1414
dependencies: [
15-
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.17.2"),
16-
.package(name: "combine-schedulers", url: "https://github.com/pointfreeco/combine-schedulers.git", from: "1.0.2")
15+
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.17.2"),
16+
.package(url: "https://github.com/pointfreeco/combine-schedulers.git", from: "1.0.2")
1717
],
1818
targets: [
1919
.target(

Sources/ResponsiveTextField/ResponsiveTextField+EnvironmentValues.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension ResponsiveTextField {
2424
}
2525

2626
fileprivate struct TextColorKey: EnvironmentKey {
27-
static let defaultValue: UIColor = .black
27+
static let defaultValue: UIColor = .label
2828
}
2929

3030
fileprivate struct TextAlignmentKey: EnvironmentKey {

0 commit comments

Comments
 (0)