시리즈 전체보기 제목 현지화
크리에이터 기준 제목을 다국어로 제공한다. 요일 선택 영역을 가로 스크롤로 제공한다.
This commit is contained in:
@@ -40,21 +40,21 @@ struct SeriesMainDayOfWeekView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
VStack(spacing: 16) {
|
VStack(spacing: 16) {
|
||||||
HStack {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
Spacer(minLength: 0)
|
HStack {
|
||||||
ForEach(0..<dayOfWeekItems.count, id: \.self) {
|
ForEach(0..<dayOfWeekItems.count, id: \.self) {
|
||||||
let item = dayOfWeekItems[$0]
|
let item = dayOfWeekItems[$0]
|
||||||
DayOfWeekDayView(dayOfWeek: item.dayOfWeekStr, isSelected: dayOfWeek == item.dayOfWeek)
|
DayOfWeekDayView(dayOfWeek: item.dayOfWeekStr, isSelected: dayOfWeek == item.dayOfWeek)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if dayOfWeek != item.dayOfWeek {
|
if dayOfWeek != item.dayOfWeek {
|
||||||
dayOfWeek = item.dayOfWeek
|
dayOfWeek = item.dayOfWeek
|
||||||
viewModel.onTapDayOfWeek(dayOfWeek: dayOfWeek)
|
viewModel.onTapDayOfWeek(dayOfWeek: dayOfWeek)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Spacer(minLength: 0)
|
|
||||||
}
|
}
|
||||||
|
.padding(.horizontal, 24)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 24)
|
|
||||||
|
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
let horizontalPadding: CGFloat = 24
|
let horizontalPadding: CGFloat = 24
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ struct SeriesListAllView: View {
|
|||||||
} else if isOriginal {
|
} else if isOriginal {
|
||||||
DetailNavigationBar(title: "오직 보이스온에서만")
|
DetailNavigationBar(title: "오직 보이스온에서만")
|
||||||
} else {
|
} else {
|
||||||
DetailNavigationBar(title: "\(creatorNickname ?? "") 님의 시리즈 전체보기")
|
DetailNavigationBar(title: I18n.Series.viewAllByCreator(creatorNickname ?? ""))
|
||||||
}
|
}
|
||||||
|
|
||||||
let horizontalPadding: CGFloat = 24
|
let horizontalPadding: CGFloat = 24
|
||||||
|
|||||||
@@ -267,6 +267,15 @@ enum I18n {
|
|||||||
static var totalEpisodes: (Int) -> String = { count in
|
static var totalEpisodes: (Int) -> String = { count in
|
||||||
pick(ko: "총 \(count)화", en: "Total \(count) episodes", ja: "全\(count)話")
|
pick(ko: "총 \(count)화", en: "Total \(count) episodes", ja: "全\(count)話")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 시리즈 전체보기(크리에이터 기준) 타이틀
|
||||||
|
static func viewAllByCreator(_ nickname: String) -> String {
|
||||||
|
pick(
|
||||||
|
ko: "\(nickname) 님의 시리즈 전체보기",
|
||||||
|
en: "All series by \(nickname)",
|
||||||
|
ja: "\(nickname) さんのシリーズ一覧"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 시리즈 상세 화면 관련 문자열 모음
|
// 시리즈 상세 화면 관련 문자열 모음
|
||||||
|
|||||||
Reference in New Issue
Block a user