Skip to content

Commit

Permalink
Fix tabs, headers and blank lines in README
Browse files Browse the repository at this point in the history
  • Loading branch information
OdNairy committed May 15, 2023
1 parent a681919 commit 8283490
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![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)

### Presentation mode for your iOS app
## Presentation mode for your iOS app

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.

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

- (UIWindow *)window {
if (!_window) {
_window = [[MBFingerTipWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
}
return _window;
if (!_window) {
_window = [[MBFingerTipWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
}
return _window;
}
```


```swift
// AppDelegate.swift (Swift)

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

For iOS 13+ with UISceneDelegate:

```swift
var windows: [UIWindow] = []

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

let window = FingerTipWindow(windowScene: windowScene)
let window = FingerTipWindow(windowScene: windowScene)

window.rootViewController = // Your root view controller
window.makeKeyAndVisible()
window.rootViewController = // Your root view controller
window.makeKeyAndVisible()

windows.append(window)
windows.append(window)
}

```
Expand Down

0 comments on commit 8283490

Please sign in to comment.