mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-28 16:20:10 +01:00
Fix Video Player Constraints issue
This commit is contained in:
parent
c2bb14eaab
commit
d8164c2bc9
@ -100,7 +100,9 @@ GEM
|
|||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
arm64-darwin-21
|
arm64-darwin-21
|
||||||
|
arm64-darwin-22
|
||||||
x86_64-darwin-21
|
x86_64-darwin-21
|
||||||
|
x86_64-darwin-22
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
arkana
|
arkana
|
||||||
|
@ -45,7 +45,6 @@ extension MediaPreviewVideoViewController {
|
|||||||
playerViewController.view.widthAnchor.constraint(equalTo: view.widthAnchor),
|
playerViewController.view.widthAnchor.constraint(equalTo: view.widthAnchor),
|
||||||
playerViewController.view.heightAnchor.constraint(equalTo: view.heightAnchor),
|
playerViewController.view.heightAnchor.constraint(equalTo: view.heightAnchor),
|
||||||
])
|
])
|
||||||
playerViewController.didMove(toParent: self)
|
|
||||||
|
|
||||||
if let contentOverlayView = playerViewController.contentOverlayView {
|
if let contentOverlayView = playerViewController.contentOverlayView {
|
||||||
previewImageView.translatesAutoresizingMaskIntoConstraints = false
|
previewImageView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
@ -90,6 +89,12 @@ extension MediaPreviewVideoViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func viewDidLayoutSubviews() {
|
||||||
|
super.viewDidLayoutSubviews()
|
||||||
|
|
||||||
|
playerViewController.didMove(toParent: self)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - ShareActivityProvider
|
// MARK: - ShareActivityProvider
|
||||||
|
@ -43,7 +43,7 @@ extension APIService.APIError: LocalizedError {
|
|||||||
|
|
||||||
public var errorDescription: String? {
|
public var errorDescription: String? {
|
||||||
switch errorReason {
|
switch errorReason {
|
||||||
case .authenticationMissing: return "Fail to Authenticatie"
|
case .authenticationMissing: return "Fail to Authenticate"
|
||||||
case .badRequest: return "Bad Request"
|
case .badRequest: return "Bad Request"
|
||||||
case .badResponse: return "Bad Response"
|
case .badResponse: return "Bad Response"
|
||||||
case .requestThrottle: return "Request Throttled"
|
case .requestThrottle: return "Request Throttled"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user