leading alignment, tiny shadow

This commit is contained in:
neon443
2025-10-29 19:33:14 +00:00
parent a102edbd4e
commit 6d9638bf85

View File

@@ -14,7 +14,7 @@ struct EmojiPreview: View {
@State private var id: UUID = UUID() @State private var id: UUID = UUID()
var body: some View { var body: some View {
VStack { VStack(alignment: .leading) {
Text(emoji.name) Text(emoji.name)
Group { Group {
if let localImage = try? Data(contentsOf: emoji.localImageURL), if let localImage = try? Data(contentsOf: emoji.localImageURL),
@@ -27,6 +27,7 @@ struct EmojiPreview: View {
.resizable().scaledToFit() .resizable().scaledToFit()
.frame(width: 20, height: 20) .frame(width: 20, height: 20)
.symbolRenderingMode(.hierarchical) .symbolRenderingMode(.hierarchical)
.shadow(radius: 1)
} }
} else { } else {
AsyncImage(url: emoji.remoteImageURL) { phase in AsyncImage(url: emoji.remoteImageURL) { phase in