-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feature] PromotionPopupView UI 및 관련 로직 구현
- Loading branch information
Showing
16 changed files
with
455 additions
and
36 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
2 changes: 1 addition & 1 deletion
2
HongikYeolgong2.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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
2 changes: 1 addition & 1 deletion
2
HongikYeolgong2.xcodeproj/xcshareddata/xcschemes/HongikYeolgong2.xcscheme
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
15 changes: 15 additions & 0 deletions
15
HongikYeolgong2/Data/DTO/Promotion/PromotionResponseDTO.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,15 @@ | ||
// | ||
// PromotionResponseDTO.swift | ||
// HongikYeolgong2 | ||
// | ||
// Created by 최주원 on 12/4/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct PromotionResponseDTO: Decodable { | ||
let imageUrl: String | ||
let detailUrl: String | ||
let endDate: String | ||
let startDate: String | ||
} |
32 changes: 32 additions & 0 deletions
32
HongikYeolgong2/Domain/Entities/Promotion/PromotionData.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,32 @@ | ||
// | ||
// PromotionData.swift | ||
// HongikYeolgong2 | ||
// | ||
// Created by 최주원 on 12/4/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct PromotionData { | ||
let imageUrl: String | ||
let detailUrl: String | ||
let endDate: String | ||
let startDate: String | ||
var image: UIImage? | ||
|
||
init() { | ||
imageUrl = "" | ||
detailUrl = "" | ||
endDate = "" | ||
startDate = "" | ||
image = nil | ||
} | ||
|
||
init (promtionData: PromotionResponseDTO, image: UIImage) { | ||
self.imageUrl = promtionData.imageUrl | ||
self.detailUrl = promtionData.detailUrl | ||
self.endDate = promtionData.endDate | ||
self.startDate = promtionData.startDate | ||
self.image = image | ||
} | ||
} |
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.