Last active
May 16, 2020 21:26
-
-
Save markiv/c0f957e549bd3ef2a4212de5433e1c1b to your computer and use it in GitHub Desktop.
FloatingTextFieldContenView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
let labels = ["First Name", "Last Name", "Street", "City", "Post Code"] | |
@State private var values = Array(repeating: "", count: 5) | |
var body: some View { | |
List(0..<5) { index in | |
FloatingTextField(title: self.labels[index], text: self.$values[index]) | |
}.listStyle(GroupedListStyle()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment