Files
Woka_Native_iOS/WOKA/Authentication/ViewModel/SelectAvatarVM.swift

28 lines
897 B
Swift
Raw Normal View History

2024-05-02 19:27:51 +05:30
//
// SelectAvatarVM.swift
// WOKA
//
// Created by MacBook Pro on 02/05/24.
//
2024-05-02 19:30:09 +05:30
import UIKit
class SelectAvatarVM{
weak var vc : SelectAvatarVC!
func initView(){
let color1 = #colorLiteral(red: 0.144693464, green: 0.1426281333, blue: 0.6686832905, alpha: 1)
let color2 = #colorLiteral(red: 0.6901960784, green: 0.2745098039, blue: 0.7568627451, alpha: 1)
vc.nextBtn.applyGradient(colors: [color1, color2], startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0.8, y: 0))
vc.nextBtn.roundCorner()
2024-05-02 19:30:09 +05:30
setupCell()
}
func setupCell(){
vc.collectionView.register(UINib(nibName: K.CellIdentifier.Authentication.selectAvatarCell, bundle: nil), forCellWithReuseIdentifier: K.CellIdentifier.Authentication.selectAvatarCell)
vc.collectionView.delegate = self.vc
vc.collectionView.dataSource = self.vc
}
}