Skip to content

Commit

Permalink
Bottom double tap
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Aug 3, 2023
1 parent b15d6fc commit c00d287
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blink.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4868,7 +4868,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 807;
CURRENT_PROJECT_VERSION = 809;
DEAD_CODE_STRIPPING = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -4918,7 +4918,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 807;
CURRENT_PROJECT_VERSION = 809;
DEAD_CODE_STRIPPING = NO;
DEFINES_MODULE = YES;
ENABLE_BITCODE = NO;
Expand Down
13 changes: 13 additions & 0 deletions Blink/SpaceController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class SpaceController: UIViewController {
private var _kbObserver = KBObserver()
private var _snippetsVC: SnippetsViewController? = nil
private var _blinkMenu: BlinkMenu? = nil
private var _bottomTapAreaView = UIView()


public var trackingKBFrame: CGRect? {
Expand Down Expand Up @@ -127,6 +128,11 @@ class SpaceController: UIViewController {
}
}
self.view.sendSubviewToBack(_kbTrackerView);
let windowBounds = window.bounds
_bottomTapAreaView.frame = CGRect(x: windowBounds.width * 0.5 - 250, y: windowBounds.height - 18, width: 250 * 2, height: 18)
// _bottomTapAreaView.backgroundColor = UIColor.red
self.view.bringSubviewToFront(_bottomTapAreaView);

}

private func forEachActive(block:(TermController) -> ()) {
Expand Down Expand Up @@ -234,6 +240,13 @@ class SpaceController: UIViewController {

self.view.addInteraction(_kbObserver)

self.view.addSubview(_bottomTapAreaView)

let doubleTap = UITapGestureRecognizer(target: self, action: #selector(toggleQuickActionsAction))
doubleTap.numberOfTapsRequired = 2
doubleTap.numberOfTouchesRequired = 1
_bottomTapAreaView.addGestureRecognizer(doubleTap)

NotificationCenter.default.addObserver(self, selector: #selector(_geoTrackStateChanged), name: NSNotification.Name.BLGeoTrackStateChange, object: nil)

// view.addSubview(_faceCam)
Expand Down

0 comments on commit c00d287

Please sign in to comment.