You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thanks again for sharing this!
I'm trying to present a view controller with a Popover style when the user touches the DetailButton inside a cell.
The thing is i haven't found yet a solution to get the sourceRect or the accessoryView itself.
accessory: .DetailButton({[unowned self]inletdetailButton= // Thats what i need
let vc =UIViewController()
vc.modalPresentationStyle =.Popover
vc.preferredContentSize =CGSize(width:100, height:200)
vc.popoverPresentationController?.sourceView = detailButton
vc.popoverPresentationController?.sourceRect = detailButton.bounds
vc.popoverPresentationController?.permittedArrowDirections =.Any
vc.popoverPresentationController?.delegate =selfself.presentViewController(vc, animated: true, completion:nil)})
Anyone have a solution to this since we don't have any arguments in the Selection closure?
Thanks! 👍👍👍
The text was updated successfully, but these errors were encountered:
Wondering if there is a way to access the Cell/Row from inside selected/accessory.
So instead of public typealias Selection = () -> Void
It would be something like this:
/// Row or Accessory selection callback. public typealias Selection = (cell: UITableViewCell) -> Void
Hello! Thanks again for sharing this!
I'm trying to present a view controller with a Popover style when the user touches the DetailButton inside a cell.
The thing is i haven't found yet a solution to get the sourceRect or the accessoryView itself.
Anyone have a solution to this since we don't have any arguments in the Selection closure?
Thanks! 👍👍👍
The text was updated successfully, but these errors were encountered: