SwiftUI is fun.
Personally, I really enjoy building complex and beautiful views with Apple’s new declarative UI framework.
But before you start building your own custom views, it’s a good idea to get used to the things that SwiftUI already provides you with. Knowledge of these tools and views will speed up your development and help you tremendously when it comes to creating complex user interfaces.
This article will cover the built-in SwiftUI views that Apple has already shipped. …
With the release of SwiftUI, Apple hasn’t just provided us with a new beautiful and lightweight API to create user interfaces but also has introduced Xcode Previews.
We can now have our view code and its visual presentation side by side. Both sides are synced, and changes on either side will result in an update on the other.
Obviously, the biggest benefit of Xcode Previews is that we don’t have to rebuild our project every single time. Before Previews were introduced we had to start the simulator over and over again, even for the smallest changes.
A typical scenario for…
In my opinion, Swift is a beginner-friendly programming language.
Just think about a few things we have/don’t have in Swift:
All programming languages are unique. They differ at least in some respect from all their peers.
Swift, for example, has optionals, typealiases, and opaque return types.
However, there are some basic building blocks that nearly every language uses. Conditionals allow you to run a certain part of your code only if a condition evaluates to true. Most languages use if-clauses to realize this conditional logic.
But conditionals are not the only basic building block that the majority of programming languages utilize. We have classes, objects, functions, variables, constants, access control, and many more.
We developers often want to learn new…
As software developers, we not only love to build applications, but we also love to find and use the best tools available in order to do so.
As iOS developers, we are very lucky. With Swift, we have a modern programming language in our tool belt. Additionally, Apple released a brand new, modern, and declarative UI framework in 2018 called SwiftUI.
That means we are well prepared for the future with the instruments we have.
However, we also love to work efficiently with the technologies we have. …
SwiftUI was introduced at WWDC 2018 and has been supported by iOS since version 13.
Usually, two years are enough for us, the iOS developer community, to start using a feature in production code. However, for really big changes, like moving from Objective-C to Swift or now from UIKit to SwiftUI, a little more analysis is required.
Here are 6 cons and 6 pros that will help you make a profound decision for your next or current iOS project.
Swift is a beautiful language that was carefully designed and has greatly evolved since it was announced back in 2014. When you compare Swift to more traditional programming languages you can easily find elements they have in common but they are done in a specific way. A more Swifty-way.
Today, I want to cover one of those basic topics, that is well-known from other programming languages, but still has its own, unique implementation in Swift. Let’s get started with conditionals in Swift.
That’s an all-time classic when it comes to programming. …
Becoming a good software developer is hard.
It takes years of dedicated learning to really get a grasp on all the paradigms that you need to know about. You have to dive deep into your programming language to fully understand how certain features work and get ahead of the game. In addition to that, there are design patterns, tools, algorithms, etc., that we should have working experience with.
Really, it is hard to become an expert in software development.
Even worse, it’s not like you are done after the initial learning phase. We are in a fast-paced environment where new…
Swift is a statically typed programming language which means that the compiler needs to be able to figure out the type of each variable, constant, or property at compile time. However, thanks to Swift’s type inference, it is not always necessary to explicitly specify the type.
Today, I want to show you how type inference works and how it does help you to keep your code more lightweight.
I like to have concrete examples when learning new things. So let’s compare a statically typed with a loosely typed language. …
I’ve been there many times. I’ve seen it even more often when working with companies as a contractor. The code quality gets reduced or delayed because of the release schedule, a trade show, or something similar. Believe me, never go that way! Today, I want to show you why you shouldn’t and how to avoid this dilemma.
Let’s start with my most recent encounter with this problem.
In one of my recent projects, I was working as a frontend developer for a team that consists of 7. It was my first frontend development project and my experience in Angular was…
iOS developer from Germany who works as a contractor. Learning new things daily. Teaching Swift, iOS, macOS, watchOS, iPadOS, and tvOS programming.