mirror of
https://github.com/neon443/RNG_Swift.git
synced 2026-03-11 06:49:12 +00:00
+ reamde + noDebug.xcscheme + ui improvements +max die is 100+overflow protextion +fix giant padding in diceview +rewrite rng2() +ui friedlification +rewrite arrCombine
65 lines
1.2 KiB
Swift
65 lines
1.2 KiB
Swift
//
|
|
// ContentView.swift
|
|
// RNG
|
|
//
|
|
// Created by Nihaal on 09/10/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
VStack {
|
|
NavigationSplitView {
|
|
List {
|
|
Section("Generate...") {
|
|
NavigationLink {
|
|
NumberView()
|
|
.navigationTitle("Numbers")
|
|
} label: {
|
|
HStack {
|
|
Text("Numbers")
|
|
Spacer()
|
|
Image(systemName: "textformat.123")
|
|
}
|
|
}
|
|
NavigationLink {
|
|
DiceView()
|
|
.navigationTitle("Die")
|
|
} label: {
|
|
HStack {
|
|
Text("Die")
|
|
Spacer()
|
|
Image(systemName: "die.face.1")
|
|
Image(systemName: "die.face.2.fill")
|
|
Image(systemName: "die.face.3")
|
|
Image(systemName: "die.face.4.fill")
|
|
Image(systemName: "die.face.5")
|
|
Image(systemName: "die.face.6.fill")
|
|
}
|
|
}
|
|
NavigationLink {
|
|
PasswordView()
|
|
.navigationTitle("Passwords")
|
|
} label: {
|
|
HStack {
|
|
Text("Passwords")
|
|
Spacer()
|
|
Image(systemName: "rectangle.and.pencil.and.ellipsis")
|
|
}
|
|
}
|
|
}
|
|
.navigationTitle("RNG")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
} detail: {
|
|
Image(systemName: "dice.fill")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|