Skip to content

Commit

Permalink
Show the "app icons" in a grid ($2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Nov 28, 2024
1 parent 9fc2430 commit 42a6575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MostRecentWebXDCWidget/MostRecentWebXDCWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ struct Provider: TimelineProvider {

let limit: Int
switch context.family {
case .systemSmall: limit = 2
case .systemMedium: limit = 4
case .systemSmall: limit = 4
case .systemMedium: limit = 8
default: limit = 8
}

Expand Down Expand Up @@ -103,8 +103,8 @@ struct MostRecentWebXDCWidgetEntryView: View {
if entry.apps.isEmpty {
Text("No apps (yet)")
} else {
// TODO: Use Grid!
VStack(alignment: .leading) {
let rows = [GridItem(.fixed(56)), GridItem(.fixed(56))]
LazyHGrid(rows: rows) {
ForEach(entry.apps) { app in
WebXDCAppView(app: app)
}
Expand Down

0 comments on commit 42a6575

Please sign in to comment.