Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Project/App/Sources/Feature/Home/HomeReducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ struct HomeReducer {
summary: dailyFortune.title
),
cardInfo: .init(
backgroundImageURL: .urlForResource(.fortuneCardFrontDefaultView),
title: "최고의 날",
fortune: "네잎클로버"
backgroundImageURL: dailyFortune.cardImageURL,
title: dailyFortune.cardTitle,
fortune: dailyFortune.cardSubTitle
)
)

Expand Down
6 changes: 3 additions & 3 deletions Project/App/Sources/Feature/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ struct HomeView: View {
headerSection

FortuneCardFrontView(
backgroundImageURL: .urlForResource(.fortuneCardFrontDefaultView),
title: "최고의 날",
fortune: "네잎클로버"
backgroundImageURL: store.homeInfo.dailyFortune.cardImageURL,
title: store.homeInfo.dailyFortune.cardTitle,
fortune: store.homeInfo.dailyFortune.cardSubTitle
)
.rotationEffect(.init(degrees: 4))
.padding(.top, 20)
Expand Down
4 changes: 2 additions & 2 deletions Project/App/Sources/Models/Home/HomeInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension HomeInfo {
let date: String
let title: String
let score: Int
let cardImage: String
let cardImageURL: URL?
let cardTitle: String
let cardSubTitle: String
}
Expand Down Expand Up @@ -89,7 +89,7 @@ extension HomeInfo {
date: "2025-07-09",
title: "투자 아이디어! 신중한 판단이 필요한 날",
score: 100,
cardImage: "https://kr.object.ncloudstorage.com/dhc-object-storage/logos/mainCard/png/fourLeafClover.png",
cardImageURL: URL(string: "https://kr.object.ncloudstorage.com/dhc-object-storage/logos/mainCard/png/fourLeafClover.png"),
cardTitle: "",
cardSubTitle: ""
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension HomeDTO {
date: todayFortune.date,
title: todayFortune.fortuneTitle,
score: todayFortune.totalScore,
cardImage: todayFortune.cardInfo.image,
cardImageURL: URL(string: todayFortune.cardInfo.image),
cardTitle: todayFortune.cardInfo.title,
cardSubTitle: todayFortune.cardInfo.subTitle
),
Expand Down