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 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
77Fingertips 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
3029var window: UIWindow? = FingerTipWindow (frame : UIScreen.main .bounds )
3130```
3231
3332For iOS 13+ with UISceneDelegate:
33+
3434``` swift
3535var windows: [UIWindow] = []
3636
3737func 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```
You can’t perform that action at this time.
0 commit comments