Beginning iOS 10 Part 1 Getting Started - Part 8: | Ray Wenderlich

It only takes a few images to turn a dull app into the talk of the town. In this episode, you'll learn about images and how to work with high resolution screens.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3760-beginning-ios-10-part-1-getting-started/lessons/8

Could you elaborate more on the insets. What exactly they are and how 14 points came about, vs like 20, etc? Thank you.

let insets = UIEdgeInsets(top: 0, left: 14, bottom: 0, right: 14)

Iā€™d also really appreciate more detail on insets please

I think 14 is the radius of semicircle in SliderTrackRight or SliderTrackLeft. By using this inset, only the rectangular part of these two images will be extended or shrinked.