view Simoleon/AboutView.swift @ 193:7bd79287b955

Add images to readme
author Dennis C. M. <dennis@denniscm.com>
date Wed, 20 Nov 2024 08:59:21 +0000
parents 13d5a8deb6c2
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()
    }
}