I have recently faced a problem where I had to efficiently look up locations that are geographically close to a specified point. As the naive approach, including computing a distance between dozens of point pairs, seem not so efficient to me — I made a little research and gave a try to Apple-provided R-tree implementation from GameKit.

This story is a quick dive into R-tree basics as well as features a short Apple-provided GKRTree usage example.

R-tree basics

R-tree is a data structure that has a wide application for indexing spatial data. The concept was first proposed by Antonin Guttman in 1984…

When developing Kotlin/Native solution one may need to run unit tests against a selected target platform to verify that the solution works correctly on all supported runtimes. Kotlin/Native already provides nice support for running tests on JVM, Android, Linux, Windows and macOS but it does not support iOS out of the box.

For a significant part of my (still relatively short) career I have been involved in framework development. The solution I was working on had to be bullet-proof and safe as it was supposed to be embedded inside any iOS application. Moreover, the whole integration had to be possibly simple and minimalistic. Building such a solution was not always a trivial thing, but for sure it was a rewarding task. To safely perform some operations like e.g. swizzling, adding or removing methods in runtime it is valuable to gather some information on the app actual configuration. …

Kotlin/Native has become a truly considerable solution for the iOS and Android apps that share pieces of common business logic. From Kotlin source code developers can generate not Android but also iOS, macOS and even WatchOS devices.

Kotlin/Native is a technology for compiling Kotlin code to native binaries, which can run without a virtual machine. It is an LLVM based backend for the Kotlin compiler and native implementation of the Kotlin standard library.

Kotlin/Native is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible, for example, embedded devices or iOS. …

Kudos to lukaszadam.com

There are many reasons one could need to execute some arbitrary code while running a build from Xcode. The most popular examples include third-party tools integrations, collecting build statistics or modifying standard build routines. In this article I am going to present how to add a simple Run Script Phase and emit log, warning and error messages from it.

Mateusz Matrejek

Senior Software Engineer @ Pegasystems

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store