SwiftUI Environment

Filter by category
Filter by tag

Styling custom SwiftUI views using environment

One of my favorite features of SwiftUI is styling. I love the idea of style protocols provided by every view and sharing them using the environment. I have already covered most of the style protocols for SwiftUI provided views in my previous posts. But what about custom views? This week we will learn how to share styling using environment for our custom views.

Dec 9, 2020swiftwithmajid.com
  • Environment
  • Styling
  • View

SwiftUI and the Missing Environment Object

Using ViewModifiers to fix another major issue in SwiftUI development.

Oct 7, 2019Michael Long

Environment is one of the unique features of SwiftUI which we didn’t have before in UIKit. Today I would like to show you all the benefits of using Environment in your apps.

Jan 22, 2021mecid.github.io