Imagine you have a structure like: [[String, String], [String, String], [String, String],] and you need to replace a second value. How to do that?
How to reload translations strings from remote at runtime?
At some point your app may need lot of supported languages, which sooner or later will come to common problem – each translation change requires app release via […]
iOS 15: UINavigationBar background color becomes black
After updating to iOS 15, probably you (like me) noticed some strange colors in your customized UINavigationBar. To fix this you need to add some code which works […]
Quick Tip: How to dismiss all presented view controllers?
If you are quite new in Swift, sooner or later you will face such view hierarchy:
Quick tip: How to sort array of objects by given property in custom order in Swift?
Imagine this, you have a class and enum like: class UserDto { public var username: String public var userStatus: UserStatusDto } enum UserStatusDto: String { case ok = […]
Simple UNNotificationServiceExtension with Firebase Push and image display
As you probably already know, sending push notification from Firebase will not display attached image on device. This example assumes you know how to configure push notifications in […]
IBOutlet becomes nil in viewDidLoad function of your UIViewController?
This is a bit scary for all beginners. You made your pretty view in Interface Builder, attached UIViewController and trying to: let vc = new MyNewController() self.present(vc, animated: […]
Internal error when trying to open XIB in XCode 10.3
If you already upgraded XCode to newest 10.3 version, you may notice that opening XIBs created in older versions causes “Internal error” and UI elements are not visible. […]
How to get all enum values in Swift?
So you made brand new and shiny enum, and want to use it in f.e. picker? To achieve this you need to prepare array of strings which every […]