Skip to content

Commit cd71c7a

Browse files
committed
chore: add a basic setup to demonstrate issue 119
1 parent a65b61b commit cd71c7a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import SwiftUI
2+
import iPhoneNumberField
3+
4+
/// Issue: When applying placeholderColor modifier, nothing happens. Placeholder color always the same.
5+
///
6+
/// This issue is due to a dependency. There is another PR for this [here](https://github.com/marmelroy/PhoneNumberKit/issues/831)
7+
struct Issue119: View {
8+
var body: some View {
9+
iPhoneNumberField(
10+
"Phone Number",
11+
text: .constant("")
12+
)
13+
.placeholderColor(Color.red)
14+
}
15+
}
16+
17+
#Preview {
18+
Issue119()
19+
.padding()
20+
}

Demo/iPhoneNumberFieldDemo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
2AA44DCF28A11688001BF8F0 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2AA44DCE28A11688001BF8F0 /* Preview Assets.xcassets */; };
1414
2AA44DD928A116D8001BF8F0 /* iPhoneNumberField in Frameworks */ = {isa = PBXBuildFile; productRef = 2AA44DD828A116D8001BF8F0 /* iPhoneNumberField */; };
1515
2AD9C8152D6F21E4008B6062 /* issue118.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AD9C8142D6F21E4008B6062 /* issue118.swift */; };
16+
2AD9D0D72D719A21008B6062 /* issue119.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AD9D0D62D719A21008B6062 /* issue119.swift */; };
1617
/* End PBXBuildFile section */
1718

1819
/* Begin PBXContainerItemProxy section */
@@ -35,6 +36,7 @@
3536
2AA44DD628A11699001BF8F0 /* iPhoneNumberField */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = iPhoneNumberField; path = ..; sourceTree = "<group>"; };
3637
2AD9C8142D6F21E4008B6062 /* issue118.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = issue118.swift; sourceTree = "<group>"; };
3738
2AD9C81B2D6F2321008B6062 /* iPhoneNumberFieldDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iPhoneNumberFieldDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
39+
2AD9D0D62D719A21008B6062 /* issue119.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = issue119.swift; sourceTree = "<group>"; };
3840
/* End PBXFileReference section */
3941

4042
/* Begin PBXFileSystemSynchronizedRootGroup section */
@@ -120,6 +122,7 @@
120122
isa = PBXGroup;
121123
children = (
122124
2AD9C8142D6F21E4008B6062 /* issue118.swift */,
125+
2AD9D0D62D719A21008B6062 /* issue119.swift */,
123126
);
124127
path = GitHubIssues;
125128
sourceTree = "<group>";
@@ -233,6 +236,7 @@
233236
buildActionMask = 2147483647;
234237
files = (
235238
2AA44DC928A11687001BF8F0 /* ContentView.swift in Sources */,
239+
2AD9D0D72D719A21008B6062 /* issue119.swift in Sources */,
236240
2AA44DC728A11687001BF8F0 /* MultiplatformDemoApp.swift in Sources */,
237241
2AD9C8152D6F21E4008B6062 /* issue118.swift in Sources */,
238242
);

0 commit comments

Comments
 (0)