Open in app
Rudrank Riyam
472 Followers
About

Sign in

472 Followers
About
Open in app
Thanks for the article Rudrank.
1

Melissa McArthur

Rudrank Riyam

Rudrank Riyam

Jan 6, 2020·1 min read

Hi Melissa! It was an example that previously my primary color was a system color, and now I use my own custom color.

You can create an extension on Color like this —

extension Color {
static let cafeBody = Color.init(red: 111/255, green: 78/255, blue: 55/255)

And use it like this -

Text(landmark.description)
.font(.body)
.fontWeight(.medium) .foregroundColor(.cafeBody)

Written by

Rudrank Riyam

Consultation/Contract Work — contact@rudrankriyam.com

More from Rudrank Riyam

Consultation/Contract Work — contact@rudrankriyam.com

More From Medium

7 Awesome Open Source SwiftUI Projects To Inspire You

Rudrank Riyam in Better Programming

Accessibility in iOS 14 Widgets With SwiftUI

Rudrank Riyam in Better Programming

LazyVGrid and LazyHGrid Layouts in SwiftUI

Rudrank Riyam in Better Programming

Creating an Apple-like Splash Screen in SwiftUI

Rudrank Riyam in Better Programming

8 Amazing SwiftUI Libraries to Use in Your Next Project

Rudrank Riyam in Better Programming

7 Awesome Open Source SwiftUI Projects to Inspire You (Part 2)

Rudrank Riyam in Better Programming

5 Things I Wish I Knew Before My First iOS Internship at a Startup

Rudrank Riyam in Better Programming

My Experience of Escaping the Tutorial Island

Rudrank Riyam in Better Programming

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store