Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Last active July 28, 2022 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amosgyamfi/9e65aba102cc8f7ce895a1e10b87b7b0 to your computer and use it in GitHub Desktop.
Save amosgyamfi/9e65aba102cc8f7ce895a1e10b87b7b0 to your computer and use it in GitHub Desktop.
//
// 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