Swift is a powerful programming language that was released at the WWDC 2014 as a replacement for Objective-C. But with many existing apps written in Objective-C still out there, knowing or at least having a basic understanding of Objective-C can be useful.
This post serves as a quick reference on Objective-C for Swift Developers who want to learn or look up Objective-C specifics.
Swift
For defining variables, Swift offers the let keyword for constants and the var keyword for variables. Swift offers type inference and optional data types.
let name = "Swifty" // declaring and assigning a constantvar age…
I recently got into the position of leading the technical interviews when my client was searching for a new senior iOS developer.
It’s a challenging task to evaluate the skills and knowledge of another developer. In this post, I share my results of the most useful iOS and Swift questions and answers with you. I categorised the questions into different topics:
Recently, I had to solve the following task at work.
The server sends an integer value between 0
and 127
that represents the state of a weekdays selection. When the server sends a 0
, no checkbox should be selected. For a 127
, all check boxes should be selected. The numbers in between represent all the other states. The task was to evaluate this value to be able to preselect the appropriate checkboxes.
It was really exciting to hear about Apples new framework called Combine at WWDC 2019. Finally, we have a native way to write functional reactive code and to build apps in a declarative way.
This post provides an overview on the Combine concepts and terms to get you started.
The main components of Combine are Publisher
, Subject
, Subscriber
and Operator
. Here is a brief summary of what they do:
Publisher
Subject
It was really exciting to hear about Apple’s new framework called SwiftUI at WWDC 2019. This article is a quick guide to get started with SwiftUI.
At first, we’ll take a look at how views in SwiftUI are created, laid out, and presented. Then, we’ll examine how the state is being managed with SwiftUI. And finally, we’ll take a look at how SwiftUI and UIKit play together.
I recently got into the position of leading the technical interviews when my client was searching for a new senior iOS developer.
It’s a challenging task to evaluate the skills and knowledge of another developer. In this post, I share my results of the most useful iOS and Swift questions and answers with you. I categorised the questions into different topics:
If you are already familiar with localizing plurals in iOS and you are just looking to remember the specifics, the cheat sheet below will help you out.
If you are new to this, skip the cheat sheet for now and read the basics below.
Every time you want to localize texts like My dog ate 2 carrots
where the carrot count is dynamic, one localization string will not be enough. For example, localizing with My dog ate %i carrots
would produce My dog ate 1 carrots
when passing in 1
.
The first solution that may come to your mind could…
At the WWDC 2020, Apple introduced the new Swift logging API for iOS 14. This post summarizes how to take advantage of this new API to debug behavior in your iOS apps.
When it comes to logging messages in iOS applications, the APIs that first come to your mind might be print
or NSLog
. Or maybe you are using a third party library like CocoaLumberjack
, Willow
or SwiftyBeaver
.
However, already with iOS 10, Apple introduced a new iOS standard for logging with OSLog
, providing an efficient way to log information.
At this year’s WWDC 2020, this API became —…
I recently got into the position of leading the technical interview when my client was searching for a new senior iOS developer.
It’s a challenging task to evaluate the skills and knowledge of another developer. So in this series, I want to share my results of the most useful iOS and Swift questions and answers with you. I categorised the questions into different topics:
In a nutshell, GraphQL is an API design paradigm that describes how to ask for data. It is an alternative to the currently better-known REST approach. Originally, GraphQL was developed and open-sourced in 2015 by Facebook. Since then, it has been adopted by many companies. The reason why they are choosing GraphQL over REST is that GraphQL eliminates the inefficiencies of REST by giving clients the ability to define the exact data they need from the server.
This article will provide you with the essentials of GraphQL — especially what you need to know as an iOS developer.
For the…
Writing articles about iOS and Swift programming.