Mercurial > public > simoleon
diff Simoleon/AboutView.swift @ 164:b899c1142d9d
Implement AboutView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 11 Sep 2021 16:29:38 +0200 |
parents | |
children | f4e0c414cf6d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/AboutView.swift Sat Sep 11 16:29:38 2021 +0200 @@ -0,0 +1,70 @@ +// +// AboutView.swift +// Simoleon +// +// Created by Dennis Concepción Martín on 19/07/2021. +// + +import SwiftUI + +struct AboutView: View { + var body: some View { + Form { + Section(header: Text("Stay in touch")) { + Link(destination: URL(string: "https://itunes.apple.com/app/id1576390953?action=write-review")!) { + HStack { + Image(systemName: "heart.fill") + .foregroundColor(Color(.systemRed)) + .imageScale(.large) + + Text("Rate Simoleon") + } + } + + Link(destination: URL(string: "https://twitter.com/dennisconcep")!) { + HStack { + Image("TwitterLogo") + .resizable() + .frame(width: 30, height: 30) + + Text("Developer's Twitter") + } + } + + Link(destination: URL(string: "https://dennistech.io/contact")!) { + HStack { + Image(systemName: "envelope.fill") + .foregroundColor(Color(.systemIndigo)) + .imageScale(.large) + + Text("Contact") + } + } + } + + Section(header: Text("About")) { + Link(destination: URL(string: "https://dennistech.io")!) { + Text("Website") + } + + Link(destination: URL(string: "https://dennistech.io/simoleon-privacy-policy")!) { + Text("Privacy Policy") + } + + Link(destination: URL(string: "https://dennistech.io/simoleon-terms-of-use")!) { + Text("Terms of Use") + } + } + } + .navigationTitle("About") + .if(UIDevice.current.userInterfaceIdiom == .phone) { content in + NavigationView { content } + } + } +} + +struct AboutView_Previews: PreviewProvider { + static var previews: some View { + AboutView() + } +}