Swift 5.9 switch statement enhancementNow with Swift 5.9, we can omit the return keyword to shorten the code in every case of the switch statement:Dec 10, 2023Dec 10, 2023
Swift 5.9 if else to be the alternative of ternary operatorMost programmers prefer the ternary operator for simple comparisons to write brief code.Dec 10, 2023Dec 10, 2023
Swift 5.7 Regex and RegexBuilderApple introduced RegexBuilder with Swift 5.7. It helps us create regexes to use in operations like searching a pattern in a text. I will…Jun 25, 2022Jun 25, 2022
RxSwift Memory Leak While Passing Functions to OperatorsIn RxSwift, we should be careful while passing functions to operators which might cause a memory leak.May 15, 2022May 15, 2022
Combine FutureLet’s say we have 2 business logics and one needs the other ones’ output to process. Here in this case we can get help from Future in…May 4, 2022May 4, 2022
Combine PassthroughSubject and CurrentValueSubjectOne difference between them is CurrentValueSubject has an initial value and emits the latest value to new subscribers. I will show with an…May 3, 2022May 3, 2022
Async Await in SwiftApple introduced a new way of handling asynchronous tasks using async and await keywords. Basically, we mark the asynchronous functions…Mar 12, 2022Mar 12, 2022
SwiftUI LazyHStack vs HStackIf we want to load the content into memory when we need it, we can use LazyHStack. It is particularly useful when we have large list of…Mar 12, 2022Mar 12, 2022
SwiftUI LazyVStack vs VStackIf we want to load the content into memory when we need it, we can use LazyVStack. It is particularly useful when we have large list of…Feb 26, 20222Feb 26, 20222