Skip to content

Instantly share code, notes, and snippets.

View akacaptain's full-sized avatar

Frank E. Banks akacaptain

View GitHub Profile
@akacaptain
akacaptain / PhoneSignIn.swift
Last active April 20, 2020 01:35
PhoneNumberKit and SwiftUI
import SwiftUI
import UIKit
import PhoneNumberKit
struct PhoneNumberTextFieldView: UIViewRepresentable {
@Binding var phoneNumber: String
private let textField = PhoneNumberTextField()
func makeUIView(context: Context) -> PhoneNumberTextField {
textField.withExamplePlaceholder = true