XLActionController icon indicating copy to clipboard operation
XLActionController copied to clipboard

Periscope add safearea subview

Open boboxiaodd opened this issue 4 years ago • 0 comments

i use these code:

let bottomPadding = UIApplication.shared.keyWindow!.safeAreaInsets.bottom
        if  bottomPadding > 0 {
            print("\(actionController.collectionView.bounds.height) \(UIScreen.main.bounds.height) \(bottomPadding)")
            let bottomView = UIView(frame: CGRect(x: 0.0,
                                                  y: actionController.collectionView.bounds.height - bottomPadding - 5.0,
                                                  width: UIScreen.main.bounds.width,
                                                  height: bottomPadding + 5.0))
            bottomView.backgroundColor = .white
            actionController.collectionView.backgroundView?.addSubview(bottomView)
        }

boboxiaodd avatar Nov 08 '19 13:11 boboxiaodd