Skip to content

Instantly share code, notes, and snippets.

@blsage
Last active November 6, 2020 22:40
Show Gist options
  • Save blsage/7fd9d51021ed60ffbda5ac39e68abe99 to your computer and use it in GitHub Desktop.
Save blsage/7fd9d51021ed60ffbda5ac39e68abe99 to your computer and use it in GitHub Desktop.
FORMAT PHONE NUMBERS IN SWIFTUI
import SwiftUI
import iPhoneNumberField
struct ContentView: View {
@State var text = ""
var body: some View {
iPhoneNumberField("Phone", text: $text)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment