'Unicode char has odd gap when rendered in view

I am using the following code to show a playing card. Not sure why there is a large gap at the top.

This is on iOS 15.4

var body: some View {
    Text(String(Character(unicodeScalarLiteral: "\u{1F0A1}")))
        .font(.system(size: size))
        .foregroundColor(.red)
}

playing card with gap above

Compare to how this smiley is displayed:

smiley without gap



Solution 1:[1]

This is how this symbol layout within glyph box (pay attention on its position relative to base line):

demo

and here is for comparison of Latin A:

demo2

and really if both in one Text

demo3

Probably you just need different symbol/image, or try to use some manual workaround like

    Text("\u{1F0A1}")
            .baselineOffset(20)

demo4

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Asperi