프로젝트
GitHub에서 보기
isavynskyi/LayoutInspector
소개
iOS 기기에서 직접 레이아웃을 디버깅하는 도구입니다. 레이어를 3D로 검사하고 각 표시 뷰의 속성을 디버깅할 수 있습니다.
웹 및 앱 개발What you can do
- Inspect layouts directly on iOS devices
- Inspection could be triggered only if app is running under DEBUG build configuration, so it won't affect any other kind of the app builds (i.e. RELEASE)
- Objective-C compatible
- Works on all devices with iOS 11.0+
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalIntroduction
Features
- Inspect layouts directly on iOS devices
- Inspection could be triggered only if app is running under
DEBUGbuild configuration, so it won't affect any other kind of the app builds (i.e.RELEASE) - Objective-C compatible
- Works on all devices with iOS 11.0+
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
- iOS 11.0 and higher
- Xcode 10.3 and higher
- Swift 5.0 and higher
Installation
LayoutInspector is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'LayoutInspector'
Usage
Layout inspection could be trigger:
- manually whenever you want (on some actions, events, notifications etc)
LayoutInspector.shared.showLayout()
- automatically when taking app screenshot
LayoutInspector.shared.setAutoTrigger(.screenshot)
- automatically on device shaking
LayoutInspector.shared.setAutoTrigger(.shake)
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
@import LayoutInspector;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[LayoutInspector.shared setAutoTrigger:AutoTriggerScreenshot];
return YES;
}
@end
Changelog
| Version | Description |
|---|---|
1.2.1 |
📝 Font attribute added to inspection pane |
1.2.0 |
👋 Shake gesture added to trigger layout inspection 🧰 CI configuration upgrade |
1.1.0 |
🏎️ Swift 5.0 and ABI stability in da house ✈️ New build system activated 🔌 Dropped iOS 10 support |
1.0.0 |
🎉 Release 1.0 👮 Test coverage added |
0.2.0 |
Pre-release: Objective-C compatibility 👦 |
0.1.1 |
Pre-release: fixed Lint warnings 👶 |
0.1.0 |
Pre-release: initial version 🎬 |
Author
Ihor Savynskyi
✉️ [email protected]
🌎 Twitter, LinkedIn
License
LayoutInspector is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…
