@@ -4,56 +4,26 @@ A smooth, nice looking and IBDesignable flat design switch for iOS. Can be used
4
4
5
5
Inspired by Creativedash's Dribbble post [ here] ( http://dribbble.com/shots/1631598-On-Off )
6
6
7
- [ ![ Platform] (http://img.shields.io/badge/platform-ios-blue.svg?style=flat
8
- )] ( https://developer.apple.com/iphone/index.action )
9
- [ ![ Language] (http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat
10
- )] ( https://developer.apple.com/swift )
11
- [ ![ License] (http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat
12
- )] ( http://mit-license.org )
13
-
14
- <p ><a href =" url " ><img src =" https://s3.amazonaws.com/f.cl.ly/items/1p0w3B0E3m2I2k3e0z1Q/onoff.gif " align =" left " height =" 150 " width =" 200 " ></a ></p >
15
- <br ><br ><br ><br ><br ><br ><br >
7
+ <p align =" center " >
8
+ <a target =" _blank " rel =" noopener noreferrer " href =" http://dribbble.com/shots/1631598-On-Off " >
9
+ <img src =" https://s3.amazonaws.com/f.cl.ly/items/1p0w3B0E3m2I2k3e0z1Q/onoff.gif " width =" 200 " max-width =" 80% " alt =" Flat switch animation " >
10
+ </a >
11
+ </p >
12
+
13
+ <p align =" center " >
14
+ <img src =" https://img.shields.io/badge/Swift-5.0-orange.svg " />
15
+ <a href =" https://cocoapods.org/pods/AIFlatSwitch " >
16
+ <img src =" https://img.shields.io/cocoapods/v/AIFlatSwitch.svg " alt =" cocoapods " />
17
+ </a >
18
+ </p >
19
+ <p align =" center " >
20
+ <img src =" https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square " />
21
+ </p >
16
22
17
23
## Requirements
18
- - iOS 8.0+
19
- - Xcode 8.0+
20
- - Swift 5 (Use pod version 0.0.4 for Swift 2.3, pod 1.0.3 for Swift 3, pod 1.0.6 for Swift 4.2)
21
-
22
- ## Installation
23
-
24
- > ** Embedded frameworks require a minimum deployment target of iOS 8.**
25
-
26
- ### CocoaPods
27
-
28
- [ CocoaPods] ( http://cocoapods.org ) is a dependency manager for Cocoa projects.
29
-
30
- CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:
31
-
32
- ``` bash
33
- $ gem install cocoapods
34
- ```
35
-
36
- To integrate AIFlatSwitch into your Xcode project using CocoaPods, specify it in your ` Podfile ` :
37
-
38
- ``` ruby
39
- source ' https://github.com/CocoaPods/Specs.git'
40
- platform :ios , ' 8.0'
41
- use_frameworks!
42
-
43
- pod ' AIFlatSwitch' , ' ~> 1.0.6'
44
- ```
45
-
46
- Then, run the following command:
47
-
48
- ``` bash
49
- $ pod install
50
- ```
51
-
52
- ### Manually
53
- 1 . Download and drop ``` AIFlatSwitch.swift ``` in your project.
54
- 2 . Congratulations!
55
-
56
- ---
24
+ - iOS 8.0+, tvOS 12.0+
25
+ - Xcode 11.0+
26
+ - Swift 5
57
27
58
28
## Usage
59
29
@@ -119,9 +89,7 @@ flatSwitch.animatesOnTouch = false
119
89
120
90
- Make your changes in your branch
121
91
- Bump the pod version in AIFlatSwitch.podspec file (e.g. 1.0.1 to 1.0.2)
122
- - Make a pod install in Example project to update its dependency to new framework version you just created
123
92
- Make sure the Example project compiles and works fine in the Simulator
124
- - Find podspec version references in README.md and update them (e.g. Cocoapods section)
125
93
- Find references to your source code changes in README.md and update them (e.g. method names, changed features)
126
94
- Create a pull request
127
95
0 commit comments