Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created January 4, 2021 20:59
Show Gist options
  • Save amosgyamfi/cdc8f28c8aa25aaeb6b695d52013fe96 to your computer and use it in GitHub Desktop.
Save amosgyamfi/cdc8f28c8aa25aaeb6b695d52013fe96 to your computer and use it in GitHub Desktop.
//
// ContentView.swift
// Day4
//
// Created by Amos Gyamfi on 4.1.2021.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
HStack {
Image(systemName: "chevron.left.circle.fill")
.font(.largeTitle)
Spacer()
}
Spacer()
ZStack {
LinearGradient(gradient: /*@START_MENU_TOKEN@*/Gradient(colors: [Color.red, Color.blue])/*@END_MENU_TOKEN@*/, startPoint: .topLeading, endPoint: /*@START_MENU_TOKEN@*/.trailing/*@END_MENU_TOKEN@*/)
.frame(width: 153, height: 153, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
.cornerRadius(38)
Image(systemName: "ladybug.fill")
.font(.system(size: 102))
}
Spacer()
Spacer()
Label("Your account", systemImage: "heart.fill")
Label("2021 * All Rights Reserved", systemImage: "c.circle")
.padding()
HStack {
RoundedRectangle(cornerRadius: 23)
.frame(width: 180, height: 46, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
.overlay(Text("Privacy").foregroundColor(Color(.systemBlue)))
RoundedRectangle(cornerRadius: 23)
.frame(width: 180, height: 46, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
.overlay(Text("Terms").foregroundColor(Color(.systemBlue)))
}
.padding()
} // All views
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.preferredColorScheme(/*@START_MENU_TOKEN@*/.dark/*@END_MENU_TOKEN@*/)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment