Skip to content

Add a SwiftUI wrapper for PhoneNumberTextField#3

Merged
bguidolim merged 1 commit into
PhoneNumberKit:mainfrom
AndrewSB:codex/swiftui-representable
Jul 13, 2026
Merged

Add a SwiftUI wrapper for PhoneNumberTextField#3
bguidolim merged 1 commit into
PhoneNumberKit:mainfrom
AndrewSB:codex/swiftui-representable

Conversation

@AndrewSB

Copy link
Copy Markdown
Contributor

What changed

  • add a public PhoneNumberTextFieldRepresentable with a two-way String binding
  • expose a configuration closure for the underlying PhoneNumberTextField
  • document SwiftUI usage

Why

PhoneNumberKitUI exposes UIKit components but currently leaves every SwiftUI consumer to maintain its own UIViewRepresentable wrapper. This moves that bridge into the package while retaining access to the full UIKit configuration surface.

Closes #2.

Validation

  • xcodebuild -scheme PhoneNumberKitUI -destination 'generic/platform=iOS Simulator' build

@AndrewSB
AndrewSB marked this pull request as ready for review July 12, 2026 16:07
@bguidolim
bguidolim merged commit 2e328c9 into PhoneNumberKit:main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SwiftUI?

2 participants