라이브 상단에 메시지 버튼 추가

This commit is contained in:
Yu Sung 2025-03-24 10:14:04 +09:00
parent 8cb7287b5d
commit 4b38187330
4 changed files with 47 additions and 15 deletions

View File

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_message.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -23,7 +23,14 @@ struct SectionRecommendLiveView: View {
Text("라이브")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(.grayee)
Spacer()
Image("ic_message")
.onTapGesture {
AppState.shared.setAppStep(step: .message)
}
}
.frame(width: screenSize().width - 26.7, alignment: .leading)

View File

@ -13,24 +13,28 @@ struct MessageView: View {
var body: some View {
GeometryReader { geo in
VStack {
HomeNavigationBar(title: "메시지") {}
ZStack {
Color.black
Tab()
Text("※ 보관하지 않은 받은 메시지는 3일 후, 자동 삭제됩니다.")
.font(.custom(Font.medium.rawValue, size: 13.3))
.padding(.top, 20)
switch viewModel.currentTab {
case .text:
TextMessageView()
VStack {
DetailNavigationBar(title: "메시지")
case .voice:
VoiceMessageView()
Tab()
Text("※ 보관하지 않은 받은 메시지는 3일 후, 자동 삭제됩니다.")
.font(.custom(Font.medium.rawValue, size: 13.3))
.padding(.top, 20)
switch viewModel.currentTab {
case .text:
TextMessageView()
case .voice:
VoiceMessageView()
}
}
.frame(width: geo.size.width, height: geo.size.height)
}
.frame(width: geo.size.width, height: geo.size.height)
}
}