mirror of
https://github.com/neon443/RNG_Swift.git
synced 2026-03-11 06:49:12 +00:00
push to github
This commit is contained in:
@@ -85,7 +85,7 @@ func rngInt(len: Int) -> Int {
|
|||||||
}
|
}
|
||||||
let resultInt = Int(result)
|
let resultInt = Int(result)
|
||||||
return resultInt!
|
return resultInt!
|
||||||
}
|
}
|
||||||
|
|
||||||
func rngString(len: Int) -> String {
|
func rngString(len: Int) -> String {
|
||||||
let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||||
|
|||||||
@@ -75,13 +75,17 @@ struct PasswordView: View {
|
|||||||
}
|
}
|
||||||
Section("Result") {
|
Section("Result") {
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Group {
|
||||||
Text(String(result))
|
Spacer()
|
||||||
Spacer()
|
Text(String(result))
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(String(generated))
|
Text(String(generated))
|
||||||
|
.font(.largeTitle)
|
||||||
|
.bold()
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -178,9 +182,9 @@ func genPass(type: String, min: Int?, max: Int?) -> String {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
#Preview("PasswordView") {
|
||||||
PasswordView()
|
PasswordView()
|
||||||
}
|
}
|
||||||
#Preview {
|
#Preview("PassCodeWordHelpView") {
|
||||||
PassCodeWordHelpView()
|
PassCodeWordHelpView()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user