You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add multiline support for iOS picker. `numberOfLines` prop on iOS accepts integer value greater or equal to 1.
Picker rows' height is based on that prop.
**NOTE** in order to prevent multiline text being cut on leading and trailing edges on iOS 14, there is hardcoded horizontal padding of 20pts added to UILabel (Closes#212), potentially in future, it can be adjusted via `style` or `itemStyle` props
_font = [UIFont systemFontOfSize:21]; // TODO: selected title default should be 23.5
23
23
_selectedIndex = NSNotFound;
24
24
_textAlign = NSTextAlignmentCenter;
25
+
_numberOfLines = 1;
25
26
self.delegate = self;
26
27
self.dataSource = self;
27
28
[selfselectRow:0inComponent:0animated:YES]; // Workaround for missing selection indicator lines (see https://stackoverflow.com/questions/39564660/uipickerview-selection-indicator-not-visible-in-ios10)
0 commit comments