Mercurial > public > simoleon
comparison Simoleon/AboutView.swift @ 171:70f0625bfcf1
Merge pull request #17 from denniscm190/development
open source project
committer: GitHub <noreply@github.com>
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 12 Oct 2021 16:17:35 +0200 |
parents | f4e0c414cf6d |
children |
comparison
equal
deleted
inserted
replaced
146:f10b0e188905 | 171:70f0625bfcf1 |
---|---|
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("Feedback")) { | |
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 | |
25 Section(header: Text("Stay in touch")) { | |
26 Link(destination: URL(string: "https://twitter.com/dennisconcep")!) { | |
27 HStack { | |
28 Image("TwitterLogo") | |
29 .resizable() | |
30 .frame(width: 30, height: 30) | |
31 | |
32 Text("Developer's Twitter") | |
33 } | |
34 } | |
35 | |
36 Link(destination: URL(string: "https://dennistech.io/contact")!) { | |
37 HStack { | |
38 Image(systemName: "envelope.fill") | |
39 .foregroundColor(Color(.systemIndigo)) | |
40 .imageScale(.large) | |
41 | |
42 Text("Contact") | |
43 } | |
44 } | |
45 } | |
46 | |
47 Section(header: Text("Information")) { | |
48 Link(destination: URL(string: "https://dennistech.io")!) { | |
49 Text("Website") | |
50 } | |
51 | |
52 Link(destination: URL(string: "https://dennistech.io/simoleon-privacy-policy")!) { | |
53 Text("Privacy Policy") | |
54 } | |
55 | |
56 Link(destination: URL(string: "https://dennistech.io/simoleon-terms-of-use")!) { | |
57 Text("Terms of Use") | |
58 } | |
59 } | |
60 } | |
61 .navigationTitle("About") | |
62 .if(UIDevice.current.userInterfaceIdiom == .phone) { content in | |
63 NavigationView { content } | |
64 } | |
65 } | |
66 } | |
67 | |
68 struct AboutView_Previews: PreviewProvider { | |
69 static var previews: some View { | |
70 AboutView() | |
71 } | |
72 } |