- Added checks and error for the name, username and password - On gender select adding values to the post reg struct. - Handled the interest selection into a array to post to the reg struct - Finalised the Age Select vc with gender select, date select, interest select - Added Avatar API
31 lines
675 B
Swift
31 lines
675 B
Swift
//
|
|
// SelectAvatarCell.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 02/05/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SelectAvatarCell: UICollectionViewCell {
|
|
|
|
@IBOutlet weak var outerView: UIView!
|
|
@IBOutlet weak var imageView: UIImageView!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
self.outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
|
|
}
|
|
|
|
override func layoutSubviews() {
|
|
self.roundCorner()
|
|
}
|
|
|
|
func setData(data : AvatarDM.ResultRecords){
|
|
if let url = data.avatarImageURL{
|
|
self.imageView.imageURL(url)
|
|
}
|
|
// self.imageView.image = UIImage(named: "avatar")
|
|
}
|
|
}
|