I have an app with compatibility from iOS 12 to 14 and have a problem with the page control. On iOS 14 it has a huge padding which it doesn't have in older iOS version. Interface builder also shows this padding. My Problem is that I don't want this because my page control is not centred but left aligned in the UI.
How can I remove the padding so that it looks identically on all iOS versions?
This issue is because of ios 14. I used below combination of code for ios 14 and it worked like a charm
if #available(iOS 14.0, *) {
pageControl.backgroundStyle = .minimal
pageControl.allowsContinuousInteraction = false
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With