Skip to content

Add a SwiftUI wrapper for PhoneNumberTextField#3

Open
AndrewSB wants to merge 1 commit into
PhoneNumberKit:mainfrom
AndrewSB:codex/swiftui-representable
Open

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

Conversation

@AndrewSB

Copy link
Copy Markdown

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
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?

1 participant