HorizontalPicker
Horizontal spinning-wheel picker view for iOS
Install / Use
/learn @laugga/HorizontalPickerREADME
HorizontalPicker
Introduction
LAUPickerView is an horizontal spinning-wheel picker control view for iOS.
It is similar to UIPickerView, but the user interface provided consists of columns instead of rows. It also follows the same semantics used for the data source and delegate methods. Please read the Overview section for more details about usage.
Requirements
- iOS 9.0 or later
- Suported devices: iPhone/iPad (*)
How to use LAUPickerView in your project
Swift Package Manager
TODO
- Use LAUPickerView in your project:
import LAUPickerView
Overview Tutorial
- Add the LAUPickerView to an existing UIView (ie. inside UIViewController's viewDidLoad method).
LAUPickerView * pickerView = [[LAUPickerView alloc] initWithFrame:self.view.frame];
pickerView.dataSource = self; // LAUPickerViewDataSource protocol
pickerView.delegate = self; // LAUPickerViewDelegate protocol
[self.view addSubview:pickerView];
- Implement the LAUPickerViewDataSource protocol:
- (NSInteger)numberOfComponentsInPickerView:(LAUPickerView *)pickerView
{
// return the number of components needed
}
- (NSInteger)pickerView:(LAUPickerView *)pickerView numberOfColumnsInComponent:(NSInteger)component
{
// return the number of columns for each component
}
- Implement the LAUPickerViewDelegate protocol:
- (NSString *)pickerView:(LAUPickerView *)pickerView titleForColumn:(NSInteger)column forComponent:(NSInteger)component
{
// return the title for the specific column-component pair
}
- (void)pickerView:(LAUPickerView *)pickerView didSelectColumn:(NSInteger)column inComponent:(NSInteger)component
{
// called when a new, different column is selected following a user touch-based input
}
- Additionally you can change the selected column position to left, center or right.

pickerView.selectionAlignment = LAPickerSelectionAlignmentLeft; // Change selected column position to left
Examples
LAUPickerViewOverview
The LAUPickerViewOverview is a single-view example showing the LAUPickerView and UIPickerView side-by-side. The selection is linked, so changing the selected column in the LAUPickerView will trigger the UIPickerView to change to the corresponding row.

Roadmap
- Improve layout and autoresize constraints
- Fix click sound loudness
- Fix click sound while scrolling
- Improve selected to unselected state animation
- Implement 3D transform similar to UIPickerView
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
