fix: compose scene custom emoji button image not set adaptive appearance issue
This commit is contained in:
parent
0b77c19857
commit
96783ae1aa
|
@ -218,6 +218,12 @@ extension ComposeToolbarView {
|
|||
}
|
||||
|
||||
private func updateToolbarButtonUserInterfaceStyle() {
|
||||
// reset emoji
|
||||
let emojiButtonImage = Asset.Human.faceSmilingAdaptive.image
|
||||
.af.imageScaled(to: CGSize(width: 20, height: 20))
|
||||
.withRenderingMode(.alwaysTemplate)
|
||||
emojiButton.setImage(emojiButtonImage, for: .normal)
|
||||
|
||||
switch traitCollection.userInterfaceStyle {
|
||||
case .light:
|
||||
mediaButton.setImage(UIImage(systemName: "photo", withConfiguration: UIImage.SymbolConfiguration(pointSize: 20, weight: .regular))!, for: .normal)
|
||||
|
|
Loading…
Reference in New Issue