Mercurial > public > simoleon
comparison Simoleon/Settings.swift @ 41:7703c122ce96
Add Terms of Use link
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 25 Jul 2021 10:59:51 +0100 |
parents | 41a905e591e4 |
children | d25b02d439d4 |
comparison
equal
deleted
inserted
replaced
40:db607a20769a | 41:7703c122ce96 |
---|---|
84 } | 84 } |
85 | 85 |
86 Link(destination: URL(string: "https://dennistech.io")!) { | 86 Link(destination: URL(string: "https://dennistech.io")!) { |
87 Text("Privacy Policy", comment: "Button to go to app privacy policy") | 87 Text("Privacy Policy", comment: "Button to go to app privacy policy") |
88 } | 88 } |
89 | |
90 Link(destination: URL(string: "https://dennistech.io/terms-of-use")!) { | |
91 Text("Terms of Use", comment: "Button to go to app terms of use") | |
92 } | |
89 } | 93 } |
90 } | 94 } |
91 .onAppear(perform: onAppear) | 95 .onAppear(perform: onAppear) |
92 .listStyle(InsetGroupedListStyle()) | 96 .listStyle(InsetGroupedListStyle()) |
93 .navigationTitle(Text("Settings", comment: "Navigation title")) | 97 .navigationTitle(Text("Settings", comment: "Navigation title")) |
128 | 132 |
129 struct Settings_Previews: PreviewProvider { | 133 struct Settings_Previews: PreviewProvider { |
130 static var previews: some View { | 134 static var previews: some View { |
131 Settings() | 135 Settings() |
132 .environmentObject(SubscriptionController()) | 136 .environmentObject(SubscriptionController()) |
137 .environment(\.locale, .init(identifier: "es")) | |
133 } | 138 } |
134 } | 139 } |