Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ struct TextInputPreviewPreview: View {
BodyFontPicker(selection: self.$model.font)
KeyboardTypePicker(selection: self.$model.keyboardType)
Picker("Max Rows", selection: self.$model.maxRows) {
Text("2 Rows").tag(2)
Text("3 Rows").tag(3)
Text("4 Rows").tag(4)
Text("No Limit").tag(Optional<Int>.none)
}
Picker("Min Rows", selection: self.$model.minRows) {
Text("1 Row").tag(1)
Text("2 Rows").tag(2)
Text("3 Rows").tag(3)
}
Toggle("Placeholder", isOn: .init(
get: {
Expand Down Expand Up @@ -81,7 +82,7 @@ struct TextInputPreviewPreview: View {
private static var initialModel: TextInputVM {
return .init {
$0.placeholder = "Placeholder"
$0.minRows = 1
$0.minRows = 2
$0.maxRows = nil
}
}
Expand Down
90 changes: 37 additions & 53 deletions Examples/DemosApp/DemosApp/Core/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,47 @@ struct App: View {
var body: some View {
NavigationView {
List {
Section("Components") {
NavigationLinkWithTitle("Button") {
ButtonPreview()
}
NavigationLinkWithTitle("Card") {
CardPreview()
}
NavigationLinkWithTitle("Checkbox") {
CheckboxPreview()
}
NavigationLinkWithTitle("Countdown") {
CountdownPreview()
}
NavigationLinkWithTitle("Divider") {
DividerPreview()
}
NavigationLinkWithTitle("Input Field") {
InputFieldPreview()
}
NavigationLinkWithTitle("Loading") {
LoadingPreview()
}
NavigationLinkWithTitle("Radio Group") {
RadioGroupPreview()
}
NavigationLinkWithTitle("Segmented Control") {
SegmentedControlPreview()
}
NavigationLinkWithTitle("Text Field") {
TextInputPreviewPreview()
}
NavigationLinkWithTitle("Alert") {
AlertPreview()
}

Section("Modals") {
NavigationLinkWithTitle("Alert") {
AlertPreview()
}
NavigationLinkWithTitle("Bottom Modal") {
BottomModalPreview()
}
NavigationLinkWithTitle("Center Modal") {
CenterModalPreview()
}
NavigationLinkWithTitle("Button") {
ButtonPreview()
}

Section("Login Demo") {
NavigationLinkWithTitle("SwiftUI") {
SwiftUILogin()
}
NavigationLinkWithTitle("UIKit") {
UIViewControllerRepresenting {
UIKitLogin()
}
}
NavigationLinkWithTitle("Card") {
CardPreview()
}
NavigationLinkWithTitle("Checkbox") {
CheckboxPreview()
}
NavigationLinkWithTitle("Countdown") {
CountdownPreview()
}
NavigationLinkWithTitle("Divider") {
DividerPreview()
}
NavigationLinkWithTitle("Input Field") {
InputFieldPreview()
}
NavigationLinkWithTitle("Loading") {
LoadingPreview()
}
NavigationLinkWithTitle("Modal (Bottom)") {
BottomModalPreview()
}
NavigationLinkWithTitle("Modal (Center)") {
CenterModalPreview()
}
NavigationLinkWithTitle("Radio Group") {
RadioGroupPreview()
}
NavigationLinkWithTitle("Segmented Control") {
SegmentedControlPreview()
}
NavigationLinkWithTitle("Text Input") {
TextInputPreviewPreview()
}
}
.navigationTitle("Examples")
.navigationTitle("Components")
.navigationBarTitleDisplayMode(.inline)
}
}
Expand Down
163 changes: 0 additions & 163 deletions Examples/DemosApp/DemosApp/Demos/Login/SwiftUILogin.swift

This file was deleted.

Loading
Loading