From eba1f69bf68e25571afeed5175b0b7fc7344a987 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 17 Feb 2022 10:47:15 +0800 Subject: [PATCH] fix: player button icon not reset issue --- MastodonSDK/Sources/MastodonUI/View/Content/MediaView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/MediaView.swift b/MastodonSDK/Sources/MastodonUI/View/Content/MediaView.swift index 3b4d249e..1d988e45 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/MediaView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/MediaView.swift @@ -284,6 +284,8 @@ extension MediaView { playerViewController.player = nil playerLooper = nil + playbackImageView.removeFromSuperview() + // blurhash blurhashImageView.removeFromSuperview() blurhashImageView.removeConstraints(blurhashImageView.constraints)