struct DevTechieFormExample: View { var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") } .navigationTitle("DevTechie Settings") } } }
struct DevTechieFormExample: View { var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") } .navigationTitle("DevTechie Settings") } } }
struct DevTechieFormExample: View { var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") Section(header: Text("SwiftUI Courses")) { Text("Mastering SwiftUI 3") Text("Photo Gallery App in SwiftUI 4") Text("DisneyPlus Clone in SwiftUI") } Section(header: Text("UIKit Courses")) { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } } .navigationTitle("DevTechie Settings") } } }
Section { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } header: { HStack { Image(systemName: "graduationcap.fill") Text("UIKit Courses") } .foregroundColor(.orange) } footer: { Text("50+ video courses and 200+ articles") }
struct DevTechieFormExample: View { @State private var selection = "" @State private var showEmail = false var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") Section(header: Text("Profile Preferences")) { Picker("Email Visibility", selection: $selection) { Text("Only Me").tag("me") Text("Connections").tag("connections") Text("Global").tag("global") } Toggle("Show email", isOn: $showEmail) } Section(header: Text("SwiftUI Courses")) { Text("Mastering SwiftUI 3") Text("Photo Gallery App in SwiftUI 4") Text("DisneyPlus Clone in SwiftUI") } Section { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } header: { HStack { Image(systemName: "graduationcap.fill") Text("UIKit Courses") } .foregroundColor(.orange) } footer: { Text("50+ video courses and 200+ articles") } } .navigationTitle("DevTechie Settings") } } }
struct DevTechieFormExample: View { @State private var selection = "" @State private var showEmail = false @State private var date = Date() var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") Section(header: Text("Profile Preferences")) { Picker("Email Visibility", selection: $selection) { Text("Only Me").tag("me") Text("Connections").tag("connections") Text("Global").tag("global") } Toggle("Show email", isOn: $showEmail) DatePicker("Today's date", selection: $date) } Section(header: Text("SwiftUI Courses")) { Text("Mastering SwiftUI 3") Text("Photo Gallery App in SwiftUI 4") Text("DisneyPlus Clone in SwiftUI") } Section { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } header: { HStack { Image(systemName: "graduationcap.fill") Text("UIKit Courses") } .foregroundColor(.orange) } footer: { Text("50+ video courses and 200+ articles") } } .navigationTitle("DevTechie Settings") } } }
Section(header: Text("Profile Preferences")) { Picker("Email Visibility", selection: $selection) { Text("Only Me").tag("me") Text("Connections").tag("connections") Text("Global").tag("global") } Toggle("Show email", isOn: $showEmail) }.headerProminence(.increased)
struct DevTechieFormExample: View { @State private var selection = "" @State private var showEmail = false var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") Section(header: Text("Profile Preferences").foregroundColor(.mint)) { Picker("Email Visibility", selection: $selection) { Text("Only Me").tag("me") Text("Connections").tag("connections") Text("Global").tag("global") } Toggle("Show email", isOn: $showEmail) } .headerProminence(.increased) .foregroundColor(.white) .listRowBackground(Color.mint) Section(header: Text("SwiftUI Courses").foregroundColor(.indigo)) { Text("Mastering SwiftUI 3") Text("Photo Gallery App in SwiftUI 4") Text("DisneyPlus Clone in SwiftUI") } .foregroundColor(.white) .listRowBackground(Color.indigo) Section { Group { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } .foregroundColor(.white) .listRowBackground(Color.orange) } header: { HStack { Image(systemName: "graduationcap.fill") Text("UIKit Courses") } .foregroundColor(.orange) } footer: { Text("50+ video courses and 200+ articles") } } .navigationTitle("DevTechie Settings") } } }
struct DevTechieFormExample: View { @State private var selection = "" @State private var showEmail = false var body: some View { NavigationView { Form { Text("Hello and welcome from DevTechie.com") Text("At DevTechie, we believe in learning by example. Here you will find examples which will help you learn app development by building real examples.") Section(header: Text("Profile").foregroundColor(.mint)) { DisclosureGroup("Preferences") { Picker("Email Visibility", selection: $selection) { Text("Only Me").tag("me") Text("Connections").tag("connections") Text("Global").tag("global") } Toggle("Show email", isOn: $showEmail) } } .headerProminence(.increased) .foregroundColor(.white) .listRowBackground(Color.mint) Section(header: Text("SwiftUI").foregroundColor(.indigo)) { DisclosureGroup("Video Courses") { Text("Mastering SwiftUI 3") Text("Photo Gallery App in SwiftUI 4") Text("DisneyPlus Clone in SwiftUI") } } .foregroundColor(.white) .listRowBackground(Color.indigo) Section { DisclosureGroup("Video Courses") { Text("Music Player in UIKit") Text("Strava Clone in UIKit") Text("TableViews in UIKit") } .foregroundColor(.white) .listRowBackground(Color.orange) } header: { HStack { Image(systemName: "graduationcap.fill") Text("UIKit") } .foregroundColor(.orange) } footer: { Text("50+ video courses and 200+ articles") } } .navigationTitle("DevTechie Settings") } } }
With that we have reached the end of this article. Thank you once again for reading. Don’t forget to subscribe our newsletter at https://www.devtechie.com