An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          


LogOutLoud Logo

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



Swift Version


iOS


License: MIT

## 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