You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: Xcode 12.4 (12D4e)
Language: Swift 5.3.2
Toaster version used: 2.3.0
When using the "Picture in Picture" function on iOS 14 or higher devices, the toast view is not in the normal position.
Error reproduction path:
Launch the video player(AVPlayer) and activate the PIP mode.
Change the device orientation to landscape mode.
Change the orientation back to portrait.
An error occurred.
When an error occurs, the toast is output in a strange position, regardless of the device's orientation portrait/landscape.
Looking at the code, let containerSize = ToastWindow.shared.frame.size in ToastView's layoutSubviews() is wrong. Originally it should be the device screen size, but it seems to be returned as the size of AVLayer of AVPictureInPictureController.
The text was updated successfully, but these errors were encountered:
Environment: Xcode 12.4 (12D4e)
Language: Swift 5.3.2
Toaster version used: 2.3.0
When using the "Picture in Picture" function on iOS 14 or higher devices, the toast view is not in the normal position.
Error reproduction path:
When an error occurs, the toast is output in a strange position, regardless of the device's orientation portrait/landscape.
Looking at the code,
let containerSize = ToastWindow.shared.frame.size
inToastView
'slayoutSubviews()
is wrong. Originally it should be the device screen size, but it seems to be returned as the size ofAVLayer
ofAVPictureInPictureController
.The text was updated successfully, but these errors were encountered: