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 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: […]
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 […]
Using Swift with Objective-C in framework project
I’m pretty sure there are lot of tutorials about mixing ObjectiveC with Swift in both ways. But most of them are covering only normal projects. If you have […]
OpenGL2: Very basic Swift3 example
As you guys probably notices, it was a while since last post here. I was quite busy with lot of projects, so did not had time for blogging.
RxSwift: How to stream values with dynamic delay
Imagine such case – you have list of messages, each one with timestamp. And you want to show them in the same way they arrived, with same timings. […]
How to use JSContext from JavaScriptCore to create two way communication with web page
What is “JavaScriptCore”? Well, it is a name for internal Safari javascript engine. Is it useful? For most of us it is not, but if you thinking about […]