Files
Woka_Native_iOS/WOKA/Authentication/ViewModel/SelectAvatarVM.swift
Bilal 32f9ddaa7d - Made the forget password UI.
- Made login view.
- Continue the flow from onboarding.
- added the flow from login-> create account and forget password.
2024-05-03 20:27:54 +05:30

28 lines
897 B
Swift

//
// SelectAvatarVM.swift
// WOKA
//
// Created by MacBook Pro on 02/05/24.
//
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()
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
}
}