...if you take a look at the SwiftUI examples, you’ll see that almost appear to make no sense at all in current Swift — how the hell can a bunch of seemingly disconnected View properties result in a complete screen?
This week we will talk about another core process in SwiftUI. We will learn the procedure of laying out views. We will understand how SwiftUI calculates positions and sizes of our views and how we can change that process using layout priorities.
With the release of SwiftUI, unless you have been paying attention to Swift Evolution, you might have been caught off guard by some of the new features introduced in Swift. In this post, I will start by showing a small snippet of code using SwiftUI and explain feature by feature, from my point of view
Opaque return types is a new language feature that is introduced in Swift 5.1 by Apple. It can be used to return some value for function/method , and property without revealing the concrete type of the value to client that calls the API.
...an introduction to some new language features in Swift 5.1 that provides us with a foundation for writing SwiftUI code.