Merge pull request #616 from painhapp/videoLayoutConstraints
Fix Video Player Constraints issue
This commit is contained in:
commit
095881c5d5
|
@ -100,7 +100,9 @@ GEM
|
|||
|
||||
PLATFORMS
|
||||
arm64-darwin-21
|
||||
arm64-darwin-22
|
||||
x86_64-darwin-21
|
||||
x86_64-darwin-22
|
||||
|
||||
DEPENDENCIES
|
||||
arkana
|
||||
|
|
|
@ -45,7 +45,6 @@ extension MediaPreviewVideoViewController {
|
|||
playerViewController.view.widthAnchor.constraint(equalTo: view.widthAnchor),
|
||||
playerViewController.view.heightAnchor.constraint(equalTo: view.heightAnchor),
|
||||
])
|
||||
playerViewController.didMove(toParent: self)
|
||||
|
||||
if let contentOverlayView = playerViewController.contentOverlayView {
|
||||
previewImageView.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
@ -90,6 +89,12 @@ extension MediaPreviewVideoViewController {
|
|||
}
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
super.viewDidLayoutSubviews()
|
||||
|
||||
playerViewController.didMove(toParent: self)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - ShareActivityProvider
|
||||
|
|
|
@ -43,7 +43,7 @@ extension APIService.APIError: LocalizedError {
|
|||
|
||||
public var errorDescription: String? {
|
||||
switch errorReason {
|
||||
case .authenticationMissing: return "Fail to Authenticatie"
|
||||
case .authenticationMissing: return "Fail to Authenticate"
|
||||
case .badRequest: return "Bad Request"
|
||||
case .badResponse: return "Bad Response"
|
||||
case .requestThrottle: return "Request Throttled"
|
||||
|
|
Loading…
Reference in New Issue