Today kicks off another new technique project where we’ll be focusing on drawing. This is an area of SwiftUI you might think you won’t need much, but nothing could be further from the truth: SwiftUI makes high-performance drawing so easy, so accessible to everyone, that you’ll find places you can use your skills in almost every app you build.
Another thing that drawing is good for – and this will become more apparent in parts two and three of this project – is help create a sense of playfulness. As you work your way through these next few days you’ll find you can create beautiful designs in only a handful of lines of code, and I lost countless hours while preparing my examples just playing around and having fun.
Don’t take my word for it – renowned Dutch impressionist Vincent Van Gogh said, “I sometimes think there is nothing so delightful as drawing.”
I think he was on to something!
Anyway, I hope you’re able to approach these next few days with an open mind. Maybe you want to follow along with the coding (I hope you do!), or maybe you just want to sit back and see what’s possible – either way, I think you’ll be impressed by how smart SwiftUI’s drawing is!
Today you have four topics to work through, in which you’ll learn about paths, shapes, insettable shapes, and more.
If you use Twitter, the button below will prepare a tweet saying you completed today, along with a celebratory graphic, the URL to this page, and the challenge hashtag. Don't worry – it won't be sent until you confirm on Twitter!
Need help? Tweet me @twostraws!
SPONSORED Let’s face it, SwiftUI previews are limited, slow, and painful. Judo takes a different approach to building visually—think Interface Builder for SwiftUI. Build your interface in a completely visual canvas, then drag and drop into your Xcode project and wire up button clicks to custom code. Download the Mac App and start your free trial today!
Link copied to your pasteboard.