© Jayant Varma 2019
J. VarmaSwiftUI for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-5516-2_11

11. Tips and Tricks

Jayant Varma1 
(1)
Melbourne, VIC, Australia
 

In the last chapter, we had a look at accessing data from REST API. We are now at the end of our journey on beginning development with SwiftUI. We have learned all about the various UI elements and learned to wrap elements from UIKit into SwiftUI and vice versa. In this chapter, we shall look at some little tips and tricks to maximize the utilization of utilize SwiftUI in making apps.

Rendering Elements

The first tip and most important to remember that every time a @State variable is altered, the body is re-rendered. Unless we are after a Disco Ball effect, we need to be careful about ...

Get SwiftUI for Absolute Beginners: Program Controls and Views for iPhone, iPad, and Mac Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.