@@ -2126,7 +2126,10 @@ import SwiftUI
21262126
21272127 emojiShortcutButton. titleLabel? . font = . systemFont( ofSize: 20 )
21282128 emojiShortcutButton. setTitle ( emoji, for: . normal)
2129- emojiShortcutButton. backgroundColor = . systemBackground
2129+
2130+ if #unavailable( iOS 26 . 0 ) {
2131+ emojiShortcutButton. backgroundColor = . systemBackground
2132+ }
21302133
21312134 emojiShortcutButton. addAction { [ weak self] in
21322135 guard let self else { return }
@@ -2157,7 +2160,11 @@ import SwiftUI
21572160 addReactionButton. titleLabel? . font = . systemFont( ofSize: 22 )
21582161 addReactionButton. setImage ( . init( systemName: " plus " ) , for: . normal)
21592162 addReactionButton. tintColor = . label
2160- addReactionButton. backgroundColor = . systemBackground
2163+
2164+ if #unavailable( iOS 26 . 0 ) {
2165+ addReactionButton. backgroundColor = . systemBackground
2166+ }
2167+
21612168 addReactionButton. addAction { [ weak self] in
21622169 guard let self else { return }
21632170 self . tableView? . contextMenuInteraction? . dismissMenu ( )
@@ -2171,8 +2178,14 @@ import SwiftUI
21712178
21722179 // The reactionView will be shown after the animation finishes, otherwise we see the view already when animating and this looks odd
21732180 reactionView. alpha = 0
2174- reactionView. layer. cornerRadius = CGFloat ( emojiButtonSize) / 2
2175- reactionView. backgroundColor = . systemBackground
2181+
2182+ if #available( iOS 26 . 0 , * ) {
2183+ let effectView = reactionView. addGlassView ( )
2184+ effectView. layer. cornerRadius = CGFloat ( emojiButtonSize) / 2
2185+ } else {
2186+ reactionView. layer. cornerRadius = CGFloat ( emojiButtonSize) / 2
2187+ reactionView. backgroundColor = . systemBackground
2188+ }
21762189
21772190 return reactionView
21782191 }
0 commit comments