Tuesday, June 20, 2017

Customizing Appearance of iOS Composite Controls

An example of a "composite control" is a Search Bar.
If you want to customize one of the controls in the composite control and there is no direct property for it, then you can use the UIAppearance protocol that controls implement.

Example

 
let textfieldsInSearchBars = UITextField.appearance
    (whenContainedInInstancesOf: [UISearchBar.self])
textfieldsInSearchBars.tintColor = .lightGray
textfieldsInSearchBars.backgroundColor = .darkGray
textfieldsInSearchBars.textColor = .lightGray
 

(Swift 3)

Friday, June 16, 2017

Prototyping Apps in Xcode: Working With Icons and Sketch: Part 4

In this video you will learn how I go about finding and creating icons with Sketch and then implement them in my iOS apps. What size should icons be? What different sizes should you support? How do you change the color to match the button's tint color? I'll answer all of these questions.



Prototyping Apps in Xcode: Floating Action Button Expanding Menu: Part 3

In this video you will learn how to build an expanding menu from the floating action button that looks like Google's Material Design.



Prototyping Apps in Xcode: Creating A Floating Action Button - Part 2 (i...

Let's create a floating action button (Material Design).

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...