라이브 방

- 하트 애니메이션 추가
This commit is contained in:
Yu Sung
2024-10-24 17:05:03 +09:00
parent c7314cc1d4
commit 9fa1bf9f64
6 changed files with 207 additions and 9 deletions

View File

@@ -0,0 +1,33 @@
//
// LiveRoomHeartView.swift
// SodaLive
//
// Created by klaus on 10/24/24.
//
import SwiftUI
struct LiveRoomHeartView: View {
let heart: Heart
var body: some View {
Image("ic_heart_pink")
.resizable()
.frame(width: 24 * heart.scale, height: 24 * heart.scale) //
.shadow(radius: 10)
}
}
#Preview {
LiveRoomHeartView(
heart: Heart(
id: UUID(),
offsetX: 0,
offsetY: 0,
opacity: 1.0,
speed: 1.0,
scale: 0.5,
direction: "left"
)
)
}