Dynamically Coloured UIButtons (and other views) with UIGraphicsImageRenderer
Extend UIColor to enable the easy generation of single colour images, and then use these to create buttons with background colours that change according to state.
Extend UIColor to enable the easy generation of single colour images, and then use these to create buttons with background colours that change according to state.
It’s easy to move back to the previous view controller in the navigation controller’s stack. Moving back more than one is trickier. Doing it elegantly even more so. This post covers how I finally came up with an elegant, generic solution to this problem.
A source of common iOS bugs (believe me, I know!) is that a view controllers .viewWillAppear can’t always be relied upon to update an app’s UI. When an app is returned from the background this method isn’t invoked as in… Read More »viewWillAppear() doesn’t fire when returning from the background
Gradient fills can add a life to any UI when used tastefully, and they are exceptionally easy to implement. Here we will fill a view with a simple gradient fill, and then change it to apply the gradient to just the view’s text.
A quick guide on implementing TableView row swipe actions using the newer UISwipeActionsConfiguration rather than UITableViewRowAction arrays.