Skip to content

Commit 5d604fb

Browse files
committed
Update README to use @import for Objective-C instead
1 parent f0a02c4 commit 5d604fb

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

Example-ObjC/ViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
//
88

99
#import "ViewController.h"
10-
#import <InAppViewDebugger/InAppViewDebugger-Swift.h>
10+
11+
@import InAppViewDebugger;
1112

1213
@implementation ViewController
1314

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ github "indragiek/InAppViewDebugger" "1.0.0"
4444

4545
### Swift
4646

47-
#### From code:
48-
4947
```swift
5048
import InAppViewDebugger
5149

@@ -54,23 +52,26 @@ import InAppViewDebugger
5452
}
5553
```
5654

57-
#### From `lldb`:
58-
59-
```
60-
(lldb) e -lswift -- import InAppViewDebugger
61-
(lldb) e -lswift -- InAppViewDebugger.present()
62-
```
63-
6455
### Objective-C
6556

6657
```objc
67-
#import <InAppViewDebugger/InAppViewDebugger-Swift.h>
58+
@import InAppViewDebugger;
59+
60+
// alternative import (they're the same):
61+
// #import <InAppViewDebugger/InAppViewDebugger-Swift.h>
6862

6963
- (IBAction)showViewDebugger:(id)sender {
7064
[InAppViewDebugger present];
7165
}
7266
```
7367

68+
### `lldb`
69+
70+
```
71+
(lldb) expr -lswift -- import InAppViewDebugger
72+
(lldb) expr -lswift -- InAppViewDebugger.present()
73+
```
74+
7475
The `present` function shows the UI hierarchy for your application's key window, presented over the top view controller of the window's root view controller. There are several other methods available on `InAppViewDebugger` for presenting a view debugger for a given window, view, or view controller.
7576

7677
## Controls

0 commit comments

Comments
 (0)