comparison 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
comparison
equal deleted inserted replaced
163:35573bdd7d9b 164:b899c1142d9d
1 //
2 // AboutView.swift
3 // Simoleon
4 //
5 // Created by Dennis Concepción Martín on 19/07/2021.
6 //
7
8 import SwiftUI
9
10 struct AboutView: View {
11 var body: some View {
12 Form {
13 Section(header: Text("Stay in touch")) {
14 Link(destination: URL(string: "https://itunes.apple.com/app/id1576390953?action=write-review")!) {
15 HStack {
16 Image(systemName: "heart.fill")
17 .foregroundColor(Color(.systemRed))
18 .imageScale(.large)
19
20 Text("Rate Simoleon")
21 }
22 }
23
24 Link(destination: URL(string: "https://twitter.com/dennisconcep")!) {
25 HStack {
26 Image("TwitterLogo")
27 .resizable()
28 .frame(width: 30, height: 30)
29
30 Text("Developer's Twitter")
31 }
32 }
33
34 Link(destination: URL(string: "https://dennistech.io/contact")!) {
35 HStack {
36 Image(systemName: "envelope.fill")
37 .foregroundColor(Color(.systemIndigo))
38 .imageScale(.large)
39
40 Text("Contact")
41 }
42 }
43 }
44
45 Section(header: Text("About")) {
46 Link(destination: URL(string: "https://dennistech.io")!) {
47 Text("Website")
48 }
49
50 Link(destination: URL(string: "https://dennistech.io/simoleon-privacy-policy")!) {
51 Text("Privacy Policy")
52 }
53
54 Link(destination: URL(string: "https://dennistech.io/simoleon-terms-of-use")!) {
55 Text("Terms of Use")
56 }
57 }
58 }
59 .navigationTitle("About")
60 .if(UIDevice.current.userInterfaceIdiom == .phone) { content in
61 NavigationView { content }
62 }
63 }
64 }
65
66 struct AboutView_Previews: PreviewProvider {
67 static var previews: some View {
68 AboutView()
69 }
70 }