view LazyBearWatchOS Extension/Tests/ColorTest.swift @ 458:253e1216e4d2

Update binary
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Mon, 28 Jun 2021 16:29:20 +0200
parents
children
line wrap: on
line source

//
//  ColorTest.swift
//  LazyBearWatchOS Extension
//
//  Created by Dennis Concepción Martín on 28/06/2021.
//

import SwiftUI

struct ColorTest: View {
    var body: some View {
        VStack {
            Text("Hello world")
                .foregroundColor(.red)
                .font(.title)
                .fontWeight(.black)
            
            Text("Hello world")
                .foregroundColor(Color(.red))
                .font(.title)
                .fontWeight(.black)
        }
    }
}

struct ColorTest_Previews: PreviewProvider {
    static var previews: some View {
        ColorTest()
    }
}