iOS & Swift – Making Custom Rounded-Corner Progress Bar With UIView

iPhone custom slider

TOKYO (MacHouse) – About a week ago, I spotted a topic at stackoverflow where somebody wanted to know how to create a custom progress bar with a rectangle with rounded corners. And I thought to myself “Hmm… I wonder if I could do it simply by using a custom UIView class?” So I launched Xcode 8 and started writing code in Swift (Swift 3). And voila! I guess, it’s not that bad. (See Screenshot 1.) Continue reading

iOS & Swift – Making Custom Slider With UIView

iPhone custom slider

TOKYO (MacHouse) – It’s been 7 months since I started developing software in Swift. I didn’t quite like Swift at the beginning because it’s totally different from Objective-C especially in the way it defines variables without data types. Well, I have a changed heart. I love Swift.

Anyway, one thing that I don’t like about iOS is its ugly UISlider. The touch part is a big circle, and it comes with a very thin, blue, horizontal line. Yuck! It’s ugly. So I’ve decided to make my own custom slider.   Continue reading