Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nalexn/environmentoverrides
QA assistant for a SwiftUI app: change the color scheme, accessibility settings, and localization on the fly!
https://github.com/nalexn/environmentoverrides
accessibility dark-theme localization overlay qa swiftui testing-tools xcode
Last synced: 10 days ago
JSON representation
QA assistant for a SwiftUI app: change the color scheme, accessibility settings, and localization on the fly!
- Host: GitHub
- URL: https://github.com/nalexn/environmentoverrides
- Owner: nalexn
- License: mit
- Created: 2020-02-13T18:43:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T09:27:24.000Z (over 3 years ago)
- Last Synced: 2024-03-16T06:33:58.642Z (8 months ago)
- Topics: accessibility, dark-theme, localization, overlay, qa, swiftui, testing-tools, xcode
- Language: Swift
- Homepage:
- Size: 32.2 KB
- Stars: 303
- Watchers: 7
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SwiftUI Environment Overrides
![Platform](https://img.shields.io/badge/platform-iOS%20%7C%20macOS-lightgrey) [![blog](https://img.shields.io/badge/blog-github-blue)](https://nalexn.github.io/?utm_source=nalexn_github) [![venmo](https://img.shields.io/badge/%F0%9F%8D%BA-Venmo-brightgreen)](https://venmo.com/nallexn)
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:
* [Light / Dark mode](https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/dark-mode/)
* [Localization](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/Introduction/Introduction.html)
* [Dynamic Type Text Size](https://developer.apple.com/documentation/uikit/uifont/scaling_fonts_automatically)
* [Right-to-Left User Interface](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html)
* [Accessibility](https://developer.apple.com/documentation/uikit/accessibility/)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:
```swift
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**