Skip to content

kovs705/PreviewDebugger

Repository files navigation

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

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<Bool> = .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

About

Preview helper for different localizations, color chemes and text sizes (SwiftUI)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages