Dimitar Chakarov

Recent Posts

  • September 20, 2020

    Drop Pin in SwiftUI

    When my friend asked me to help her to translate her design into SwiftUI I thought it would be a piece of cake. It's just a bunch of circles, some text, and a custom shape in the middle.

  • May 23, 2019

    Me vs. Coffee

    From the moment the first thought about coffee appeared in my mind I knew the battle was lost. It didn't matter that it was night time. It didn't matter that I had had four cups of coffee at work already.

  • April 26, 2019

    Using Swift 5 Result Type With Alamofire 4

    If you are anything like me the second thing after downloading Xcode 10.2 for you would be to try out the new Result type. For me that meant changing this:

  • October 14, 2018

    MacBook Keyboard Setup: The Mysterious § Key

    When you start a new job in an office, you usually get a new laptop. If your job is an iOS developer, you probably get a MacBook Pro. The first few days are usually dedicated to setting up your environment, big part of which are the keyboard layout and shortcuts. My first job is to install the Bulgarian keyboard layout and to remap Cmd-Space to switch between English and Bulgarian. I realise this is too specific to me and as such probably has no value to you. A thing a bit more useful for you - the second thing I do is swap the two shortcuts for screenshots. That means Shift-Cmd-4 to save the screenshot of the selected area into the clipboard and Ctrl-Shift-Cmd-4 to save to a file. I realised I was pasting screenshots into chats way more than I was needing them saved for later.

  • July 17, 2018

    Am I Running On A User Device?

    A common problem every iOS developer has to solve is finding out whether the app is being executed on a user device (via AppStore), a test device (via TestFlight) or a dev device (via Xcode). This is useful for deciding the level of logging, showing and hiding “admin” features, and connecting to the right backend environment.