A toolkit to make debugging iOS applications easier
DebugSwift
FeaturesApp Settings
Interface
Network Logs
Performance
Resources
Getting StartedInstallationCocoaPodsAdd the following line to your pod 'DebugSwift', :git => 'https://github.com/MaatheusGois/DebugSwift.git', :branch => 'main' Then, run: pod install Swift Package Manager (SPM)Add the following dependency to your .package(url: "https://github.com/MaatheusGois/DebugSwift.git", from: "main") Then, add Usagefunc application(
_: UIApplication,
didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
DebugSwift.setup()
DebugSwift.show()
return true
} Usage to show or hide with shake.extension UIWindow {
open override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
super.motionEnded(motion, with: event)
if motion == .motionShake {
DebugSwift.toggle()
}
}
} CustomizationNetwork ConfigurationIf you want to ignore specific URLs, use the following code: DebugSwift.Network.ignoredURLs = ["https://reqres.in/api/users/23"] If you want to capture only a specific URL, use the following code: DebugSwift.Network.onlyURLs = ["https://reqres.in/api/users/23"] Adjust the URLs in the arrays according to your needs. App Custom DataDebugSwift.App.customInfo = {
[
.init(
title: "Info 1",
infos: [
.init(title: "title 1", subtitle: "title 2")
]
)
]
} Results:ContributingContributions are welcome! If you have suggestions, improvements, or bug fixes, please submit a pull request. Let's make DebugSwift even more powerful together! LicenseDebugSwift is licensed under the MIT License - see the LICENSE file for details. ReferencesInAppViewDebugger CocoaDebug DBDebugToolkit GitHub |
---|