Mercurial > public > lazybear
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBearWatchOS Extension/Tests/ColorTest.swift Mon Jun 28 16:29:20 2021 +0200 @@ -0,0 +1,30 @@ +// +// 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() + } +}