Swift is Apple’s new programming language for developing applications for iOS, watchOS, tvOS and Mac OS. In this Swift tutorial you will learn all its basics.
Continue readingClosures are often used as function arguments. But sometimes there are situations where local closures can be very handy.
Continue readingSwift is still a very young technology, but there are already a lot of myths about Swift.
Continue readingIn object-oriented programming, type casting is used to treat an object as one of another type. In this article we will discuss how this works in Swift.
Continue readingSwift is all about safety. With the introduction of the automatic API availability checking in Swift 2.0, there is another great new feature that makes your apps more stable.
Continue readingAt the moment Apple has two major programming languages. So should you use Objective-C or Swift?
Continue readingObjective-C lacks one very important feature: Generics. Luckily, Swift has this feature. Generics enable you to declare functions, classes and structs that work with different types.
Continue readingIn Swift there are two types of values: constants and variables. This is very common for a programming language – however, there is one important difference in using constants in Swift.
Continue readingEncapsulation is one of the most important object-oriented design principles: It hides the internal states and functionality of objects. You can achieve this by using the access control features of
Continue readingAn enum is a data type that has a finite set of possible values. In this post we discuss will the most important aspects of enums in Swift.
Continue readingEvery variable can be declared as a so-called optional in Swift. As an optional, the variable is allowed to become nil what is equivalent to the absence of a value.
Continue readingSwift 2.0 has a new way of error handling. It uses a do-try-catch syntax, which is the replacement for NSError . In this post we will discuss how to use this new syntax.
Continue reading