Skip to content

Commit 18ef392

Browse files
adapt demos and fix previews
1 parent 4ce526b commit 18ef392

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/InputFieldPreview.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct InputFieldPreview: View {
1717
self.inputField
1818
.preview
1919
.onAppear {
20+
self.inputField.text = ""
2021
self.inputField.model = Self.initialModel
2122
}
2223
.onChange(of: self.model) { newValue in

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/TextInputPreview.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct TextInputPreviewPreview: View {
1717
self.textInput
1818
.preview
1919
.onAppear {
20+
self.textInput.text = ""
2021
self.textInput.model = Self.initialModel
2122
}
2223
.onChange(of: self.model) { newValue in

Examples/DemosApp/DemosApp/Demos/Login/SwiftUILogin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct SwiftUILogin: View {
6262
? "Welcome back"
6363
: "Create an account"
6464
)
65-
.font(.system(size: 30, weight: .bold))
65+
.font(UniversalFont.lgHeadline.font)
6666
.padding(.vertical, 30)
6767

6868
if self.selectedPage == .signUp {
@@ -129,6 +129,7 @@ struct SwiftUILogin: View {
129129
model: .init {
130130
$0.title = "Continue"
131131
$0.isFullWidth = true
132+
$0.color = .primary
132133
$0.isEnabled = self.isButtonEnabled
133134
},
134135
action: {

Examples/DemosApp/DemosApp/Demos/Login/UIKitLogin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class UIKitLogin: UIViewController {
3636
)
3737
private let titleLabel: UILabel = {
3838
let label = UILabel()
39-
label.font = .systemFont(ofSize: 30, weight: .bold)
39+
label.font = UniversalFont.lgHeadline.uiFont
4040
return label
4141
}()
4242
private let nameInput = UKInputField(
@@ -74,6 +74,7 @@ final class UIKitLogin: UIViewController {
7474
model: .init {
7575
$0.title = "Continue"
7676
$0.isFullWidth = true
77+
$0.color = .primary
7778
}
7879
)
7980
private let loader = UKLoading()

0 commit comments

Comments
 (0)