라이브 방 추가

This commit is contained in:
Yu Sung
2023-08-15 01:22:15 +09:00
parent 634f50d4f2
commit 0f8b740469
92 changed files with 5213 additions and 20 deletions

View File

@@ -0,0 +1,41 @@
//
// LiveRoomTopCreatorView.swift
// SodaLive
//
// Created by klaus on 2023/08/14.
//
import SwiftUI
import Kingfisher
struct LiveRoomTopCreatorView: View {
var nickname: String
var profileImageUrl: String
var isFollowing: Bool
var onClickProfile: () -> Void
var onClickFollow: (Bool) -> Void
var body: some View {
HStack(spacing: 5.3) {
KFImage(URL(string: profileImageUrl))
.resizable()
.scaledToFill()
.frame(width: 33.3, height: 33.3)
.clipShape(Circle())
.onTapGesture { onClickProfile() }
Image("ic_crown")
Text(nickname)
.font(.custom(Font.light.rawValue, size: 12))
.foregroundColor(Color(hex: "eeeeee"))
Spacer()
Image(isFollowing ? "btn_following" : "btn_follow")
.onTapGesture { onClickFollow(isFollowing) }
}
}
}