diff --git a/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/Contents.json new file mode 100644 index 0000000..6575b5e --- /dev/null +++ b/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "ic_comment_dark_green.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/ic_comment_dark_green.png b/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/ic_comment_dark_green.png new file mode 100644 index 0000000..b2e26dc Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/ic_comment_dark_green.imageset/ic_comment_dark_green.png differ diff --git a/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/Contents.json new file mode 100644 index 0000000..c925ca9 --- /dev/null +++ b/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "ic_heart_dark_green.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/ic_heart_dark_green.png b/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/ic_heart_dark_green.png new file mode 100644 index 0000000..fa4675e Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/ic_heart_dark_green.imageset/ic_heart_dark_green.png differ diff --git a/SodaLive/Sources/Home/HomeTabView.swift b/SodaLive/Sources/Home/HomeTabView.swift index 2d2d52d..65c384e 100644 --- a/SodaLive/Sources/Home/HomeTabView.swift +++ b/SodaLive/Sources/Home/HomeTabView.swift @@ -136,23 +136,27 @@ struct HomeTabView: View { HomeWeeklyChartView(contentList: viewModel.contentRanking) } - VStack(alignment: .leading, spacing: 16) { - HStack(spacing: 0) { - Text("추천") - .font(.custom(Font.preBold.rawValue, size: 26)) - .foregroundColor(.button) - - Text(" 채널") - .font(.custom(Font.preBold.rawValue, size: 26)) - .foregroundColor(.white) - } - .padding(.horizontal, 24) - - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 16) { + if !viewModel.recommendChannelList.isEmpty { + VStack(alignment: .leading, spacing: 16) { + HStack(spacing: 0) { + Text("추천") + .font(.custom(Font.preBold.rawValue, size: 26)) + .foregroundColor(.button) + Text(" 채널") + .font(.custom(Font.preBold.rawValue, size: 26)) + .foregroundColor(.white) } .padding(.horizontal, 24) + + ScrollView(.horizontal, showsIndicators: false) { + HStack(spacing: 16) { + ForEach(0..