Separate makefiles

This commit is contained in:
Peter
2019-10-08 19:38:14 +04:00
75 changed files with 1343 additions and 700 deletions

View File

@@ -389,6 +389,10 @@ public func nativeWindowHostView() -> (UIWindow & WindowHost, WindowHostView) {
hostView?.presentNative?(controller)
}
hostView.nativeController = { [weak rootViewController] in
return rootViewController
}
window.hitTestImpl = { [weak hostView] point, event in
return hostView?.hitTest?(point, event)
}

View File

@@ -211,6 +211,7 @@ public final class WindowHostView {
var present: ((ContainableController, PresentationSurfaceLevel, Bool, @escaping () -> Void) -> Void)?
var presentInGlobalOverlay: ((_ controller: ContainableController) -> Void)?
var presentNative: ((UIViewController) -> Void)?
var nativeController: (() -> UIViewController?)?
var updateSize: ((CGSize, Double) -> Void)?
var layoutSubviews: (() -> Void)?
var updateToInterfaceOrientation: ((UIInterfaceOrientation) -> Void)?
@@ -1109,7 +1110,9 @@ public class Window1 {
}
public func presentNative(_ controller: UIViewController) {
if let nativeController = self.hostView.nativeController?() {
nativeController.present(controller, animated: true, completion: nil)
}
}
private func panGestureBegan(location: CGPoint) {