iOS Unit Testing: A Surprisingly Simple Way to Write Better Apps
Jan 24, 2021, 1:13 AM
Question – What do: Alamofire (35.1k GitHub stars ⭐) RxSwift (19.5k ⭐) Kingfisher (18k ⭐) SwiftLint (14.3k ⭐) SnapKit(17.2k ⭐) SDWebImage(23.3k ⭐) Realm(14.3k ⭐) …all have in common? They are all free open-sourced libraries, they are...
How to Start With Unit Testing When You Don’t Have Time for Unit Tests?
Aug 12, 2020, 12:00 AM
“Yesterday is gone. Tomorrow has not yet come. We have only today. Let us begin.” Mother Teresa (Let’s start the article about unit testing with a quote from Mother Teresa. Said no one ever.) Most people think that unit testing...
Free eBook! 50 iOS Interview Questions
Mar 30, 2020, 1:00 AM
Do you want to be better prepared next time you have an interview? Interviews can be one of the most stressful events in our life. I have prepared this small eBook: To help you better prepare for all the questions you might get asked...
Search Bar in SwiftUI – Discover Pure SwiftUI Approach
Mar 16, 2020, 2:00 AM
Hi, in the last post you have seen how to use UISearchBar control inside SwiftUI to display search bar. In this post, you are going to see how to implement search bar using only SwiftUI controls. Search Bar in SwiftUI – 2nd attempt...
SearchBar in SwiftUI Using UISearchBar
Mar 9, 2020, 2:00 AM
SearchBar in SwiftUI is one of the most common functionalities you need to have when displaying data in the list view. As of writing this, SwiftUI doesn’t have a built-in way to support this. In this post, you are going to see how to use...
3 Types of Dependency Injection in Swift
Mar 2, 2020, 12:00 AM
In this post, you are going to learn more about dependency injection in Swift. What is dependency injection, anyway? Dependency injection is nothing more than injecting dependencies into an object, instead of tasking the object with the...
Remove Duplicated If Statements – Refactoring
Feb 23, 2020, 11:00 PM
This post is a part of Refactoring in Swift series. Hello, in this post you are going to see how to remove duplicated if statements. Problem You have several if statements that return the same result. Solution Combine them into a single...
Replace Nested Ifs with Guard Clause – Refactoring
Feb 17, 2020, 1:00 PM
This post is a part of Refactoring in Swift series. Hello, in this post you are going to see how to replace nested ifs with guard clauses. Problem Nested conditionals, for example, if within an if statement, add complexity to the method....
Introduce Explaining Variable Refactoring
Feb 10, 2020, 1:00 PM
This post is a part of Refactoring in Swift series. Hello, in this post you are going to learn more about Introduce Explaining Variable refactoring. Problem You have a complicated expression. Solution Put the result of the expression, or...
Remove Control Flag Refactoring
Feb 3, 2020, 1:00 PM
This post is a part of Refactoring in Swift series. Hello, in this post you are going to learn more about Remove Control Flag refactoring. Problem You have a variable that is acting as a control flag for some expressions. Solution Use...
Split Temporary Variable Refactoring
Jan 27, 2020, 1:00 PM
Hello, in this post you are going to learn more about Split Temporary Variable refactoring. Problem You store a result of an operation to a temporary variable more than once. More than once is the key here. Solution How to do this...
Inline Temporary Variable Refactoring
Jan 20, 2020, 1:00 PM
This post is a part of Refactoring in Swift series. Hello, in this post you are going to learn more about Inline Temporary Variable refactoring. Problem You have a temporary variable that is assigned to once with a simple expression....