In this article, we are going to discuss how to get started with VIP Architecture in iOS. We shall begin by looking at certain theoretical backgrounds to understand the basic working and data-flow in VIP. Following which we will dive into some real code.
Topics that shall be covered are —
To begin with, you may have worked with various system architectures such as MVC, MVVM, ReactiveCocoa, or VIPER which have been “good” and did a great job until recently. These architectures…
Many of you must have seen a lazy keyword in your codebase or may have used it, but what does it mean? What does it do? Is it always safe to do things lazily? Let’s see.
Lazy allows you to do quite a few things—
A member can be declared lazy by simply adding a
lazy keyword to its signature. A
Okay! Let’s get right at it! For all of us, iOS developers, there comes a time when we encounter Final in the code. At that time we ask ourselves what does it do? Where to use it? How to use it? When not to use it? And many other questions start popping up in our heads.
Here, I will try to answer these questions, and hopefully, decode the mystery of
final by the end.
But what does this mean??? Let’s see!
Swift like most other object-oriented languages…
Access Control enables you to restrict access to parts of your code — functions, class, enumerations, and declarations from other parts of your code. Protecting the code and restricting access to various sections can be very crucial in writing a robust and separated code for your projects. Apple says —
Access control restricts access to parts of your code from code in other source files and modules. This feature enables you to hide the implementation details of your code, and to specify a preferred interface through which that code can be accessed and used.
Controlling access comes in handier, even…
Today we will try to draw custom shapes and views and try to find out more about drawings in iOS (Swift) and how that can be done through CODE.
For all the frontend developers, one of the most important parts of the development process is the implementation of User Interface. …