Comment on Limit width of wheel style picker on iOS Works great in 15.4 for those asking where to put - you can put it as a separate extension anywhere in code. Best place is root level eg not within another class or struct. I keep a separate file in my projects for these global extensions. UI Frameworks SwiftUI Mar ’22