Showing posts with label uicolor. Show all posts
Showing posts with label uicolor. Show all posts

Friday, June 3, 2016

Setting Colors

Find the color that you want by opening the color picker in Xcode for any property where you can select a color.
(See previous post on how to find the color picker.)

After you have your color go to the "Color Sliders" tab of the color picker (second tab) to get the red, green and blue values.

Then you plug those numbers into the UIColor constructor and divide them by 255.
 
let color = UIColor(red: 106/255, green: 126/255, blue: 123/255, alpha: 1.0)
 

(Swift 2.2)

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...