Skip to content

Commit

Permalink
formatted with swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Es committed Oct 13, 2023
1 parent 4913e52 commit 0944470
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/WidgetBackground.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//


import SwiftUI
import WidgetKit

Expand All @@ -18,8 +17,8 @@ import WidgetKit
//
// .widgetBackground(backgroundView: Color.clear)

extension View {
public func widgetBackground(backgroundView: some View) -> some View {
public extension View {
func widgetBackground(backgroundView: some View) -> some View {
if #available(watchOS 10.0, iOSApplicationExtension 17.0, iOS 17.0, macOSApplicationExtension 14.0, *) {
return containerBackground(for: .widget) {
backgroundView
Expand All @@ -29,4 +28,3 @@ extension View {
}
}
}

0 comments on commit 0944470

Please sign in to comment.