reactions: add close button to custom reactions
Signed-off-by: William Casarin <jb55@jb55.com> Changelog-Added: Add close button to custom reactions
This commit is contained in:
committed by
William Casarin
parent
92020e551b
commit
3908192fe2
@@ -290,6 +290,19 @@ struct LikeButton: View {
|
|||||||
|
|
||||||
func reactions() -> some View {
|
func reactions() -> some View {
|
||||||
HStack {
|
HStack {
|
||||||
|
Button(action: {
|
||||||
|
withAnimation(.easeOut(duration: 0.2)) {
|
||||||
|
isReactionsVisible = false
|
||||||
|
showReactionsBG = 0
|
||||||
|
}
|
||||||
|
showEmojis = []
|
||||||
|
}) {
|
||||||
|
Image(systemName: "xmark.circle.fill")
|
||||||
|
.font(.body)
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
}
|
||||||
|
.padding(.leading, 7.5)
|
||||||
|
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(spacing: 20) {
|
HStack(spacing: 20) {
|
||||||
ForEach(emojis, id: \.self) { emoji in
|
ForEach(emojis, id: \.self) { emoji in
|
||||||
@@ -303,7 +316,7 @@ struct LikeButton: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 20)
|
.padding(.trailing, 10)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user