Created
July 28, 2022 11:54
-
-
Save amosgyamfi/4e32e82624e4086a8381ceb308748018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// duoColorSet.swift | |
// duoChromaPalette | |
// | |
// | |
import SwiftUI | |
struct duoColorSet: View { | |
// Color literal definition | |
let deviceBg = #colorLiteral(red: 0, green: 0.3725490196, blue: 1, alpha: 1) | |
let addColor = #colorLiteral(red: 0.5409796238, green: 0.776439786, blue: 0.2311589718, alpha: 1) | |
var body: some View { | |
ZStack { | |
Color(deviceBg) | |
.ignoresSafeArea() | |
VStack { | |
Image("streamLogoMark") | |
.resizable() | |
.frame(width: 64, height: 32) | |
Text("Hello, **Stream**!") | |
} | |
} | |
} | |
} | |
struct duoColorSet_Previews: PreviewProvider { | |
static var previews: some View { | |
duoColorSet() | |
.preferredColorScheme(.dark) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment