© 2022 Hashnode
#swift
Hallo eindkandidaten, Leo hier. If you didn't read the Introduction, Part 2, Part 3, Part 4 and Part 5 I would strongly suggest doing so. This is the sixth and last part of my series "How to start iO…
In this blog post I'll show you how to use the new SwiftUI PhotosPicker API that was announced in the WWDC22 session What's new in the Photos picker. The new SwiftUI PhotosPicker API is available on …
In this article we'll discuss: Type Safety Type Inference Type Annotation Type Safety Swift is a type-safe programming language which means that once the data type of a variable has been determined,…
Swift is one of the programming languages for iOS, macOS, watchOS, and tvOS app development. In this article, we will discuss variables and constants in Swift. In this article we'll discuss: Constant…
How do we pass in a function into another function? Let say there is a calculator function, which will perform addition function. For example, let have a calculator function that take in 2 Int param, and output an Int. func calculator(num1:…
Problem: How to test your navigation logic in SwiftUI ? Solution: Extract navigation logic in a separate Service that handles it using UIKit SwiftUI is very powerful tool, for UI creation and animatio…
Xcode code snippets can increase your productivity by quickly producing often-needed boilerplate code. Here is an example of how to create an Error enum conforming to LocalizedError with the help of …
When trying to use a custom nib / xib in a view controller, it kept saying "ambiguous height". But if I gave it a height, then the custom nib would show up perfectly. And it was clear from the visual debugger, that it had an intrinsic size.…
Swift’ciler olarak ozellikle MVVM, Rx, Reducers gibi mimariler yaygınlaştıkça enum kullanımını artırdık. Objective C’den gelen kavimler olarak pek alışkın olmasak da Swift’teki kullanım kolaylığı ve y…
Freelancing as an engineer is great. You can set your own hours, your own rates, and work on things that you care about. But let’s talk about what you need to do to get there and start coding. Befor…