Floaty icon indicating copy to clipboard operation
Floaty copied to clipboard

Aint working with TableViewController

Open Aviad94 opened this issue 4 years ago • 4 comments

is there any solution for that? :(

Aviad94 avatar Jun 02 '20 17:06 Aviad94

Lol found the problem, just changed it to - self.navigationController?.view.addSubview(floaty) and it works xD hope i helped people ...

Aviad94 avatar Jun 02 '20 17:06 Aviad94

Yup, your solution works and it's useful if you want floaty to appear in all of the ViewControllers in your NavController stack. But if you want floaty for just a single TableViewController, then you're better off using:

floaty.sticky = true self.tableView.addSubview(floaty)

a-choyster avatar Jun 02 '20 21:06 a-choyster

@a-choyster i have tabbar -> tableview, but the fab is under tabbar

fukemy avatar Jun 11 '21 05:06 fukemy

@a-choyster i have tabbar -> tableview, but the fab is under tabbar

Just add the height of the tab bar to the y-axis padding:

floaty.paddingY += tabBarController!.tabBar.bounds.size.height

BrettJackson1987 avatar Nov 12 '21 04:11 BrettJackson1987