Introduction
Welcome to the documentation of CBIntrospect.
Requirements
CBIntrospect requires the following:
iOS
- iOS 11.0 or later
- Xcode 10.0 or later
Installation
Using CocoaPods
CBIntrospect can be installed using CocoaPods. To install, add the following line to your Podfile and run pod install:
// Podfile
target 'YourTarget' do
pod 'CBIntrospect'
end
Manually
If you prefer not to use CocoaPods, you can also install CBIntrospect manually by:
- Adding CBIntrospect to your Xcode project as a Git submodule.
- Downloading the source code and adding it to your project manually.
Usage
Enabling CBIntrospect
To enable CBIntrospect, simply call the following method in your AppDelegate’s didFinishLaunchingWithOptions:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
CBIntrospect.shared.enable()
// Your other code...
return true
}
Using CBIntrospect
Once enabled, you can use CBIntrospect by:
- Shaking your device or simulator to present the CBIntrospect toolbox.
- Long-pressing on your app’s screen to display a context menu with various options.
API Reference
The following methods and properties are available in CBIntrospect:
Methods
enable()
: Enables CBIntrospect.disable()
: Disables CBIntrospect.
Properties
isEnabled: Bool
: Indicates whether CBIntrospect is currently enabled or disabled.
Conclusion
With CBIntrospect, you can easily add introspection capabilities to your iOS app for quick and convenient debugging. Get started by installing CBIntrospect and enabling it in your AppDelegate. Enjoy exploring and debugging your app with ease!