func applyOrientationSize()

in CustomUI/CustomUI/Controllers/MainViewController.swift [85:90]


    func applyOrientationSize(forLandscape: Bool) {
        let isIpad = UIDevice.current.userInterfaceIdiom == .pad
        controlsView.subviews.first!.layer.cornerRadius = (forLandscape || isIpad) ? 18 : 0
        controlsViewBottomConstraint.constant = (forLandscape || isIpad) ? 22 : 0
        controlsContentBottomConstraint.constant = (forLandscape || isIpad) ? 16 : 22
    }