SodaLive
Preview Content
Resources
Sources
Agora
App
Audition
Common
Content
CustomView
Debug
Dialog
Explorer
Profile
CreatorCommunity
FanTalk
FollowerList
Series
UserProfileSeriesView.swift
GetCheersResponse.swift
GetCreatorProfileResponse.swift
GetDonationAllResponse.swift
MemberBlockRequest.swift
PostCreatorNoticeRequest.swift
UserProfileActivitySummaryView.swift
UserProfileContentView.swift
UserProfileCreatorView.swift
UserProfileDonationAllView.swift
UserProfileDonationAllViewModel.swift
UserProfileDonationView.swift
UserProfileIntroduceView.swift
UserProfileLiveView.swift
UserProfileView.swift
UserProfileViewModel.swift
ExplorerApi.swift
ExplorerRepository.swift
ExplorerSectionView.swift
ExplorerView.swift
ExplorerViewModel.swift
GetExplorerResponse.swift
Extensions
Follow
Font
FortuneWheel
IAP
ImagePicker
Keyboard
Live
Main
Message
MyPage
NavigationBar
Onboarding
Report
SearchChannel
Settings
Shape
Splash
Tracking
UI
User
Utils
ContentView.swift
SodaLive.entitlements
SodaLive.xcworkspace
generated
.gitignore
Podfile
Podfile.lock
SodaLive-dev.entitlements
model-SodaLive-dev.json
model-SodaLive.json
80 lines
2.6 KiB
Swift
80 lines
2.6 KiB
Swift
//
|
|
// UserProfileSeriesView.swift
|
|
// SodaLive
|
|
//
|
|
// Created by klaus on 4/29/24.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct UserProfileSeriesView: View {
|
|
let creatorId: Int
|
|
let items: [SeriesListItem]
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: 13.3) {
|
|
HStack(spacing: 0) {
|
|
Text("시리즈")
|
|
.font(.custom(Font.bold.rawValue, size: 18.3))
|
|
.foregroundColor(Color.grayee)
|
|
|
|
Spacer()
|
|
|
|
Text("전체보기")
|
|
.font(.custom(Font.light.rawValue, size: 11.3))
|
|
.foregroundColor(Color.grayee)
|
|
.onTapGesture {
|
|
AppState.shared
|
|
.setAppStep(step: .seriesAll(creatorId: creatorId))
|
|
}
|
|
}
|
|
|
|
ScrollView(.horizontal, showsIndicators: false) {
|
|
HStack(alignment: .top, spacing: 13.3) {
|
|
ForEach(0..<items.count, id: \.self) {
|
|
let item = items[$0]
|
|
SeriesListBigItemView(item: item, isVisibleCreator: false)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
UserProfileSeriesView(
|
|
creatorId: 1,
|
|
items: [
|
|
SeriesListItem(
|
|
seriesId: 1,
|
|
title: "제목, 관심사,프로필+방장, 참여인원(어딘가..)",
|
|
coverImage: "https://test-cf.sodalive.net/profile/default-profile.png",
|
|
publishedDaysOfWeek: "매주 수, 토요일",
|
|
isComplete: true,
|
|
creator: SeriesListItemCreator(
|
|
creatorId: 1,
|
|
nickname: "creator",
|
|
profileImage: "https://test-cf.sodalive.net/profile/default-profile.png"
|
|
),
|
|
numberOfContent: 10,
|
|
isNew: true,
|
|
isPopular: true
|
|
),
|
|
SeriesListItem(
|
|
seriesId: 1,
|
|
title: "제목, 관심사,프로필+방장, 참여인원(어딘가..)",
|
|
coverImage: "https://test-cf.sodalive.net/profile/default-profile.png",
|
|
publishedDaysOfWeek: "매주 수, 토요일",
|
|
isComplete: true,
|
|
creator: SeriesListItemCreator(
|
|
creatorId: 1,
|
|
nickname: "creator",
|
|
profileImage: "https://test-cf.sodalive.net/profile/default-profile.png"
|
|
),
|
|
numberOfContent: 10,
|
|
isNew: true,
|
|
isPopular: true
|
|
)
|
|
])
|
|
}
|