This commit is contained in:
Lncvrt committed 2026-08-29 19:31:07 -07:00
1 parent f2e8e99958
commit b67c2d7ccf
1 file changed
+6 -3
+6 -3
View File
@@ -62,14 +62,16 @@ struct ContentView: View {
.fontWeight(.bold)
Text("Select a length, or use the slider for a custom value")
Text("Password Length: " + String(length)).padding(.top)
Text("Password Length: " + String(length))
.padding(.top)
Slider(
value: Binding(
get: { Double(length) },
set: { length = Int($0) }
),
in: 1...500
).onChange(of: length) { generatePassword() }
)
.onChange(of: length) { generatePassword() }
HStack {
Button("8") {
@@ -94,7 +96,8 @@ struct ContentView: View {
.buttonStyle(.bordered)
}
Text("Characters to use").padding()
Text("Characters to use")
.padding()
LazyVGrid(
columns: [
GridItem(.adaptive(minimum: 180))