         addSubview(moreButton)
         moreButton.snp.makeConstraints { make in
             make.size.equalTo(moreButtonSize)
-            make.bottom.equalToSuperview().inset(moreButtonBottomOffset + bottomPadding)
+            make.bottom.equalTo(safeAreaLayoutGuide.snp.bottomMargin).inset(moreButtonBottomOffset).offset(safeAreaInsets.bottom / 2)
             make.trailing.equalToSuperview().inset(marginSpacing)
         }
         

    let settingsButtonSize: CGFloat = 22
    let moreButtonBottomOffset: CGFloat = 19.5
    
    var bottomPadding: CGFloat = 0.0
    
    var slider: UISlider!
    var playPauseButton: UIButton!
    var forwardsButton: UIButton!

        self.frame.size.height = playerControlsViewHeight
        backgroundColor = .clear
        
        slider = Slider()
        slider.setThumbImage(#imageLiteral(resourceName: "oval"), for: .normal)
        slider.minimumTrackTintColor = .sea
