Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Loop Widget Extension/Helpers/WidgetBackground.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import SwiftUI
extension View {
@ViewBuilder
func widgetBackground() -> some View {
self.background { Color("WidgetBackground") }
if #available(watchOS 10.0, iOSApplicationExtension 17.0, iOS 17.0, macOSApplicationExtension 14.0, *) {
self.containerBackground(for: .widget) { Color("WidgetBackground") }
} else {
self.background { Color("WidgetBackground") }
}
}
}