Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
12579710
Code A3 Artefact
Commits
6b6536f6
Commit
6b6536f6
authored
Oct 28, 2020
by
12579710
Browse files
Add new file
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Home Page Codes
0 → 100644
View file @
6b6536f6
//
// ContentView.swift
// Assessment Task 3 FInal
//
// Created by Tanya Xaybounheuang on 13/10/20.
// Copyright © 2020 Tanya Xaybounheuang. All rights reserved.
//
import SwiftUI
struct ImageOverlay: View {
var body: some View {
VStack {
Text("Welcome To")
.font(.title)
.fontWeight(.bold)
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.lineLimit(1)
.background(Color.clear)
Text("365 Story")
.font(.largeTitle)
.fontWeight(.heavy)
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.lineLimit(1)
Text("")
Text("")
Text("")
Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/) {
Text("Sign In")
.font(.title)
.fontWeight(.bold)
.multilineTextAlignment(.center)
.lineLimit(2)
.background(Color.clear)}
Text("")
Text("or")
.font(.body)
.fontWeight(.medium)
.multilineTextAlignment(.center)
.background(Color.clear)
Text("")
Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/) {
Text("Sign Up")
.font(.title)
.fontWeight(.bold)
.multilineTextAlignment(.center)
.lineLimit(2)
.background(Color.clear)
}
}
}
}
struct ContentView: View {
var body: some View {
VStack {
Image("background")
.resizable()
.frame(width: 600, height: 1000)
.scaledToFill()
.overlay(ImageOverlay(), alignment: .center)
.aspectRatio(contentMode: .fill)
.foregroundColor(Color.white)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment