File tree Expand file tree Collapse file tree 7 files changed +59
-4
lines changed
Expand file tree Collapse file tree 7 files changed +59
-4
lines changed Original file line number Diff line number Diff line change 11# @nativescript/debug-ios
22
3- Advanced iOS debugging made possible via [ Flex ] ( https://github.com/FLEXTool/FLEX ) .
3+ Advanced iOS debugging made possible via [ DebugSwift ] ( https://github.com/DebugSwift/DebugSwift ) .
44
55``` cli
66npm install @nativescript/debug-ios -D
@@ -14,6 +14,16 @@ import { NativeScriptDebugIOS } from '@nativescript/debug-ios';
1414NativeScriptDebugIOS .show ();
1515```
1616
17+ ## API
18+
19+ ### ` NativeScriptDebugIOS.show() `
20+
21+ Shows the DebugSwift debugging UI.
22+
23+ ### ` NativeScriptDebugIOS.toggle() `
24+
25+ Toggles the visibility of the DebugSwift debugging UI.
26+
1727## License
1828
1929Apache License Version 2.0
Original file line number Diff line number Diff line change 11export declare class NativeScriptDebugIOS {
2+ /**
3+ * Shows the DebugSwift view. You can call this method from anywhere in your app, and it will be displayed on top of all other views.
4+ */
25 static show ( ) : void ;
6+
7+ /**
8+ * Toggles the DebugSwift view. This could be used to hook up a Shake to Toggle feature in your app, allowing you to show or hide the debug view with a shake gesture.
9+ */
10+ static toggle ( ) : void ;
311}
Original file line number Diff line number Diff line change 1- declare var FLEXManager ;
1+ declare var DebugTools : any ;
22export class NativeScriptDebugIOS {
33 static show ( ) {
4- FLEXManager . sharedManager . showExplorer ( ) ;
4+ DebugTools . show ( ) ;
5+ }
6+
7+ static toggle ( ) {
8+ DebugTools . toggle ( ) ;
59 }
610}
Original file line number Diff line number Diff line change 1+ import { NativeScriptConfig } from '@nativescript/core' ;
2+
3+ export default {
4+ ios : {
5+ SPMPackages : [
6+ {
7+ name : 'DebugSwift' ,
8+ libs : [ 'DebugSwift' ] ,
9+ version : '1.14.0' ,
10+ repositoryURL : 'https://github.com/DebugSwift/DebugSwift.git' ,
11+ } ,
12+ ] ,
13+ } ,
14+ } as NativeScriptConfig ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import DebugSwift
2+ import Foundation
3+
4+ @objcMembers
5+ open class DebugTools : NSObject {
6+ static let shared = DebugSwift ( )
7+ @objc public static func show( ) {
8+ DispatchQueue . main. async {
9+ shared. setup ( )
10+ shared. show ( )
11+ }
12+ }
13+
14+ @objc public static func toggle( ) {
15+ DispatchQueue . main. async {
16+ shared. toggle ( )
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 1414 "assets" : [
1515 " packages/debug-ios/*.md" ,
1616 " packages/debug-ios/index.d.ts" ,
17+ " packages/debug-ios/nativescript.config.ts" ,
1718 " LICENSE" ,
1819 {
1920 "glob" : " **/*" ,
You can’t perform that action at this time.
0 commit comments