Mercurial > public > simoleon
view Simoleon/AboutView.swift @ 187:13d5a8deb6c2
add AboutView and FavoritesView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 23 Dec 2021 16:12:22 +0100 |
parents | |
children |
line wrap: on
line source
// // AboutView.swift // Simoleon // // Created by Dennis Concepción Martín on 23/12/21. // import SwiftUI struct AboutView: View { var body: some View { Form { let footerString = "This open source app was made by Dennis" Section(footer: Text(footerString)) { Link(destination: URL(string: "https://dennistech.io")!) { Label { Text("Web") .foregroundColor(.primary) } icon: { Image(systemName: "safari") .imageScale(.large) } } Link(destination: URL(string: "https://twitter.com/dennisconcep")!) { Label { Text("Twitter") .foregroundColor(.primary) } icon: { Image(systemName: "link") .imageScale(.large) } } Link(destination: URL(string: "https://github.com/denniscm190/simoleon")!) { Label { Text("Github") .foregroundColor(.primary) } icon: { Image(systemName: "externaldrive.connected.to.line.below") .imageScale(.large) } } } } .navigationTitle("About") .if(UIDevice.current.userInterfaceIdiom == .phone) { content in NavigationView { content } } } } struct AboutView_Previews: PreviewProvider { static var previews: some View { AboutView() } }