it is my first time to use Stack Overflow:) hope I can find the answers and give my knowledges.
I am currently making a chat app like Tinder or instagram style for studying Swift.
as you can see on Tinder, you can swipe horizontally matched users
https://i.stack.imgur.com/dFUcM.jpg
I want to build almost same design like that.
on my main.storyboard, it is like
TableViewController
-collectionView
-collectionViewCell
-collectionViewFlowLayout
-tableViewCell
-contentView
like this.
collectionView cell is for matched users, and tableviewCells are for opened chatrooms.
I already finished making chatrooms.
but the collection view part never shows up. I tried to make Extension.swift file for this and typed like
extension TableViewController {
class RequestCVCell: UICollectionViewCell {
@IBOutlet weak var MatchedAvatar: UIImageView!
@IBOutlet weak var MatchedName: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
MatchedAvatar.layer.cornerRadius = 30
MatchedAvatar.clipsToBounds = true
}
let horizontalView = UIView(backgroundColor: .blue)
}
}
I thought about build a storyboard like
ViewController
-collectionView
-collectionViewCell
-collectionViewFlowLayout
-tableView
-contentView
I really have no idea why it is not working. :( is there any way I can make like tinder?
thanks for reading and sorry for my English, lack of explanation.