Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reply function? #5

Open
lauriejhouse opened this issue Jul 30, 2019 · 2 comments
Open

Reply function? #5

lauriejhouse opened this issue Jul 30, 2019 · 2 comments

Comments

@lauriejhouse
Copy link

I was wondering if a reply function/ability is ever gonna be added. Or if you can point me to a resource where I can learn.

@YoomamaFTW
Copy link

Seems like the example project has some custom cell that has reply a reply button in it. The package is mainly for the table view, not the actually replying, which requires an editor of some sort which is different upon every project. You can use UITextField and stick it at the bottom of the view controller like Reddit and YouTube.

@dan085
Copy link

dan085 commented Aug 19, 2020

I use this and work good, its a idea

`

let verticalContentOffset = tableView.contentOffset.y;
let selectedIndex = self.replyInfoPost.positionChild
_currentlyDisplayed.insert(com, at: selectedIndex)
var indexPaths: [IndexPath] = []
indexPaths.append(IndexPath(row: selectedIndex, section: 0))
tableView.insertRows(at: indexPaths, with: .bottom)

                              if makeExpandedCellsVisible {
                               //   tableView.scrollToRow(at: IndexPath(row: selectedIndex+1, section: indexPath.section), at: UITableView.ScrollPosition.middle, animated: false)
                                
                                
                                  tableView.setContentOffset(CGPoint(x:0, y:verticalContentOffset), animated: false)
                                
                              }
 `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants