Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Text Alignment Issue with Date and WidgetKit
I am having the same problem. Any time I use style: .relative it left justifies the text. Have you found a solution? EDIT: I randomly stumbled upon a solution. Using a Stack with                     .multilineTextAlignment(.center) seems to work for some reason. HStack(alignment: .center, spacing:0) { Text(mostRecentObsDate, style: .relative) 	 .multilineTextAlignment(.center) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’20
Reply to Add UIKit view into iOS 14 Widget
I noticed the Apple engineer response said that "When the views are encoded from your extension to be displayed they will appear blank" but does he actually mean it will appear yellow with a big red crossed out circle instead of blank?
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’20