Coder Social home page Coder Social logo

tkswitchercollection's Introduction

TKSwitcherCollection

An animate switch collection

Xcode 9.0+ iOS 8.0+ Swift 4.0+ Build Status CocoaPods Carthage compatible License MIT

Requirements

  • iOS 8.0+
  • Xcode 9.0
  • Swift 4.0

Installation

CocoaPods

You can use CocoaPods to install TKSwitcherCollection by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'TKSwitcherCollection'

To get the full benefits import TKSwitcherCollection wherever you import UIKit

import UIKit
import TKSwitcherCollection

Carthage

Create a Cartfile that lists the framework and run carthage update. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/TKSwitcherCollection.framework to an iOS project.

github "tbxark/TKSwitcherCollection"

Manually

  1. Download and drop TKSwitcherCollection in your project.
  2. Congratulations!

Usage example

Class Example
TKSimpleSwitch
TKSimpleSwitch
TKExchangeSwitch
TKSmileSwitch
TKLiquidSwitch

Release History

  • 1.4.2 add IBDesignable/IBInspectable support
  • 1.4.1 bugs fixed
  • 1.4.0 support swift 4.0
  • 1.3.1 support swift 3.0
  • 1.0.3 Complete basic functions, add Cocoapod and Carthage support

Contribute

We would love for you to contribute to TKSwitcherCollection, check the LICENSE file for more info.

Meta

TBXark โ€“ @tbxark โ€“ [email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/TBXark

tkswitchercollection's People

Contributors

tbxark avatar zhavoronkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tkswitchercollection's Issues

do not compile anymore

hello - loving it but it does not compile anymore ; even Xcode is trying to migrate it ; and the conversion fails. does anyone can help please? thank you

Can you add text content?

I think a feature can be added, which is to display one text content when closed, and another text content when opened

Problems setting size

Hello, first of all i wanted to say this library looks pretty awesome, so i decided to integrate it in my project. But i have a problem: i am not able to display it properly. I am working programmatically, setting the anchors, but i also tried with frame, making a CGRect. The switch looks always in the wrong proportions. Is there a way to solve this?

Changing colour issue

If you add this at the beginning of your setup view method, we won't be left with previous buttons when you change the colour programatically:

for view in self.subviews {
view.removeFromSuperview()
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.