filmov
tv
SwiftUI Tutorial - How to create reusable components and write less code with SwiftUI - Part 6

Показать описание
🟢 LIMITED TIME OFFER - SAVE 37%
Practical iOS and macOS app development tutorials with SwiftUI in 4K
In this SwiftUI lecture, we will create reusable components with SwiftUI. With the use of these components, we will write less code later on. Without further ado, let’s jump into Xcode. The first component contains a handlebar and the Honeymoon logo.
Pay attention to the last modifier, which is the ‘fixed size’. Basically, it helps to render the text view’s dimensions. In this case, we want to make sure that the height of the text will be expanded even if the parent view is smaller than the dimension of this text view. The ‘vertical: true’ value will force the rendering engine under the hood to preserve its ideal height and not allow truncating of the text.
#SwiftUI #Xcode #iOSDevelopment
Practical iOS and macOS app development tutorials with SwiftUI in 4K
In this SwiftUI lecture, we will create reusable components with SwiftUI. With the use of these components, we will write less code later on. Without further ado, let’s jump into Xcode. The first component contains a handlebar and the Honeymoon logo.
Pay attention to the last modifier, which is the ‘fixed size’. Basically, it helps to render the text view’s dimensions. In this case, we want to make sure that the height of the text will be expanded even if the parent view is smaller than the dimension of this text view. The ‘vertical: true’ value will force the rendering engine under the hood to preserve its ideal height and not allow truncating of the text.
#SwiftUI #Xcode #iOSDevelopment