FlexiblePickerExample - Example of flexible picker that automatically layouts its own content

Overview

Flexible Picker

The implementation of custom Flexible Picker. Thanks to that view component we can create selectable view with many options to select from. Moreover, it is a reusable and flexible component, as we can provide many different data types as input, as long as they are conforming to Selectable protocol.

animated


Customization

Flexible Picker is full customizable, as we can change:

  • subviews alignment
  • border color
  • text color
  • background color
  • font size and weight
  • selected background color
  • disable selection

Implementation description

The implementation has been described in the Medium's article:
https://betterprogramming.pub/flexible-picker-with-swiftui-5817ffe9fddf

Libraries

  • SwiftUI

License

MIT

You might also like...
Better time picker for iOS.

TimePicker Better TimePicker for iOS Requirements Swift 5.0 iOS 10.0+ Xcode 10.2+ Installation The easiest way is through CocoaPods. Simply add the de

✂ Easy to use and flexible library for manually laying out views and layers for iOS and tvOS. Supports AsyncDisplayKit.

ManualLayout Table of Contents Installation Usage API Cheat Sheet Installation Carthage Add the following line to your Cartfile. github "isair/ManualL

A flexible collection view with proper horizontal layout flow
A flexible collection view with proper horizontal layout flow

FlexCollection A very simple flexible collection view using SwiftUI that automat

An example project showing how to use `overrideUserInterfaceStyle` to build an in-app light/dark mode switch

OverrideDarkMode A sample project to show how using overrideUserInterfaceStyle enables having a dark / light mode switch directly in the app, while st

Simple Catalyst example (Mac idiom) of a grid-based app populated with photos, with dynamic cell layout switching
Simple Catalyst example (Mac idiom) of a grid-based app populated with photos, with dynamic cell layout switching

Catalyst Photo Grid Simple Catalyst example (Mac idiom) of a grid-based app populated with photos that can animate its cells between two different lay

A curated list of Open Source example iOS apps developed in Swift
A curated list of Open Source example iOS apps developed in Swift

 A curated list of Open Source example iOS apps developed in Swift. An amazing list for people who are beginners and learning ios development and for ios developers who need any example app or feature.

Example Poq App written in Swift with RxSwift and RxCocoa
Example Poq App written in Swift with RxSwift and RxCocoa

PoqApp-iOS Example Poq App written in Swift with RxSwift and RxCocoa Overview This is an example app written by Emre AYDIN on 01.16.2022 MVVM Design P

GridExample - SwiftUI example working with grids
GridExample - SwiftUI example working with grids

Working with SwiftUI grids LazyVGrid does not have a column span feature. This t

Coding Auto Layout by Example
Coding Auto Layout by Example

Coding-auto-layout - Repository with starting and finished projects for Coding Auto Layout by Example series

Owner
Jędrzej
iOS Dev at @intive Having fun working on stuff for iOS Platform.
Jędrzej
SwiggyClone - A Swiggy clone will dive deep into UICompositional Layouts and alot of new concepts

SwiggyClone This app is a clone of Swiggy (in progress). In this project we will

Dheeraj Kumar Sharma 81 Dec 25, 2022
UISplitViewController with adaptative layouts

JRSplitVC [![CI Status](http://img.shields.io/travis/José Roldán Jiménez/JRSplitVC.svg?style=flat)](https://travis-ci.org/José Roldán Jiménez/JRSplitV

José Roldán Jiménez 30 Aug 22, 2019
Try to create my own DI container

Basic Dependecy Injection Simple solution for DI Dependecy registration Registration strong dependency Registration weak dependency Registration with

Evgeny Bayan 2 Apr 20, 2022
NintendoSwitch-BezierPath-Example - Nintendo Switch Bezier Path Example

NintendoSwitch-BezierPath-Example An example app that demonstrates the use of Be

Juan Vasquez 0 Jan 12, 2022
Template auto layout cell for automatically UITableViewCell height calculating

UITableView-FDTemplateLayoutCell Overview Template auto layout cell for automatically UITableViewCell height calculating. Basic usage If you have a se

null 10k Dec 31, 2022
An iOS app that automatically capitalizes the title of your essay. Supports MLA, APA, and Chicago styles.

Title Capitalizr for iOS An iOS app that automatically capitalizes the title of your essay. Supports MLA, APA, AP, and Chicago styles. "You probably w

John Seong 2 Jun 10, 2022
Using Kiva's free API, the demo app retrieves its most recent fundraising loans

KivaLoan Kiva is a non-profit organization with a mission to connect people through lending to alleviate poverty. Using Kiva's free API, the demo app

DaryliOSdev 0 Nov 28, 2021
Component containing supplementary content that are anchored to the bottom of the screen.

BottomSheetController UIKit component containing supplementary content that are anchored to the bottom of the screen. Requirements Installation Swift

Naruki Chigira 37 Nov 15, 2022
Content Hugging Priority settings using Auto Layout

AutoLayoutContentHugging Swift 5 and Xcode 12. Content Hugging Priority settings using Auto Layout. Content Hugging Priority give you granular control

Camila Rodrigues 0 Jan 21, 2022
Expose layout margins and readable content width to SwiftUI's Views

SwiftUI Layout Guides This micro-library exposes UIKit's layout margins and readable content guides to SwiftUI. Usage Make a view fit the readable con

Thomas Grapperon 26 Dec 23, 2022