//
//  PhotoEditingToolTextShadowCell.swift
//  WoWonder
//
//  Created by iMac on 22/05/25.
//  Copyright © 2025 ScriptSun. All rights reserved.
//

import UIKit

class PhotoEditingToolTextShadowCell: UICollectionViewCell {
    
    @IBOutlet weak var shadowView: UIView!
    @IBOutlet weak var shadowLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        // Initialization code
        
    }
    
    // Set Data
    func setData(data: TextShadowModel) {
        self.shadowLabel.text = data.text
        self.shadowLabel.layer.shadowOffset = data.shadow.size
        self.shadowLabel.layer.shadowColor = UIColor(hex: data.shadow.color).cgColor
        self.shadowLabel.layer.shadowOpacity = 1
        self.shadowLabel.layer.shadowRadius = data.shadow.radius
    }
    
}
