Sunday, July 16, 2017

How to Make a Custom Segmented Control (iOS, Xcode 8, Swift 3)

If you watch this video and want to implement this custom segmented control then there are two changes you should make for it work better:

1. Change to sv.distribution = .fillEqually (instead of using .fillProportionally)

2. Add `updateView()` to the draw function



Some of my subscribers pointed out these better ways. Thanks!



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

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