In iPhone8 like rectangle edge devices, I need a bottom button stuck on the bottom edge with sharp corners. And in iPhone12 like curved edge devices, I need a bottom button with some distance on right-left-bottom with a corner radius.
How can I manage it on the storyboard? Please check the below image for better understanding.
As far as I know, the storyboard has no straightforward way to achieve this. If I were you, I'll
There's no official API provided for checking whether the device has curved edges or not but here's my solution so if anyone knows a better hack, please let me know.
Now, you can use this extension inside your view controller and constraint your button.