https://github.com/kovs705/previewdebugger
Preview helper for different localizations, color chemes and text sizes (SwiftUI)
https://github.com/kovs705/previewdebugger
ios swftui
Last synced: 12 months ago
JSON representation
Preview helper for different localizations, color chemes and text sizes (SwiftUI)
- Host: GitHub
- URL: https://github.com/kovs705/previewdebugger
- Owner: kovs705
- Created: 2024-04-27T11:59:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-27T00:37:05.000Z (about 1 year ago)
- Last Synced: 2025-07-27T03:40:57.812Z (about 1 year ago)
- Topics: ios, swftui
- Language: Swift
- Homepage:
- Size: 228 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Preview debugger
Library for debugging views in SwiftUI environment. Implement easily in previews or app directly, using connectDebugger method on your view.
Compatible with iOS 15.0 and later
## Features
There are features like:
- Change from `Light` to `Dark` color cheme in one click
- Change `font size` dynamically using simple slider
- Switch between left-to-right and right-to-left `layout direction`
- Turn on `accessibility` to make sure everyone could use your app
## Instalation
- Add package dependency through Xcode using SPM
- Use `main` branch for the latest features
## Usage
- Use extension View `connectDebugger(isVisible: Binding = .constant(true)` method on your parent view to see the instrument on screen
- Best to use inside #Preview canvas environment!
## Requirements
- SwiftUI iOS 15+
- iOS & iPadOS only (MacOS in progress)
- `For taking screenshots`, app should has `NSPhotoLibraryAddUsageDescription` permission in plist file