From 2d007127ae500526087e31d5626957fddca7ba02 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:28:34 +0100 Subject: [PATCH] push to github --- MyApp.swift | 2 +- PasswordView.swift | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/MyApp.swift b/MyApp.swift index f991c88..8cbbd8e 100644 --- a/MyApp.swift +++ b/MyApp.swift @@ -85,7 +85,7 @@ func rngInt(len: Int) -> Int { } let resultInt = Int(result) return resultInt! -} +} func rngString(len: Int) -> String { let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" diff --git a/PasswordView.swift b/PasswordView.swift index dc252d3..a94cacb 100644 --- a/PasswordView.swift +++ b/PasswordView.swift @@ -75,13 +75,17 @@ struct PasswordView: View { } Section("Result") { HStack { - Spacer() - Text(String(result)) - Spacer() + Group { + Spacer() + Text(String(result)) + Spacer() + } } HStack { Spacer() Text(String(generated)) + .font(.largeTitle) + .bold() Spacer() } } @@ -178,9 +182,9 @@ func genPass(type: String, min: Int?, max: Int?) -> String { return result } -#Preview { +#Preview("PasswordView") { PasswordView() } -#Preview { +#Preview("PassCodeWordHelpView") { PassCodeWordHelpView() }