'How to make UIPickerView float in the center in iOS?

I have a UIPickerView in Cordova based application. I am seeing different appearance for the same UIPickerView in iOS 14 and iOS 15.

For iOS 14: It looks like this: (Fixed at the bottom)

enter image description here

For iOS 15 it looks like this (Floating)

enter image description here

My questions are

  • Is this how UIPickerView looks by default starting from i0S 15
  • Is there a way to make it float in the center ?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source