-
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.
Merge pull request #172 from Team-B1ND/develop
3.3.0
- Loading branch information
Showing
176 changed files
with
1,943 additions
and
982 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
43 changes: 43 additions & 0 deletions
43
Projects/App/iOS-Widget/Source/Component/MealMenuText.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,43 @@ | ||
// | ||
// MealMenuText.swift | ||
// DodamDodam | ||
// | ||
// Created by dgsw8th36 on 9/23/24. | ||
// | ||
|
||
import SwiftUI | ||
import DDS | ||
|
||
struct MealMenuText: View { | ||
|
||
let text: String | ||
let isMealEmpty: Bool | ||
|
||
init(text: String, isMealEmpty: Bool = false) { | ||
self.text = text | ||
self.isMealEmpty = isMealEmpty | ||
} | ||
|
||
var body: some View { | ||
VStack { | ||
if isMealEmpty { | ||
Text(text) | ||
.font(.footnote) | ||
.multilineTextAlignment(.center) | ||
.foreground(DodamColor.Label.normal) | ||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center) | ||
} else { | ||
Text(text) | ||
.lineLimit(1) | ||
.truncationMode(.tail) | ||
.font(.caption) | ||
.foreground(DodamColor.Label.normal) | ||
.frame(maxWidth: .infinity, alignment: .leading) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
MealMenuText(text: "test", isMealEmpty: true) | ||
} |
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
20 changes: 20 additions & 0 deletions
20
Projects/App/iOS-Widget/Source/DI/Assembly/LocalAssembly.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,20 @@ | ||
// | ||
// LocalAssembly.swift | ||
// DodamDodam | ||
// | ||
// Created by hhhello0507 on 9/17/24. | ||
// | ||
|
||
import Foundation | ||
import Swinject | ||
import Local | ||
import Domain | ||
|
||
struct LocalAssembly: Assembly { | ||
|
||
func assemble(container: Container) { | ||
container.register(MealCache.self) { _ in | ||
.init() | ||
}.inObjectScope(.container) | ||
} | ||
} |
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
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
Oops, something went wrong.