On WWDC 2020, Apple announced a much sought-after addition to SwiftUI, namely the new SwiftUI-native
Map view. 🗺 Finally we don’t have to create messy wrappers around
MKMapView anymore. 🙌 However, there’s a catch.
“Maps only show annotation views of the same type, backed by a single collection.” — Apple’s official documentation
At first glance I found this to be a bit strange. The Map view supports three types of annotation views:
MapAnnotation. But for some reason, Apple won’t let us use these types together, although doing so is both possible and common practice with
A note to the reader: I use the self-coined term “message notification” in this article to refer to notifications that are stored in the database on the backend.
When implementing push notifications for your mobile app there are certain pitfalls you want to avoid.
There’s a thing that has been driving me nuts ever since I started programming in Xcode, and that’s the infamous project.pbxproj file.
Whenever you add, move, delete or rename a file / folder in Xcode (among other things), it will result in project.pbxproj being modified. Git, of course, recognizes this and adds it to the staging area. Now, the problem with this is that once you have enough changes in your staging area, and you want to split them up into logically segregated commits, it becomes extremely tedious because you have to manually go through the changes in the project.pbxproj…
Firestore is a new, alternative Firebase database which brings a number of benefits with it over the old Firebase database (henceforth referred to as rtdb), two of which are a more rigid structure and the possibility of querying multiple properties as opposed to just one. However, as of the current beta release, there is no built in way of mapping the documents in Firestore to custom objects in Swift. In this article, I will elaborate on a possible solution to this problem.
Firestore is a document database and as such it is organized into documents, which are contained by collections…
📱iOS Developer from Oslo, Norway