라이브 방 추가
This commit is contained in:
41
SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift
Normal file
41
SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift
Normal 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) }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user