We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi @jjochen ,
We are able to specify the inset with which the floating button should be placed like below.
actionButton.display(inViewController: self, viewInset: 30)
Here in above image, the inset with which button is placed is kept at 15 its from the right and 15 its from the bottom.
What if we need to place at a position of 30 pts from the right and 60 pts from the bottom. I need to have something like below.
The text was updated successfully, but these errors were encountered:
Hey @rajtharan-g,
you can use layout constraints like with any other view.
display(inViewController:) doesn't do anything but addSubview and define some layout constrains. See here and here.
display(inViewController:)
addSubview
If you want to use layout constraints you should remove display(inViewController:) and use addSubview plus whatever constraints you want instead.
In any case, it probably makes sense to improve display(inViewController:) some more. I will do it as soon as I find some time 😉
Sorry, something went wrong.
5f01866
No branches or pull requests
Hi @jjochen ,
We are able to specify the inset with which the floating button should be placed like below.
Here in above image, the inset with which button is placed is kept at 15 its from the right and 15 its from the bottom.
What if we need to place at a position of 30 pts from the right and 60 pts from the bottom. I need to have something like below.
![30x60](https://user-images.githubusercontent.com/23209069/41336105-d0124f9e-6f08-11e8-8108-d9070ec342d6.png)
The text was updated successfully, but these errors were encountered: