Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created July 28, 2022 11:54
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/4e32e82624e4086a8381ceb308748018 to your computer and use it in GitHub Desktop.
Save amosgyamfi/4e32e82624e4086a8381ceb308748018 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)
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