Open in app
Home
Notifications
Lists
Stories

Write
Sergey Chsherbak
Sergey Chsherbak

Home

Dec 22, 2021

UIViewController Lifecycle

UIViewController is a fundamental class in the UIKit framework. One of the most important tasks it does is managing the lifecycle of its view. In the present article let’s cover the following questions: - What are the UIViewController lifecycle methods? - When and for what each of them is used? init() …

Swift

4 min read

UIViewController Lifecycle
UIViewController Lifecycle

Dec 19, 2021

Control Transfer Statements in Swift

You have definitely used the keyword return or probably seen the keyword break. These keywords change the order in which your code gets executed. They can transfer control from one piece of code to another. But there are actually five control transfer statements in Swift. …

Swift

4 min read

Control Transfer Statements in Swift
Control Transfer Statements in Swift

Dec 17, 2021

Inout Parameter in Swift Explained

Let’s start this article with a question. How do you think will the code below compile or not? If your answer is no — then you are right. This code will not compile because all parameters passed into a function are constants. But there is a way to change…

Swift

2 min read

Inout Parameter in Swift Explained
Inout Parameter in Swift Explained

Dec 12, 2021

Swift Access Control

Have you ever thought about why do we need to declare something as private, public, or open? You have probably seen these keywords many times, but did you know what is actually behind them? Why do we need them? And what features do they bring? …

Swift

3 min read

Swift Access Control
Swift Access Control

Dec 11, 2021

Implement Tree Data Structure in Swift

You probably have already heard about the Tree data structure, or you might even have had a task in your interview where you had to implement it. This data structure is very useful and can be used to solve many programming challenges. In the present article, let’s cover the next…

Swift

4 min read

Implement Tree Data Structure in Swift
Implement Tree Data Structure in Swift

Dec 6, 2021

@AppStorage Property Wrapper Explained

Whenever we need to save some basic, not secure data, such as settings for an app, we refer to UserDefaults. However, SwiftUI comes with the @AppStorage property wrapper that allows us to read and write data with UserDefaults in a very easy and elegant way. …

Swift

1 min read

@AppStorage Property Wrapper Explained
@AppStorage Property Wrapper Explained

Dec 2, 2021

@State Property Wrapper Explained

SwiftUI uses many property wrappers, but in the present article let’s cover one particular — @State and answer the next questions: What is the @State property wrapper? When it is used? Every view in SwiftUI is a struct. We also know that structs are value types, which means that they…

Swift

2 min read

@State Property Wrapper Explained
@State Property Wrapper Explained

Nov 27, 2021

Self & Self.Type & self in Swift

You have probably already used the self keyword many times while writing code, but did you ever think what is the self? In the present article let’s cover next questions: • What is self, Self, and Self.Type? • When each of them is used? self As you probably already know, self…

Swift

2 min read

Self & Self.Type & self in Swift
Self & Self.Type & self in Swift

Mar 8, 2021

Setup Xcode project without storyboards/no storyboards

As you might know, the world of iOS development is divided by two types of developers who uses storyboards and who doesn’t. In this article we are going to learn how to setup a new project without any use of storyboards. Let’s get started. The first thing we have to…

Xcode

3 min read

Setup Xcode project without storyboards/no storyboards
Setup Xcode project without storyboards/no storyboards

Feb 13, 2021

Autoresizing UITextView Like in Messaging Apps

Have you ever tried to make a UITextView that can resize itself based on its content? …

Uitextview

4 min read

Autoresizing UITextView Like in Messaging Apps
Autoresizing UITextView Like in Messaging Apps
Sergey Chsherbak

Sergey Chsherbak

22 y.o. iOS Developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable