Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Performance Monitor

Swift VersioniOS VersionmacOS Version

Preview

Dark PreviewLight Preview

Usage

import PerformanceMonitor
// add it somewhere inside your root most SwiftUI View.
@StateisPresented:Bool=falsevarbody:someView{NavigationStack{...}.performanceMonitor(
isPresented: $isPresented,
shakeGestureTogglesPresentation:true,
sizeClass:.compact
)}
// if you want to toggle it's presentation via button for example
PerformanceMonitor.shared.togglePresentation()

Or just shake your iOS device from side to side, if you didn't pass false to shakeGestureTogglesPresentation.

Installation

dependencies:[.package(url:"https://github.com/IgorMuzyka/PerformanceMonitor",.upToNextMajor(from:"1.0.0")),]

Acknowledgements

This project was heavily inspired by this GDPerformanceView-Swift.

About

Swift PerformanceMonitor for iOS & macOS apps, track CPU, RAM, FPS & Thermal State with ease

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages