-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
50 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import SwiftUI | ||
|
||
extension View { | ||
func widgetBackground(_ backgroundView: some View) -> some View { | ||
if #available(iOSApplicationExtension 17.0, *) { | ||
return containerBackground(for: .widget) { | ||
backgroundView | ||
} | ||
} else { | ||
return background(backgroundView) | ||
} | ||
} | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
Projects/App/WidgetExtension/Sources/View/EmptyAgencyView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import SwiftUI | ||
import WidgetKit | ||
|
||
import DesignSystem | ||
|
||
// 4 * 2 위젯일때 소속이 없을경우 | ||
struct EmptyAgencyView: View { | ||
var body: some View { | ||
VStack { | ||
Image(uiImage: Images.mongLedgerWidget!) | ||
( | ||
Text("회비 관리할 ").foregroundColor(.white) + | ||
Text("장부").foregroundColor(Color(uiColor: Colors.Blue._4)) + | ||
Text("를 만들어주세요!").foregroundColor(.white) | ||
) | ||
.font(.system(size: 16, weight: .bold)) | ||
|
||
} | ||
.widgetBackground(GradientBackgroundView()) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...Extension/Sources/View/GradientView.swift → ...Sources/View/GradientBackgroundView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
Projects/App/WidgetExtension/Sources/View/NotSelectedAgencyView.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters