© 2023 Hashnode
#swift
This post demos how you can use .searchable modifiers to create a search bar for your List in SwiftUI. Let’s create a list of Person object, show the name and age in a list view, and then make the lis…
In this guide, you will learn about For Loop in Swift. We will see many examples of how to use for-loop over collections and ranges. Looping means repeating an action over and over again. In Swift, th…
Tightly coupled code can pose challenges for developers, causing difficulties in making changes and scaling applications. When this type of code is discovered later in a project's development, it can …
It's that time of the year again~ yes, the beginning of the year! In work scope, I'm keeping track of my tickets like this: ## 23.52: 18-29 Dec List of tickets done ## 23.50: 4-15 Dec List of tickets …
In this blog post, I'll show what detection methods exist and share code examples. But more importantly, I'll discuss the motivation for jailbreak detection, share related implementation, and present …
When working with rotating view animations or 2d/3d games, you would have to eventually deal with degrees and radians at some point. Even though, most people have a better understanding of degrees ove…
This tutorial assumes that you know the concept of an Array in Swift. Dictionaries are nothing other than the advanced layer of an Array! If you want to store information about students going to the s…
import Combine extension Publisher { func someFunction<T>() -> AnyPublisher<T, Error> { // some internal code eraseToAnyPublisher() // COMPILE ERROR HERE // return the correct thing } } So, if you comment …
Ahhhh ok. So, it's weird. The two types are the same! Why is the compiler angry? If you ever see this, it's because there are two DIFFERENT generics. So the compiler doesn't know if T really == T. final class SomeClass<T> { func someFu…
In this blog today I will demonstrate which ways I usually acquire theoretical knowledge and how I put them into practice daily, which are the sources of this information and much more: Without further ado, here we go: First of all, I wou…