I am testing new Swift UI features and encountered strange issue with the appearance of "Label" Element.
The system images are moved upwards and not aligned horizontally with text items. Its different from the appearance from WWDC presentation. Where is the problem?
Code Block struct ContentView: View { let items = ["item 1", "item 2", "item 3" , "item 4"] var body: some View { List { Label(items[0], systemImage:"a.book.closed") Label(items[1], systemImage:"pencil") Label(items[2], systemImage:"flowchart") Label(items[3], systemImage:"hand.wave") } } }
The system images are moved upwards and not aligned horizontally with text items. Its different from the appearance from WWDC presentation. Where is the problem?
This is a known issue referred in iOS & iPadOS 14 Beta Release Notes.
And there are already several threads about this, one of them has an answer from Apple's engineer.
Label and systemImage not aligning properly
And this has marked as Solved
New 'Label' component displaying incorrectly in SwiftUI
And there are already several threads about this, one of them has an answer from Apple's engineer.
Label and systemImage not aligning properly
And this has marked as Solved
New 'Label' component displaying incorrectly in SwiftUI