Categories
iOS Development

How to use the RelativeDateTimeFormatter in Swift

Working with dates in Swift is a thing I remembered to struggle for a long time as a Junior developer. However, you should get used to objects that have date properties. E.g. you can sort stuff (e.g. see https://mic.st/blog/how-to-sort-an-array-of-objects-by-date-property/) … Read the rest

Categories
iOS Development

How to sort an array of objects by date property

You might know the very handy sort(by:) method in Swift that you can use to sort any kind of array. If not, see this as some kind of friendly introduction to you. Read carefully and I will teach you now … Read the rest

Categories
iOS Development

My first intransparent App Store Review Adventure

While publishing FlippyApp (https://mic.st/blog/portfolio/) to the App Store (https://apps.apple.com/us/app/flippylearn/id1479486387) I learnt a lot about how to deal with the intransparent review process of the Apple App Store.

The two most important:

  • The review process is very
Read the rest
Categories
iOS Development

How to easily animate updates of a tableview in Swift

Currently I work on a side project that uses a lot of UITableViews for all the different settings within the app. Whenever you change the the datasource of your tableview you need to update it. Here I want to show … Read the rest

Categories
iOS Development

Draw graphs and charts in Swift easily with CareKit

Did you ever want to use Swift to draw simple graphs and charts in your iOS app without using some 3rd party library? Also you did not want to reinvent the wheel with CoreGraphics? I thought that was not possible … Read the rest

Categories
iOS Development

Fix crashing when opening projects in XCode 11.3

Today I had some problems with a project that I wanted to continue working on today. Yesterday everything went fine but today XCode crashed everytime I tried to open it 🙈

Luckily there is a fix, that I found in … Read the rest

Categories
iOS Development

How to play sounds when Unit Tests in XCode finish with success or failure

Currently I work on a project that has a lot of tests that take some time to finish. Usually I switch to working on something else while the tests are running in the background. Sometimes I deep dive into the … Read the rest

Categories
iOS Development

Customizing your app’s navigation bar titles buttons and background

The default navigation bar you get when implementing a UINavigationController does it’s job but often you want to customize it because it just does not look so fancy.

To customize the background of your UINavigationBar you set its backgroundImage property … Read the rest

Categories
iOS Development

How to use new iOS 13 system fonts like New York

At the WWDC19 there was introduced a lot of font related cool stuff for iOS13. One great thing is the new serif system font NewYork which can be used in your apps.

To initialize a UIFont with this or any … Read the rest