TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Solved: SwiftUI Picker (WheelPickerStyle) with multiline Text.

Forums > SwiftUI

Hi, I'm trying to show Text inside WheelPickerStyle Picker on iOS, but it is too long to fit in one line.

Is there a possibility to make Text multiline inside a wheel Picker? I've tryed .lineLimit and .multilineTextAlignment. They are not working. Or maybe someone can help me create a custom picker for this?

.fixedSize(horizontal: false, vertical: true) added to Text inside a Picker is a solution in my case.

2      

Hacking with Swift is sponsored by String Catalog.

SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!

Localize My App

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.