skip to Main Content

Manually invoke context menu in collectionView for cell – Ios swift

I implemented methods for context menu with delegate methods like this: func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { configureContextMenu(index: indexPath.row) } func configureContextMenu(index: Int) -> UIContextMenuConfiguration { let context = UIContextMenuConfiguration(identifier: nil, previewProvider: nil) {…

VIEW QUESTION

After tableView scrolled data puts in cells in wrong order – Ios swift

in my View: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "TransactionTableCell", for: indexPath) as! TransactionTableCell let newItem = getTransactionsInSection(section: sectionHeader[indexPath.section])[indexPath.row] cell.configure(item: newItem) } in my TransactionTableCell func configure(item: TransactionModel) { guard let withdrawalBonuses…

VIEW QUESTION
Back To Top
Search