Categories
iOS Development

SwiftUI and “The compiler is unable to type-check this expression in reasonable time … “

Although SwiftUI did become more and more mature over the years: When it comes to error handling, SwiftUI still sometimes feels like a pain. You probably have seen the following error more than once: It reads “The compiler is Read the rest

Categories
ChatGPT iOS Development

Using ChatGPT for Swift iOS development

Lately, I also jumped onto the ChatGPT train and wanted to give it a try for the use in Swift development for the iOS platform. Here are my experiences so far using it for around 1 or two months now.… Read the rest

Categories
iOS Development

Animate UIBezierPath using CABasicAnimation

Currently, I am working on an app that features a table view with custom cells representing single items or grouped items. You can expand the group cells (to see their content) by selecting them. There are multiple ways to … Read the rest

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

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