Last active
July 28, 2022 10:19
-
-
Save amosgyamfi/9e65aba102cc8f7ce895a1e10b87b7b0 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) | |
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