Connect with us

Media

SwiftUI: Packaging Views

Learn how to extract your SwiftUI view into a Swift Package that you can reuse in your other apps!

In this series, I will teach you how to build reusable and customizable SwiftUI views that you can reuse across your own projects. Along the way, we’re building a reusable text input field with a floating label.

  • 00:00 Intro
  • 00:51 The sample app
  • 03:05 Creating a new local Swift Package
  • 04:41 Extracting code into the new package
  • 05:42 Cleaning up the code
  • 09:42 Reusing the view
  • 10:52 What’s next?

Advertisement

Trending