A tool to debug iOS app layouts directly on devices by inspecting layers in 3D and viewing attributes.
LayoutInspector is an iOS debugging tool that enables developers to inspect and debug UI layouts directly on devices. It provides 3D visualization of view layers and detailed attribute inspection for each visible element, helping identify layout issues during app development. The tool activates only in DEBUG builds to avoid impacting production releases.
iOS developers working with UIKit who need to debug complex view hierarchies, layout constraints, or visual inconsistencies in their apps, particularly those developing for iOS 11.0 and above.
Developers choose LayoutInspector because it brings powerful layout inspection capabilities directly into the app environment, eliminating the need for external debugging tools. Its conditional activation (DEBUG-only) and multiple trigger options (manual, screenshot, shake) provide flexible, non-intrusive debugging.
Tool to debug layouts directly on iOS devices: inspect layers in 3D and debug each visible view attributes
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows debugging directly on physical devices or simulators, reducing reliance on external tools like Xcode's debugger for device-specific layout issues.
Provides a 3D perspective of UI hierarchies, making it easier to visualize overlaps and layer orders, which is less intuitive in standard 2D debuggers.
Restricts functionality to DEBUG builds only, ensuring no impact on release versions and maintaining app performance in production, as emphasized in the README.
Supports manual activation, screenshot triggers, and device shake gestures, offering multiple ways to invoke inspection based on developer workflow.
Designed primarily for UIKit, so it does not integrate with SwiftUI's declarative framework, limiting its relevance for modern iOS projects adopting SwiftUI.
Requires iOS 11.0 or higher, excluding support for older iOS versions that legacy apps might still need to target, as stated in the requirements.
Installation is only through CocoaPods, with no mention of alternative methods like Swift Package Manager, which could be a barrier for some projects.