Sergey ChsherbakHow to Better Use ButtonStyle in SwiftUISwiftUI provides a powerful way to create and customise views using styling protocols. These protocols allow us to define the look and feel…Feb 7, 2023Feb 7, 2023
Sergey ChsherbakNil-coalescing operatorThe use of optionals in Swift is one of its most powerful features, as it guarantees the safety of your program. However, optionals can…Jan 28, 20231Jan 28, 20231
Sergey ChsherbakUIViewController LifecycleUIViewController is a fundamental class in the UIKit framework. One of the most important tasks it does is managing the lifecycle of its…Dec 22, 2021Dec 22, 2021
Sergey ChsherbakControl Transfer Statements in SwiftYou have definitely used the keyword return or probably seen the keyword break. These keywords change the order in which your code gets…Dec 19, 2021Dec 19, 2021
Sergey ChsherbakInout Parameter in Swift ExplainedLet’s start this article with a question. How do you think will the code below compile or not?Dec 17, 20211Dec 17, 20211
Sergey ChsherbakSwift Access ControlHave you ever thought about why do we need to declare something as private, public, or open? You have probably seen these keywords many…Dec 12, 2021Dec 12, 2021
Sergey ChsherbakImplement Tree Data Structure in SwiftYou probably have already heard about the Tree data structure, or you might even have had a task in your interview where you had to…Dec 11, 2021Dec 11, 2021
Sergey Chsherbak@AppStorage Property Wrapper ExplainedWhenever we need to save some basic, not secure data, such as settings for an app, we refer to UserDefaults. However, SwiftUI comes with…Dec 6, 2021Dec 6, 2021
Sergey Chsherbak@State Property Wrapper ExplainedSwiftUI uses many property wrappers, but in the present article let’s cover one particular — @State and answer the next questions:Dec 2, 2021Dec 2, 2021
Sergey ChsherbakSelf & Self.Type & self in SwiftYou have probably already used the self keyword many times while writing code, but did you ever think what is the self? In the present…Nov 27, 2021Nov 27, 2021