Skip to content

Commit 8283490

Browse files
committed
Fix tabs, headers and blank lines in README
1 parent a681919 commit 8283490

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmapbox%2FFingertips.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmapbox%2FFingertips?ref=badge_shield)
44

5-
### Presentation mode for your iOS app
5+
## Presentation mode for your iOS app
66

77
Fingertips is a small library (one class) meant for presentations from iOS devices that shows all touches and gestures so that the audience can see them.
88

@@ -16,33 +16,33 @@ If you are using storyboards, the easiest way to integrate Fingertips is to over
1616
// AppDelegate.m
1717

1818
- (UIWindow *)window {
19-
if (!_window) {
20-
_window = [[MBFingerTipWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
21-
}
22-
return _window;
19+
if (!_window) {
20+
_window = [[MBFingerTipWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
21+
}
22+
return _window;
2323
}
2424
```
2525

26-
2726
```swift
2827
// AppDelegate.swift (Swift)
2928

3029
var window: UIWindow? = FingerTipWindow(frame: UIScreen.main.bounds)
3130
```
3231

3332
For iOS 13+ with UISceneDelegate:
33+
3434
```swift
3535
var windows: [UIWindow] = []
3636

3737
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
38-
guard let windowScene = scene as? UIWindowScene else { return }
38+
guard let windowScene = scene as? UIWindowScene else { return }
3939

40-
let window = FingerTipWindow(windowScene: windowScene)
40+
let window = FingerTipWindow(windowScene: windowScene)
4141

42-
window.rootViewController = // Your root view controller
43-
window.makeKeyAndVisible()
42+
window.rootViewController = // Your root view controller
43+
window.makeKeyAndVisible()
4444

45-
windows.append(window)
45+
windows.append(window)
4646
}
4747

4848
```

0 commit comments

Comments
 (0)