Skip to content

Instantly share code, notes, and snippets.

@blsage
Created October 20, 2020 17:45
Show Gist options
  • Select an option

  • Save blsage/6204d3faa8dbbbe6bacce4ab389153df to your computer and use it in GitHub Desktop.

Select an option

Save blsage/6204d3faa8dbbbe6bacce4ab389153df to your computer and use it in GitHub Desktop.

Revisions

  1. Benjamin Sage created this gist Oct 20, 2020.
    13 changes: 13 additions & 0 deletions iPhoneNumberTextField-Main.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    import SwiftUI
    import iPhoneNumberTextField

    struct ContentView: View {
    @State var text: String = ""
    @State var isEditing: Bool = false

    var body: some View {
    iPhoneNumberTextField("Placeholder",
    text: $text,
    isEditing: $isEditing)
    }
    }