Tool to debug layouts directly on iOS devices: inspect layers in 3D and debug each visible view attributes
DEBUGbuild configuration, so it won't affect any other kind of the app builds (i.e.
RELEASE)
To run the example project, clone the repo, and run
pod installfrom the Example directory first.
LayoutInspectoris available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LayoutInspector'
Layout inspection could be trigger: - manually whenever you want (on some actions, events, notifications etc)
swift LayoutInspector.shared.showLayout()
automatically when taking app screenshot
swift LayoutInspector.shared.setAutoTrigger(.screenshot)
automatically on device shaking
swift LayoutInspector.shared.setAutoTrigger(.shake)
Swift ```swift import LayoutInspector
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { LayoutInspector.shared.setAutoTrigger(.screenshot) return true }
}
**Objective-C** ```obj-c @import LayoutInspector;@implementation AppDelegate
@end
| Version | Description | | ------------- | ------------- | |
1.2.1| 📝 Font attribute added to inspection pane| |
1.2.0| 👋 Shake gesture added to trigger layout inspection
1.1.0| 🏎️ Swift 5.0 and ABI stability in da house
1.0.0| 🎉 Release 1.0
0.2.0| Pre-release: Objective-C compatibility 👦 | |
0.1.1| Pre-release: fixed Lint warnings 👶 | |
0.1.0| Pre-release: initial version 🎬 |
Ihor Savynskyi\ ✉️ [email protected]\ 🌎 Twitter, LinkedIn
LayoutInspector is available under the MIT license. See the LICENSE file for more info.