mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 13:26:17 +00:00
leading alignment, tiny shadow
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user