Awesome Open Source
Awesome Open Source
Sponsorship

SwiftUI Environment Overrides

Platform blog venmo

A tiny library that adds a control panel for testing how SwiftUI app adapts for different color themes, accessibility settings, and localizations.

Make your QA team happy!

Inspired by "Environment Overrides" pane in Xcode, but allows to QA the actual running app instead of the preview in Xcode.

Supported settings that you can toggle on the fly:

You can quickly take screenshots in different languages for iTunes Connect (the panel hides itself).

Attach the control panel with just one line of code:

ContentView()
    .attachEnvironmentOverrides()

Integration with Swift Package Manager:

  1. In Xcode select File ⭢ Swift Packages ⭢ Add Package Dependency...
  2. Copy-paste repository URL: https://github.com/nalexn/EnvironmentOverrides
  3. Hit Next two times
  4. Hit Finish

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (7,253
xcode (451
swiftui (202
testing-tools (186
localization (156
accessibility (155
dark-theme (146
overlay (67
qa (50

Find Open Source By Browsing 7,000 Topics Across 59 Categories