Welcome to my personal site

I am primarily an iOS developer but I also create stuff with Python & Django. Feel free to reach out over at Twitter.

Series

Latest posts

LumaFusion - Awesome video-editing app for iPad

I think I have a new favorite iOS app. Editing videos with LumaFusion is great experience.

Software

My post about multi-user support in tvOS 14 featured in iOS Dev Weekly

And once again I was left a bit speechless.

Notable

Implementing multi-user support in tvOS 14

Turns out it is pretty easy change to make with potential benefits for your users.

Swift & iOS

Refactoring UIAlertController: Helper class and protocol approaches

Detailed look at two possible approaches to avoid writing boiler plate code over and over.

Swift & iOS

How to approach complex programming problems

Some tips and approaches how to tackle difficult problems. Including examples from my Chill Zones app.

Swift & iOS

Useful tools: Lexi

Lexi is great little helper for working with JSON. Especially if you are dealing with complex JSON that has a lot of nesting.

Software

Chill Zones featured in MacStories Weekly

Notable

How to select random record with Django ORM

This post details how I solved displaying random banner on this very site. The solution does not have any prerequisites.

Django

My WKWebView post featured in iOS Dev Weekly

Notable

How to create new calendar using EventKit in Swift

Apart from reminders and events, EventKit framework also gives you the power to create new calendars for users. Let's see how.

Swift & iOS

Minimal example of using Diffable Data Source with Core Data

The new Diffable Data Source is totally different way to setup Table Views and Collection Views. This example will get you started.

Swift & iOS

Tips on starting developer blog

Start a dev blog is not easy. I hope these tips may help on the journey.

Meta

How to create Core Data database from multiple model files

This is useful if you want to split your app into modules but still keep and manage only single database inside the main target.

Swift & iOS

My approach to setting up Core Data stack

This post details how I set up Core Data in my projects and also explains what and why. It includes working with background context.

Swift & iOS

How to use EKEventEditViewController in SwiftUI

My finished solution to bridging this view controller for creating new events and editing existing ones to SwiftUI.

Swift & iOS

How to use EKCalendarChooser with SwiftUI

Short post showing how to bridge this controller with SwiftUI and get selected calendars.

Swift & iOS

How to implement OCR with Vision framework in iOS 13+

The basics of getting OCR up and running plus a few tips and extra stuff you may want to know.

Swift & iOS

How to automatically switch debug/production database in settings.py in Django

Since settings.py is just an ordinary Python file we can use simple `if else` block.

Django

How to display fractions in Django

Short post about rendering for example 1/4, 1/2 and other fractions in your Django template. Turns out this is not complicated if you know about important parts to combine.

Django

How to create iOS reminders in code with alarms or recurrences

Create reminders in the Reminders app from Swift code with not that much code. Let's see how.

Swift & iOS

iOS 14: Quick dive into the new UIColorWell

This looks like an ideal solution if you want to let user pick multiple colors.

Swift & iOS

How to create RSS feed with HTML content in Django

Presenting my solution which I arrived at with trial & error in hopes it could save time to someone.

Django

iOS 14: What is new for WKWebView

JavaScript sandboxing. Support for JS promises, find on page and more!

Swift & iOS

How to setup CloudKit subscription to get notified for changes

CloudKit subscription offer best way to keep data up-to-date for your user. I will show you the simplest setup to get started.

Swift & iOS

Checking out the new PHPickerViewController in iOS 14

Much better experience. No permissions required and multi-select!

Swift & iOS

First look at the new UIColorPickerViewController in iOS 14

Super easy to setup and work with but with limited customization options.

Swift & iOS

How to save event into user's calendar

In this post we will use the EventKit framework to save event into user's default calendar.

Swift & iOS

Non-SwiftUI wishlist for WWDC 2020

Better localization, replacement for NSAttributedString, improved querying with Core Data and more.

Swift & iOS

How to scan documents in under 10 lines of code

Thanks to VisionKit framework scanning documents is very easy with iOS 13 and up. In this blog post I will show you how.

Swift & iOS

How to deploy tvOS app to your Apple TV

I am writing this guide for myself and for other developers exploring tvOS in hope of saving them a lot of frustration.

tvOS

How to load events from user's calendar

In this post let's go over how to load events that user has in their system calendar.

Swift & iOS

How to create/register user account with Django Rest Framework API

My solution for account registration with DRF.

Django

How to get file size using FileManager + formatting

Turns out getting the byte size is quite quick. This post also shows how to use ByteCountFormatter to transform byte count into human-readable string.

Swift & iOS

A few AutoLayout and general UIKit tips & tricks

A collection of tips that I found very helpful when building UI and why to avoid Table View Controller.

Swift & iOS

iOS 13: launchOptions always nil? This is the reason & solution

launchOptions have moved and you find them in AppDelegate no longer.

Swift & iOS

Using WKWebView in headless mode

This is another short post about using `WKWebView`. Yet another useful use case can be to run `WKWebView` in the background, meaning user does not see it on the screen.

Swift & iOS

How to quickly remove duplicates from Array & keep order

Removing duplicates is swift in Swift thanks to the Set type. We can also leverage NSOrderedSet to not lose order of the items.

Swift & iOS

How to add badge to UIBarButtonItem

Badges on UIBarButtonItem are not natively supported but we can fix that with custom UILabel.

Swift & iOS

How to use EKCalendarChooser in Swift to let user select calendar in iOS

Leverage EventKitUI to let user select from their calendars.

Swift & iOS

How to let users send feedback using email app of their choice in iOS

Don't force your users to use Apple Mail. Offer them Outlook, Gmail or Spark.

Swift & iOS

How to create reusable UIView with .XIB file for easy design

Create cleaner project by leveraging reusable views with design done in .XIB files.

Swift & iOS

How to easily display files like PDF, documents, images and more in your app

Short guide demonstrating how to use QLPreviewController for easy file previews. It even supports ARKit models!

Swift & iOS

How to generate image previews/thumbnails of various files

Creating previews for files is breeze thanks to Quick Look framework. This quick guide will get you started.

Swift & iOS

Advanced string comparison and sorting in Swift

Going beyond standard contains() and hasPrefix() methods. Post explains locale-aware sorting and how to ignore diacritics.

Swift & iOS

Few book recommendations that will make you a better developer

I have selected a few books from many I have read and wrote up why I think these are great choices for iOS developers.

Swift & iOS

Easy way to temporarily cover whole screen of your application

Hide sensitive information when the app is visible in the app switcher or just prepare something cool for the users.

Swift & iOS

Django: How to send image file as part of response

Using Base64 might be useful in some scenarios.

Django

Django Rest Framework: How to let user add only one ForeignKey object (for example review)

My solution I decided to write up to have reference in the future.

Django

Saving files into user’s iCloud Drive using FileManager

For my app Scan it I needed a way to save files into iCloud Drive and decided to share what I learned.

Swift & iOS

How to implement swipe to delete action with custom icon

Use trash icon (or any other image) instead of the standard "Delete" text.

Swift & iOS

Django: How to let user re-order/sort table of content with drag and drop

I needed to preserver order of table elements and decided to share my solution.

Django

How to use EKEventEditViewController in Swift to let user save event to iOS calendar

Short example showcasing the usage of EKEventEditViewController to let user edit and add events to iOS calendar.

Swift & iOS

Four tips to level up your Swift

My first ever post about Swift! Unwrapping optionals in a loop, @autoclosures, cleaner range checking and easy randomness.

Swift & iOS

How to open target="_blank" links in WKWebView in iOS

Short post explaining why by default _blank links don't do anything and how to fix it with example code.

Swift & iOS