KYSelectBox Repository

Overview

KYSelectBox

CI Status Version License Platform

drawing

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

platform :ios, '12.0'

Installation

KYSelectBox is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'KYSelectBox'

Usage

//1. Setup Items for Buttons
let categories = ["Item 1", "Item 2", "Item 3"]
let mainColor = UIColor(red: 95.0/255.0, green: 149.0/255.0, blue: 149.0/255.0, alpha: 1.0)
let selectBoxWidth = CGFloat(self.view.frame.width * 0.8)
let selectBoxHeight = CGFloat(80)

//2. Configure SelectBox
self.selectBox = KYSelectBox(frame: CGRect(x: 0,y: 0,width: selectBoxWidth, height: selectBoxHeight))
    .setItems(categories)
    .setMainColor(mainColor)
    .setVisibleShadow(true)
    .setAnimationTime(0.3)
    .setAnimationOption(.curveEaseInOut)
    .setFont(.boldSystemFont(ofSize: 14))
    .build()

//3. Configure SelectBox CallBack Method
selectBox.onButtonSelected = { [unowned self] index in
    print("onButtonSelected index : \(index)")
    self.indexLbl.text = "Index \(index) Selected"
}

//4. Configure SelectBox Position
self.selectBox.center = self.view.center
self.view.addSubview(selectBox)

Author

Gangyeol Kim, [email protected]

License

KYSelectBox is available under the MIT license. See the LICENSE file for more info.

You might also like...
Repository for the dgca wallet app for iOS.

EU Digital COVID Certificate Wallet App - iOS About • Development • Documentation • Support • Contribute • Contributors • Licensing About This reposit

Repository for App IOS Reddit Top 50

iOS Reddit Top50 Repository for App IOS Reddit Top 50 App shows a list for the Top 50 posts in [Reddit] - www.reddit.com/top Requirements iOS 14.0+ Xc

Repository with base samples for playing HLS/DASH with CMAF video, across as many platforms as possible. Includes steps for encoding and packaging your own test content.

Video Everything Repository with minimal samples for playing HLS/DASH with CMAF video, across as many platforms as possible. Content and License All t

This repository accompanies Test-Driven Development in Swift: Compile Better Code with XCTest and TDD
This repository accompanies Test-Driven Development in Swift: Compile Better Code with XCTest and TDD

Apress Source Code This repository accompanies Test-Driven Development in Swift: Compile Better Code with XCTest and TDD by Gio Lodi (Apress, 2021). D

WordPress for iOS - Official repository

WordPress for iOS Build Instructions Please refer to the sections below for more detailed information. The instructions assume the work is performed f

Dungeon Crawl: Stone Soup official repository

Dungeon Crawl Stone Soup Dungeon Crawl Stone Soup is a game of dungeon exploration, combat and magic, involving characters of diverse skills, worshipp

This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.
This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.

iOS Viper Architecture: Sample App This repository contains a detailed sample app that implements VIPER architecture using libraries and frameworks li

APT repository app for jailbroken iOS devices
APT repository app for jailbroken iOS devices

Find Your Repos! RepoFinder is here to bring you a seamless way to add all of your favorite repositories right into the package manager of your choice

Repository to store the projects made during the 100 Days of Swift challenge by Paul Hudson of Hacking with Swift.

100DaysOfSwift 📱 Repository to store the projects made during the 100 Days of Swift challenge by Paul Hudson of Hacking with Swift. Days 1-12: Introd

This is a repository with an app that shows a list of posts and where you can access the detail of each of them
This is a repository with an app that shows a list of posts and where you can access the detail of each of them

PostsApp This is a repository with an app that shows a list of posts and where you can access the detail of each of them Dependencies You need to inst

Shared repository for architecture and other iOS helpers.

ArchKit A shared package for all the infrastructure required to support the Architecture styles I use in my own apps. Very shortly, this architecture

This repository hosts the PushwooshGeozones iOS SDK as an XCFramework based Swift Package.

This repository hosts the PushwooshGeozones iOS SDK as an XCFramework based Swift Package. Use this repository's Swift Package in Xcode 12+

A repository of example plugins for Delta Client

Example Plugins for Delta Client This repository contains a few example plugins to help developers get a practical understanding of how to use the plu

A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators

A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators This demonstration uses an iOS 13.7 sim

IrohaCrypto - This repository is managed by Terraform!

IrohaCrypto Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation IrohaC

A repository for training iOS programming and UI patterns.

iOS Swift Training This repository will be used for training iOS programming using Swift and UI patterns. Some examples may be simple, but they are us

This repository accompanies Modularizing Legacy Projects Using TDD: Test Driven Development with XCTest for iOS
This repository accompanies Modularizing Legacy Projects Using TDD: Test Driven Development with XCTest for iOS

Apress Source Code This repository accompanies Modularizing Legacy Projects Using TDD: Test Driven Development with XCTest for iOS by Khaled El-Morabe

Repository with example app for using Bar chart
Repository with example app for using Bar chart

Gráfico de Barras (Exemplo) Repositório com app exemplo para o uso do gráfico de Barras. O gráfico de barras é um gráfico com barras retangulares e co

Releases(0.1.1)
Owner
Gangyeol Kim
Gangyeol Kim
A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators

A repository that demonstrates the difficulty to run async tests with Xcode 13.2 beta on pre iOS-15 simulators This demonstration uses an iOS 13.7 sim

Gwendal Roué 0 Nov 1, 2021
A repository to experiment around the use and generation of tokens for the JLL/T Design System

Basic Style Dictionary This example code is bare-bones to show you what this framework can do. If you have the style-dictionary module installed globa

null 0 Dec 7, 2021
Repository to help people learning testing

Testing Training The purpose of this repository is to help people learn the basics of testing in Swift. I decided to prepare this repository because m

Riccardo 1 Dec 31, 2021
SwiftUITemplate - Template repository for SwiftUI projects

SwiftUITemplate Template repository for SwiftUI projects. Environment Name Versi

y-okudera 2 Jul 10, 2022
Template repository for quickly creating boilerplate code for a SwiftUI macOS app.

Sidebar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS app. License This app is released into the public

apparata 22 Dec 18, 2022
ADA Mini challenge 2 team 14 OXY's repository in morning session

OXY 누구나 쉬는 시간이 필요하니까!! ?? Features recording the degree of stress Playing with Donggle managing and relieving your stress by yourself comparing helpfu

개발자아카데미_포스텍 5 Jun 18, 2022
This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app.

Menu Bar App This is a template repository for quickly creating boilerplate code for a SwiftUI macOS menu bar app. License This app is released into t

apparata 5 Dec 6, 2022
MC2-Team3-SSAK3 Repository

?? Popopot ✨ About App "포항역과 포스텍을 오가는 택시팟을 편하게" 아카데미 러너들이 택시팟을 편하게 모을 수 있도록 도와주는 앱입니다. : Popopot makes the taxi gathering process easy and comfortable

개발자아카데미_포스텍 18 Dec 1, 2022
source of my jailbreak repository's tweaks

AllTweakSource source of my jailbreak repository's tweaks,enjoy~(please note that most of the tweaks in the repository are just built and test so can

LoveZ 2 Oct 24, 2022
Repository for the dgca verifier iOS app.

EU Digital COVID Certificate Verifier App - iOS About • Development • Documentation • Support • Contribute • Contributors • Licensing About This repos

null 47 May 19, 2022