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.

UINavigationBar changes in iOS13

Apple brings a lot of appearance changes in iOS13 and the navigation bar is one of them.

What’s changed

In iOS13 the default appearance of the large title style navigation bar has changed from translucent to transparent.

Navigation plain diff

Nothing changes much in...

Adopting iOS Dark Mode

A Dark mode is always a thing in the developer world, people craving for everything dark, dark theme, black Macbook, space gray, midnight (green), etc. Apple first introduced dark mode in macOS Mojave, I love it and use it ever since. Now its time...

Modality changes in iOS13

What you need to know when building your app against new SDK

One behavior that changed and might break your old app once you starting adopting new iOS 13 is the modal presentation.

What changes?

So with iOS 13, default presentation for modal is now in sheet style.

Modal View

It is beautiful and packs with useful gestures...

Custom UIHostingController

In the previous “How to use SwiftUI in UIKit” post I failed to do a custom subclass of UIHostingController, today I going to show how to do it (It quite easy I don’t know why I can’t do it at that time).

The problem

When you want to use SwiftUI in...

SwiftUI's ViewModifier

A guide to creating your custom modifier

View modifier is a very important concept of SwiftUI. If you have a chance to play around with SwiftUI you might have seen one already - e.g. .background, .padding, etc.

SwiftUI already provided plenty of modifiers, but you can also create a custom...

SwiftUI changes in Xcode 11 Beta 5

New beta 5 just released iOS & iPadOS 13 Beta 5, here are some highlight changes for SwiftUI, you can check the rest here.

TabbedView is deprecated

TabbedView is now named TabView.

Text now has a default line limit of nil so that it wraps by default...

How to use SwiftUI in UIKit

Using SwiftUI as UIView and UIViewController

Previous post (How to use UIKit in SwiftUI) we explored the possibility to use UIKit in SwiftUI. Today I want to cover the other way round, using SwiftUI in UIKit project. I interest in this approach more, since all iOS projects right now are UIKit

SwiftUI changes in Xcode 11 Beta 4

iOS & iPadOS 13 Beta 4 just released today, let’s see some highlight changes for SwiftUI, you can check the rest here.

color -> foregroundColor

The color(_:) modifier for Text is renamed foregroundColor(_:).

relativeWidth/Height/Size are gone :...

Better dependency injection for Storyboards in iOS13

If you have ever used a Storyboard you know that dependency injection does not work very well with it.

Existing implementation (Pre iOS13)

The only way to set or inject something to view controller is through the func prepare(for segue: UIStoryboardSegue...

UISplitViewController in SwiftUI

The latest release of Xcode 11 Beta 3 brings some change to SwiftUI components and also bring new a new(old) layout to NavigationView, UISplitViewController.

This layout has been demonstrated at the end of Session 216 SwiftUI Essentials, but it didn...

Next page