-
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.
[D-1] 등록된 소속 없는 경우 위젯 처리 (526) (#78)
* add: 위젯에 사용될 이미지 세트 추가 * feat: MainWidget 등록된 소속 없을 때 UI 처리 * feat: OCRWidget 등록된 소속 없을 때 UI 처리 * feat: SecondWidget 등록된 소속 없는 경우 UI 처리 * fix: 소속 삭제 시 UserDefaults 비워주기
- Loading branch information
Showing
17 changed files
with
137 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Projects/App/WidgetExtension/Sources/View/GradientView.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,16 @@ | ||
import SwiftUI | ||
|
||
public struct GradientView: View { | ||
public var body: some View { | ||
LinearGradient( | ||
stops: [ | ||
.init(color: Color(uiColor: UIColor(hexString: "8496F9")), location: 0.0), | ||
.init(color: Color(uiColor: UIColor(hexString: "C6DFFD")), location: 0.36), | ||
.init(color: Color(uiColor: UIColor(hexString: "E9D8EB")), location: 0.70), | ||
.init(color: Color(uiColor: UIColor(hexString: "C6DFFD")), location: 1.0) | ||
], | ||
startPoint: .leading, | ||
endPoint: .trailing | ||
) | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
Projects/App/WidgetExtension/Sources/View/MiniNotSelectedAgencyView.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,25 @@ | ||
import SwiftUI | ||
|
||
import DesignSystem | ||
|
||
struct MiniNotSelectedAgencyView: View { | ||
var body: some View { | ||
VStack { | ||
Image(uiImage: Images.mongLedgerWidgetMini!) | ||
VStack { | ||
( | ||
Text("회비 관리할 ").foregroundStyle(.white) + | ||
Text("장부").foregroundStyle(Color(uiColor: Colors.Blue._4)) + | ||
Text("를").foregroundStyle(.white) | ||
) | ||
.font(.system(size: 16, weight: .bold)) | ||
Text("만들어주세요!") | ||
.foregroundStyle(.white) | ||
.font(.system(size: 16, weight: .bold)) | ||
} | ||
} | ||
.containerBackground(for: .widget) { | ||
GradientView() | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Projects/App/WidgetExtension/Sources/View/NotSelectedAgencyView.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,22 @@ | ||
import SwiftUI | ||
import WidgetKit | ||
|
||
import DesignSystem | ||
|
||
struct NotSelectedAgencyView: View { | ||
var body: some View { | ||
VStack { | ||
Image(uiImage: Images.mongLedgerWidget!) | ||
( | ||
Text("회비 관리할 ").foregroundStyle(.white) + | ||
Text("장부").foregroundStyle(Color(uiColor: Colors.Blue._4)) + | ||
Text("를 만들어주세요!").foregroundStyle(.white) | ||
) | ||
.font(.system(size: 16, weight: .bold)) | ||
|
||
} | ||
.containerBackground(for: .widget) { | ||
GradientView() | ||
} | ||
} | ||
} |
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
23 changes: 23 additions & 0 deletions
23
...nSystem/Resources/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon-study.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+7.81 KB
...ources/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.imageset/icon-study.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22 KB
...ces/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.3 KB
...ces/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
...em/Resources/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.mini.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon-study.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+4.8 KB
...s/Image/Icon.xcassets/MoneyMong/mong.ledger.widget.mini.imageset/icon-study.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...mage/Icon.xcassets/MoneyMong/mong.ledger.widget.mini.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.7 KB
...mage/Icon.xcassets/MoneyMong/mong.ledger.widget.mini.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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