Skip to content

Commit

Permalink
Feat: Home 화면 Lottie 뷰 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonghwan committed May 14, 2024
1 parent cab9f86 commit db94783
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Pickle/Pickle/Screen/Home/HomeView/View/Todo/TodoEmptyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,34 @@
//

import SwiftUI
import Lottie
import PickleCommon

struct TodoEmptyView: View {

@Environment(\.colorScheme) var scheme

var body: some View {
VStack(spacing: 16) {
Image("picklePizza")
if scheme == .light {
LottieView(
animation: .named("PizzaPickle")
)
.playing(loopMode: .loop)
.resizable()
.scaledToFit()
.frame(width: .screenWidth - 200)

} else {
Image("picklePizza")
.resizable()
.scaledToFit()
.frame(width: .screenWidth - 200)
}

Text("오늘 할일을 추가해 주세요!")
.frame(maxWidth: .infinity)
.font(.pizzaRegularSmallTitle)
}
.padding(.bottom)
}
}

Expand Down

0 comments on commit db94783

Please sign in to comment.