Hi, I'm Sarun — an iOS developer.

On this blog I will share my working processes, tip and tricks, tools,
and problems I found along the way.

Latest Post

Responsive design with UIStackView

Learn how UIStackView can help to make your UI adapt to size change.

Latest Tip

How to change a back button image

Learn how to change a UINavigationBar back button indicator.

Recent Posts


More posts can be found in the archive.

Different ways to check for String suffix in Swift

Learn how to get a suffix from a Swift string.

Decode an array with a corrupted element

When working with an unstable, legacy, or third party API, you might get a malformed object in an array. Learn how to decode a JSON array with corrupted data in Codable safely.

How to set cornerRadius for only some corners

Learn to round specific corners, e.g., top-left and top-right.

How to set status bar style

Learn different ways to control the status bar style.

Recent Tips


More tips can be found in the tips section.

Match a view's shadow to the Sketch shadow

Learn how to set shadow spread and blur from a Sketch design.

How to compare two app version strings in Swift

Learn how to check your app version strings are higher or lower.

How to split a string into an array of substrings in Swift

Learn different ways to split a string into an array of substrings.

How to make multi-line text in UIButton

The default appearance of UIButton is a single line text, but it also supports a multi-line text with some minor tweak.

Projects