SwiftUI WidgetKit: How to anchor views to the top
问题 I am attempting to layout a tableView using SwiftUI and WidgetKit and would like to achieve a similar result of that as the Apple's Notes widget. My current implementation succeeds in laying out the view in the .systemLarge widget, but not in the .systemMedium widget. I would like to pin the view to the top of the widget, such that the header of "FAVOURITES" is visible in the .systemMedium . struct PlacesWidgetEntryView : View { var entry: Provider.Entry let places = [ Place(name: "Place 1",