Avoid Tab Bar Overlap
If your host app uses a UITabBarController, the StreamLayer Launch Button can overlap the tab bar. To prevent overlap, add a bottom offset to the overlay view container’s constraints (for example, 84 points). See PresentStreamSceneViewController.swift for the relevant function here.
Replace the following code in the demo app:
// Portrait
overlayVC.view.snp.remakeConstraints { [weak view] make in
guard let videoPlayer = videoPlayer else { return }
$0.top.equalTo(videoPlayer.view.snp.bottom).offset(-40)
$0.left.right.bottom.equalTo(0)
}with this updated version that adds a bottom offset:
// Portrait (with bottom offset)
overlayVC.view.snp.remakeConstraints { [weak view] make in
guard let videoPlayer = videoPlayer else { return }
$0.top.equalTo(videoPlayer.view.snp.bottom).offset(-40)
$0.left.right.equalToSuperview()
$0.bottom.equalToSuperview().offset(-84)
}Portrait
Default position of the StreamLayer Launch Button:

Launch Button Collapsed

Launch Button Exposed
Landscape
Default position of the StreamLayer Launch Button:

Launch Button Collapsed

Launch Button Exposed
Updated 6 months ago
