Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ContentMenu: View {
- /*
- let allColors: [Color] = [
- .pink,
- .red,
- .orange,
- .yellow,
- .green,
- .mint,
- .teal,
- .cyan,
- .blue,
- .indigo,
- .purple,
- .brown,
- .gray
- ]
- */
- var body: some View {
- VStack(alignment: .center) {
- VStack(alignment: .center) {
- Image("C2F")
- .resizable()
- .aspectRatio(contentMode: .fit)
- }
- .background(
- LinearGradient(gradient: Gradient(colors: [.brown, .cyan]), startPoint: .topLeading, endPoint: .bottomTrailing))
- ScrollView(.vertical) {
- VStack(alignment: .center) {
- VStack(alignment: .center) {
- VStack(alignment: .center){
- NavigationLink(destination: WelcomeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Hum").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("DART Meadow")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: JournalView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("LD").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("Articren Journal")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: ResearchMenu()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("Research")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: ArcLakeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("LDGlassBlack").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("Navigation")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: WelcomeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("CircleTrans").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("Simulations")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: WelcomeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("StealthEdgeMasterset").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 50,
- maxHeight: 50, alignment: .leading).shadow(radius: 3)
- Text("Logistics")
- }.foregroundColor(.white)
- }
- }
- }
- }
- }.frame(
- maxWidth: 190,
- maxHeight: .infinity, alignment: .topLeading)
- }
- }
- .background(
- LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topLeading, endPoint: .bottomTrailing))
- }
- }
- struct RNode: Hashable, Identifiable {
- let id = UUID()
- let title: String
- let icon: String
- var nodes: [RNode]?
- /*
- var views: (some View) {[
- WelcomeView(), DETEView(), OrbitNodeView()
- ]}
- */
- //DART Meadow
- //Jounal
- //Research
- static let elements = RNode(title: "Elements", icon: "flame")
- static let sigcothian = RNode(title: "Sigcothian", icon: "star")
- static let dartedge = RNode(title: "DART Edge", icon: "star")
- static let orbit = RNode(title: "Orbit", icon: "star")
- static let orbitbuilder = RNode(title: "Orbit Builder", icon: "star")
- static let orbitbuilds = RNode(title: "Orbit Builds", icon: "star")
- static let mass = RNode(title: "Mass", icon: "star")
- static let volume = RNode(title: "Volume", icon: "star")
- static let weight = RNode(title: "Weight", icon: "star")
- static let density = RNode(title: "Density", icon: "star")
- static let atm26 = RNode(title: "ATM 26", icon: "star")
- static let breakvelocity = RNode(title: "Break | Velocity", icon: "star")
- static let gas = RNode(title: "Gas", icon: "star")
- static let liquid = RNode(title: "Liquid", icon: "star")
- static let solid = RNode(title: "Solid", icon: "star")
- static let crystalline = RNode(title: "Crystalline", icon: "star")
- static let moleculebuilder = RNode(title: "Molecule Builder", icon: "star")
- static let moleculebuilds = RNode(title: "Molecule Builds", icon: "star")
- static let solartalatm = RNode(title: "Solartal ATM", icon: "star")
- static let nozzle = RNode(title: "Nozzle", icon: "star")
- static let decibel = RNode(title: "Decibel", icon: "star")
- static let catalyst = RNode(title: "Catalyst", icon: "star")
- static let phedge = RNode(title: "PH Edge", icon: "star")
- static let bioedge = RNode(title: "BioEdge", icon: "star")
- static let stealthedge = RNode(title: "StealthEdge", icon: "star")
- //Navagation
- //Logistics
- //Simulations
- /*
- .init(id: 1, title: "DART Meadow", imageName: "sun.max.fill"),
- .init(id: 2, title: "Journal", imageName: "note.text"),
- .init(id: 3, title: "Research", imageName: "flame"),
- .init(id: 4, title: "Navigation", imageName: "moon.stars.fill"),
- .init(id: 5, title: "Logistics", imageName: "cube.transparent.fill"),
- .init(id: 6, title: "Simulations", imageName: "chart.pie.fill"),
- */
- // subcontent
- static let dartmeadow = RNode(title: "DART Meadow", icon: "star")
- static let journal = RNode(title: "Articren Journal", icon: "star")
- static let research = RNode(title: "Research", icon: "star", nodes: [RNode.elements, RNode.sigcothian, RNode.dartedge, RNode.orbit, RNode.mass, RNode.volume, RNode.weight, RNode.density, RNode.atm26, RNode.breakvelocity, RNode.gas, RNode.liquid, RNode.solid, RNode.crystalline, RNode.solartalatm, RNode.nozzle, RNode.decibel, RNode.catalyst, RNode.phedge, RNode.bioedge, RNode.stealthedge])
- static let navigation = RNode(title: "Navigation", icon: "star")
- static let simulations = RNode(title: "Simulations", icon: "star")
- static let logistics = RNode(title: "Logistics", icon: "star")
- }
- struct ResearchMenu: View {
- @State var scale = 1.0
- let nodes: [RNode] = [.dartmeadow,.journal,.research,.navigation,.simulations,.logistics]
- /*#-code-walkthrough(2.columnLayout)*/
- let columnLayout = Array(repeating: GridItem(), count: 1)
- /*
- let allColors: [Color] = [
- .pink,
- .red,
- .orange,
- .yellow,
- .green,
- .mint,
- .teal,
- .cyan,
- .blue,
- .indigo,
- .purple,
- .brown,
- .gray
- ]
- */
- var body: some View {
- HStack(alignment: .center) {
- VStack(alignment: .leading) {
- ScrollView(.vertical) {
- VStack(alignment: .leading) {
- VStack(alignment: .center) {
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Elements")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: SigcothianView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Sigcothian300").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Sigcothian")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DARTEdge()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("dle").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("DART Edge")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: OrbitNodeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("orbit100").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Orbit Builder")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: OrbitNodeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("orbit100").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Orbit Builds")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: MassView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Mass150").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Mass")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: VolumeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("VolumeCuda").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Volume")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: WeightView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Weight150").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Weight")
- }.foregroundColor(.white)
- }
- }
- }
- }
- VStack(alignment: .center){
- VStack(alignment: .center){
- NavigationLink(destination: DensityView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Density150").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Density")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: ATM26NodeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("DEAC").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("ATM 26")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("Hercules").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Break | Velocity")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Gas")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Liquid")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Solid")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("LDGlassBlack").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Crystalline")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Molecule Builder")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Molecule Builds")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Solartal ATM")
- }.foregroundColor(.white)
- }
- }
- }
- }
- VStack(alignment: .center){
- VStack(alignment: .center){
- NavigationLink(destination: NozzleNodeView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("NozzleArtemis300").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Nozzle")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: Decibel()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("LDBay").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Decibel")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Catalyst")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("rdflower").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("PH Edge")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("BioEdge130").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("BioEdge")
- }.foregroundColor(.white)
- }
- }
- }
- VStack(alignment: .center){
- NavigationLink(destination: DETEView()) {
- ZStack(alignment: .leading){
- RoundedRectangle(cornerRadius: 4.0)
- .aspectRatio(4.5, contentMode: ContentMode.fit)
- .shadow(radius: 3)
- .foregroundColor(.blue)
- HStack(alignment: .center){
- Image("StealthEdgeMasterset").resizable()
- .aspectRatio(contentMode: .fit).padding(.leading, 8).padding(.trailing, 4)
- .frame(
- maxWidth: 40,
- maxHeight: 40, alignment: .leading).shadow(radius: 3)
- Text("Stealth Edge")
- }.foregroundColor(.white)
- }
- }
- }
- }
- }.frame(
- maxWidth: 198,
- maxHeight: .infinity, alignment: .topLeading)
- .frame(
- maxWidth: 198,
- maxHeight: .infinity, alignment: .topLeading).padding(.trailing, 8)
- }
- .padding(.leading, 4)
- }.frame(
- maxWidth: 198,
- maxHeight: .infinity, alignment: .topLeading)
- VStack(alignment: .center){
- Image("DMLogoDETE")
- .resizable()
- .aspectRatio(contentMode: .fit)
- }.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
- }.background(
- LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topLeading, endPoint: .bottomTrailing))
- }
- }
- struct WelcomeView: View {
- var body: some View{
- VStack(alignment: .center) {
- VStack(alignment: .center) {
- Image("DMHum")
- .resizable()
- .aspectRatio(contentMode: .fit)
- }.frame(width: 400, height: 200, alignment: .center)
- VStack(alignment: .center) {
- Image("C2Logo")
- .resizable()
- .aspectRatio(contentMode: .fit)
- }.frame(width: 512, height: 512, alignment: .center)
- }.frame(
- maxWidth: .infinity,
- maxHeight: .infinity, alignment: .center)
- .background(LinearGradient(gradient: Gradient(colors: [.brown, .black]), startPoint: .topTrailing, endPoint: .bottomLeading))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement