File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ 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 )
4
4
5
- ### Presentation mode for your iOS app
5
+ ## Presentation mode for your iOS app
6
6
7
7
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.
8
8
@@ -16,33 +16,33 @@ If you are using storyboards, the easiest way to integrate Fingertips is to over
16
16
// AppDelegate.m
17
17
18
18
- (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;
23
23
}
24
24
```
25
25
26
-
27
26
``` swift
28
27
// AppDelegate.swift (Swift)
29
28
30
29
var window: UIWindow? = FingerTipWindow (frame : UIScreen.main .bounds )
31
30
```
32
31
33
32
For iOS 13+ with UISceneDelegate:
33
+
34
34
``` swift
35
35
var windows: [UIWindow] = []
36
36
37
37
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 }
39
39
40
- let window = FingerTipWindow (windowScene : windowScene)
40
+ let window = FingerTipWindow (windowScene : windowScene)
41
41
42
- window.rootViewController = // Your root view controller
43
- window.makeKeyAndVisible ()
42
+ window.rootViewController = // Your root view controller
43
+ window.makeKeyAndVisible ()
44
44
45
- windows.append (window)
45
+ windows.append (window)
46
46
}
47
47
48
48
```
You can’t perform that action at this time.
0 commit comments