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

67 lines
1.6 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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
}
}
}