Swift & iOS

Making files from your app available in the iOS Files app

Learn how and why you can make your app's Documents folder accessible via Files app in iOS. And also how to write files into the Application Support directory.

Swift & iOS

Basic anatomy of collection view compositional layout

Understanding the basic building blocks of the great compositional layout for collection views.

Swift & iOS

Porting iPhone app to iPad: My experience

Tips and approaches to use when you don't have the time to build iPad version from scratch.

Swift & iOS

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

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

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 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

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 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 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

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

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

Scan it app banner