Visual_Novel_iOS/crush/Crush/Src/Modules/Home/CardDrag/MeetDragCardView.swift

67 lines
1.6 KiB
Swift
Raw Normal View History

2025-10-09 10:29:35 +00:00
//
// MeetDragCardView.swift
// Crush
//
// Created by AI Assistant on 2024/12/19.
// Copyright © 2024 Crush. All rights reserved.
//
import UIKit
import SnapKit
class MeetDragCardView: UIView {
var originTransForm: CGAffineTransform = .identity
var configure: MeetDragConfigure?
override init(frame: CGRect) {
super.init(frame: frame)
setUp()
}
required init?(coder: NSCoder) {
super.init(coder: coder)
setUp()
}
private func setUp() {
isUserInteractionEnabled = true
// backgroundColor = UIColor.cyan
}
func setConfigure(_ configure: MeetDragConfigure) {
self.configure = configure
//
layer.cornerRadius = configure.cardCornerRadius
layer.borderWidth = configure.cardCornerBorderWidth
layer.borderColor = configure.cardBordColor.cgColor
layer.masksToBounds = true
}
///
func YFLDragCardViewLayoutSubviews() {
//
}
/// ()
func startAnimatingForDirection(_ direction: ContainerDragDirection) {
// 🔥
switch direction {
case .left:
//
break
case .right:
//
break
case .up:
//
break
case .down:
//
break
default:
break
}
}
}