├── .gitignore ├── .travis.yml ├── Example.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ ├── SimpleButton.xcscheme │ └── SimpleButtonTests.xcscheme ├── Example ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── CustomButtons.swift ├── DesignableButton.swift ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── garten.imageset │ │ ├── Contents.json │ │ └── garten.png ├── Info.plist ├── UIColorExtensions.swift └── ViewController.swift ├── LICENSE ├── Package.swift ├── README.md ├── Resources └── example.gif ├── SimpleButton.podspec ├── SimpleButton ├── Info.plist ├── SimpleButton.h ├── SimpleButton.swift ├── SimpleButtonControlState.swift └── SimpleButtonStateChangeValue.swift ├── SimpleButtonTests ├── Info.plist └── SimpleButtonTests.swift └── docs ├── Classes.html ├── Classes └── SimpleButton.html ├── Structs.html ├── Structs └── SimpleButtonControlState.html ├── badge.svg ├── css ├── highlight.css └── jazzy.css ├── docsets ├── SimpleButton.docset │ └── Contents │ │ ├── Info.plist │ │ └── Resources │ │ ├── Documents │ │ ├── Classes.html │ │ ├── Classes │ │ │ └── SimpleButton.html │ │ ├── Structs.html │ │ ├── Structs │ │ │ └── SimpleButtonControlState.html │ │ ├── css │ │ │ ├── highlight.css │ │ │ └── jazzy.css │ │ ├── img │ │ │ ├── carat.png │ │ │ ├── dash.png │ │ │ └── gh.png │ │ ├── index.html │ │ ├── js │ │ │ ├── jazzy.js │ │ │ └── jquery.min.js │ │ ├── search.json │ │ └── swift_output │ │ │ ├── Classes.html │ │ │ ├── Classes │ │ │ └── SimpleButton.html │ │ │ ├── Structs.html │ │ │ ├── Structs │ │ │ └── SimpleButtonControlState.html │ │ │ ├── badge.svg │ │ │ ├── css │ │ │ ├── highlight.css │ │ │ └── jazzy.css │ │ │ ├── docsets │ │ │ ├── SimpleButton.docset │ │ │ │ └── Contents │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── Resources │ │ │ │ │ ├── Documents │ │ │ │ │ ├── Classes.html │ │ │ │ │ ├── Classes │ │ │ │ │ │ └── SimpleButton.html │ │ │ │ │ ├── Structs.html │ │ │ │ │ ├── Structs │ │ │ │ │ │ └── SimpleButtonControlState.html │ │ │ │ │ ├── css │ │ │ │ │ │ ├── highlight.css │ │ │ │ │ │ └── jazzy.css │ │ │ │ │ ├── img │ │ │ │ │ │ ├── carat.png │ │ │ │ │ │ ├── dash.png │ │ │ │ │ │ └── gh.png │ │ │ │ │ ├── index.html │ │ │ │ │ ├── js │ │ │ │ │ │ ├── jazzy.js │ │ │ │ │ │ └── jquery.min.js │ │ │ │ │ └── search.json │ │ │ │ │ └── docSet.dsidx │ │ │ ├── SimpleButton.tgz │ │ │ └── SimpleButton.xml │ │ │ ├── img │ │ │ ├── carat.png │ │ │ ├── dash.png │ │ │ └── gh.png │ │ │ ├── index.html │ │ │ ├── js │ │ │ ├── jazzy.js │ │ │ └── jquery.min.js │ │ │ ├── search.json │ │ │ └── undocumented.json │ │ └── docSet.dsidx └── SimpleButton.tgz ├── img ├── carat.png ├── dash.png └── gh.png ├── index.html ├── js ├── jazzy.js └── jquery.min.js ├── search.json ├── swift_output ├── Classes.html ├── Classes │ └── SimpleButton.html ├── Structs.html ├── Structs │ └── SimpleButtonControlState.html ├── badge.svg ├── css │ ├── highlight.css │ └── jazzy.css ├── docsets │ ├── SimpleButton.docset │ │ └── Contents │ │ │ ├── Info.plist │ │ │ └── Resources │ │ │ ├── Documents │ │ │ ├── Classes.html │ │ │ ├── Classes │ │ │ │ └── SimpleButton.html │ │ │ ├── Structs.html │ │ │ ├── Structs │ │ │ │ └── SimpleButtonControlState.html │ │ │ ├── css │ │ │ │ ├── highlight.css │ │ │ │ └── jazzy.css │ │ │ ├── img │ │ │ │ ├── carat.png │ │ │ │ ├── dash.png │ │ │ │ └── gh.png │ │ │ ├── index.html │ │ │ ├── js │ │ │ │ ├── jazzy.js │ │ │ │ └── jquery.min.js │ │ │ └── search.json │ │ │ └── docSet.dsidx │ ├── SimpleButton.tgz │ └── SimpleButton.xml ├── img │ ├── carat.png │ ├── dash.png │ └── gh.png ├── index.html ├── js │ ├── jazzy.js │ └── jquery.min.js ├── search.json └── undocumented.json └── undocumented.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | .DS_Store 21 | 22 | # Swift Package Manager 23 | .build/ -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode10 3 | script: 4 | # The pipefail option sets the exit status to the last commond with a non-zero status code, which would usually be xcodebuild 5 | - set -o pipefail && xcodebuild test -project Example.xcodeproj -scheme SimpleButtonTests -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone x,OS=latest" | xcpretty 6 | -------------------------------------------------------------------------------- /Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example.xcodeproj/xcshareddata/xcschemes/SimpleButton.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 34 | 40 | 41 | 42 | 43 | 44 | 54 | 55 | 61 | 62 | 63 | 64 | 70 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /Example.xcodeproj/xcshareddata/xcschemes/SimpleButtonTests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 54 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Andreas Tinoco Lobo on 25.03.15. 6 | // Copyright (c) 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Example/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/CustomButtons.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CustomButtons.swift 3 | // Example 4 | // 5 | // Created by Andreas Tinoco Lobo on 08.04.15. 6 | // Copyright (c) 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import SimpleButton 11 | 12 | class ScaleButton: SimpleButton { 13 | override func configureButtonStyles() { 14 | super.configureButtonStyles() 15 | setBackgroundColor(UIColor.peterRiverColor(), for: .normal) 16 | setTitle("SCALE", for: .normal) 17 | setScale(1.0, for: .normal, animated: true, animationDuration: 0.25) 18 | setScale(0.96, for: .highlighted, animated: true, animationDuration: 0.1) 19 | } 20 | } 21 | 22 | class BackgroundColorButton: SimpleButton { 23 | override func configureButtonStyles() { 24 | super.configureButtonStyles() 25 | setBackgroundColor(UIColor.peterRiverColor(), for: .normal, animated: true, animationDuration: 0.2) 26 | setBackgroundColor(UIColor.belizeHoleColor(), for: .highlighted, animated: false) 27 | setBackgroundColor(UIColor.nephritisColor(), for: SimpleButtonControlState.loading) 28 | setTitle("BACKGROUND COLOR", for: .normal) 29 | } 30 | } 31 | 32 | class BorderWidthButton: SimpleButton { 33 | override func configureButtonStyles() { 34 | super.configureButtonStyles() 35 | setBackgroundColor(UIColor.alizarinColor(), for: .normal, animated: true) 36 | setBorderColor(UIColor.pomergranateColor(), for: .normal, animated: true) 37 | setTitle("BORDER WIDTH", for: .normal) 38 | setBorderWidth(4.0, for: .normal, animated: true, animationDuration: 0.2) 39 | setBorderWidth(8.0, for: .highlighted, animated: false) 40 | } 41 | } 42 | 43 | class BorderColorButton: SimpleButton { 44 | override func configureButtonStyles() { 45 | super.configureButtonStyles() 46 | setTitleColor(UIColor.alizarinColor(), for: .normal) 47 | setTitleColor(UIColor.pomergranateColor(), for: .highlighted) 48 | setBorderWidth(6.0, for: .normal) 49 | setBorderColor(UIColor.alizarinColor(), for: .normal, animationDuration: 0.3) 50 | setBorderColor(UIColor.pomergranateColor(), for: .highlighted, animated: false) 51 | setTitle("BORDER COLOR", for: .normal) 52 | } 53 | } 54 | 55 | class CornerRadiusButton: SimpleButton { 56 | override func configureButtonStyles() { 57 | super.configureButtonStyles() 58 | setBackgroundColor(UIColor.peterRiverColor(), for: .normal, animated: true) 59 | setTitle("RADIUS", for: .normal) 60 | setCornerRadius(10.0, for: .normal, animated: true) 61 | setCornerRadius(30.0, for: .highlighted, animated: true) 62 | } 63 | } 64 | 65 | class ShadowButton: SimpleButton { 66 | override func configureButtonStyles() { 67 | super.configureButtonStyles() 68 | setShadowRadius(10, for: .normal, animated: true) 69 | setShadowRadius(3, for: .highlighted, animated: true) 70 | setBackgroundColor(UIColor.alizarinColor(), for: .normal, animated: true) 71 | setShadowColor(UIColor.asbestosColor(), for: .normal) 72 | setShadowOpacity(1.0, for: .normal, animated: true) 73 | setShadowOffset(CGSize(width: 0, height: 0), for: .normal, animated: true) 74 | setTitle("SHADOW", for: .normal) 75 | } 76 | } 77 | 78 | class LoadingButton: SimpleButton { 79 | override func configureButtonStyles() { 80 | super.configureButtonStyles() 81 | setBackgroundColor(UIColor.peterRiverColor(), for: .normal) 82 | setBackgroundColor(UIColor.belizeHoleColor(), for: .highlighted) 83 | setBackgroundColor(UIColor.asbestosColor(), for: SimpleButtonControlState.loading) 84 | loadingView = createCustomLoadingView() 85 | setTitleColor(UIColor.white, for: .normal) 86 | setTitle("PRESS TO START LOADING", for: .normal) 87 | } 88 | 89 | private func createCustomLoadingView() -> UIView { 90 | let view = UIView() 91 | let imageView = UIImageView(image: UIImage(named: "garten")) 92 | 93 | view.addSubview(imageView) 94 | 95 | imageView.translatesAutoresizingMaskIntoConstraints = false 96 | imageView.heightAnchor.constraint(equalToConstant: 40).isActive = true 97 | imageView.contentMode = .scaleAspectFit 98 | imageView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true 99 | view.backgroundColor = .red 100 | 101 | return view 102 | } 103 | } 104 | 105 | class DisabledButton: SimpleButton { 106 | override func configureButtonStyles() { 107 | super.configureButtonStyles() 108 | setBackgroundColor(UIColor.alizarinColor(), for: .normal) 109 | setBackgroundColor(UIColor.pomergranateColor(), for: .highlighted) 110 | setTitle("PRESS TO DISABLE BUTTON", for: .normal) 111 | setTitle("BUTTON DISABLED", for: .disabled) 112 | setBackgroundColor(UIColor.silverColor(), for: .disabled) 113 | setTitleColor(UIColor.white, for: .normal) 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /Example/DesignableButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DesignableButton.swift 3 | // Example 4 | // 5 | // Created by Gunter Hager on 03.06.16. 6 | // Copyright © 2016 all about apps. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SimpleButton 11 | 12 | @IBDesignable 13 | 14 | class DesignableButton: SimpleButton { 15 | 16 | /// Background color for normal state. 17 | @IBInspectable var backgroundColorNormal: UIColor? 18 | @IBInspectable var backgroundColorHighlight: UIColor? 19 | @IBInspectable var titleColorNormal: UIColor? 20 | @IBInspectable var titleColorHighlighted: UIColor? 21 | 22 | @IBInspectable var shadow: Bool = false 23 | @IBInspectable var shadowColor: UIColor? 24 | @IBInspectable var shadowOffset: CGSize = CGSize.zero 25 | @IBInspectable var shadowRadius: CGFloat = 0 26 | @IBInspectable var shadowOpacity: Float = 0 27 | 28 | override func configureButtonStyles() { 29 | super.configureButtonStyles() 30 | 31 | if let backgroundColorNormal = backgroundColorNormal { 32 | setBackgroundColor(backgroundColorNormal, for: .normal) 33 | } 34 | if let backgroundColorHighlight = backgroundColorHighlight { 35 | setBackgroundColor(backgroundColorHighlight, for: .highlighted) 36 | } 37 | if let titleColorNormal = titleColorNormal { 38 | setTitleColor(titleColorNormal, for: .normal) 39 | } 40 | if let titleColorHighlighted = titleColorHighlighted { 41 | setTitleColor(titleColorHighlighted, for: .highlighted) 42 | } 43 | 44 | if shadow { 45 | if let shadowColor = shadowColor { 46 | setShadowColor(shadowColor) 47 | } 48 | setShadowOffset(shadowOffset) 49 | setShadowRadius(shadowRadius) 50 | setShadowOpacity(shadowOpacity) 51 | } 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Example/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Images.xcassets/garten.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "garten.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/Images.xcassets/garten.imageset/garten.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/Example/Images.xcassets/garten.imageset/garten.png -------------------------------------------------------------------------------- /Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/UIColorExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColorExtensions.swift 3 | // 4 | // Created by Mihails Tumkins on 10/02/15. 5 | // 6 | 7 | import UIKit 8 | 9 | extension UIColor { 10 | convenience init(r: Int, g:Int, b:Int) { 11 | self.init(red: CGFloat(r)/255, green: CGFloat(g)/255, blue: CGFloat(b)/255, alpha: 1.0) 12 | } 13 | 14 | class func turquoiseColor()->UIColor { 15 | return UIColor(r: 26, g: 188, b: 156) 16 | } 17 | 18 | class func greenSeaColor()->UIColor { 19 | return UIColor(r: 22, g: 160, b: 133) 20 | } 21 | 22 | class func emeraldColor()->UIColor { 23 | return UIColor(r: 46, g: 204, b: 113) 24 | } 25 | 26 | class func nephritisColor()->UIColor { 27 | return UIColor(r: 39, g: 174, b: 96) 28 | } 29 | 30 | class func peterRiverColor()->UIColor { 31 | return UIColor(r: 52, g: 152, b: 219) 32 | } 33 | 34 | class func belizeHoleColor()->UIColor { 35 | return UIColor(r: 41, g: 128, b: 185) 36 | } 37 | 38 | class func amethystColor()->UIColor { 39 | return UIColor(r:155, g:89, b:182) 40 | } 41 | 42 | class func wisteriaColor()->UIColor { 43 | return UIColor(r:142, g:68, b:173) 44 | } 45 | 46 | class func wetAsphaltColor()->UIColor { 47 | return UIColor(r:52, g:73, b:94) 48 | } 49 | 50 | class func midnightBlueColor()->UIColor { 51 | return UIColor(r:44, g:62, b:80) 52 | } 53 | 54 | class func sunflowerColor()->UIColor { 55 | return UIColor(r:241, g:196, b:15) 56 | } 57 | 58 | class func carrotColor()->UIColor { 59 | return UIColor(r:230, g:126, b:34) 60 | } 61 | 62 | class func pumpkinColor()->UIColor { 63 | return UIColor(r:211, g:84, b:0) 64 | } 65 | 66 | class func alizarinColor()->UIColor { 67 | return UIColor(r:231, g:76, b:60) 68 | } 69 | 70 | class func pomergranateColor()->UIColor { 71 | return UIColor(r:192, g:57, b:43) 72 | } 73 | 74 | class func cloudsColor()->UIColor { 75 | return UIColor(r:236, g:240, b:241) 76 | } 77 | 78 | class func silverColor()->UIColor { 79 | return UIColor(r:189, g:195, b:199) 80 | } 81 | 82 | class func concreteColor()->UIColor { 83 | return UIColor(r:149, g:165, b:166) 84 | } 85 | 86 | class func asbestosColor()->UIColor { 87 | return UIColor(r:127, g:140, b:141) 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Andreas Tinoco Lobo on 12/11/15. 6 | // Copyright © 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SimpleButton 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var saveButton: LoadingButton! 15 | @IBOutlet weak var disabledButton: DisabledButton! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | // create SimpleButton from code 20 | } 21 | 22 | @IBAction func disabledButtonTouchUpInside(_ sender: AnyObject) { 23 | 24 | disabledButton.isEnabled = false 25 | 26 | // Delay execution of my block for 3 seconds. 27 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(UInt64(3) * NSEC_PER_SEC)) / Double(NSEC_PER_SEC)) { 28 | self.disabledButton.isEnabled = true 29 | } 30 | } 31 | 32 | 33 | @IBAction func saveButtonTouchUpInside(_ sender: AnyObject) { 34 | 35 | saveButton.isLoading = true 36 | 37 | // Delay execution of my block for 3 seconds. 38 | DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(UInt64(3) * NSEC_PER_SEC)) / Double(NSEC_PER_SEC)) { 39 | self.saveButton.isLoading = false 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Andreas Tinoco Lobo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.0 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "SimpleButton", 7 | platforms: [ 8 | .iOS(.v11) 9 | ], 10 | products: [ 11 | .library(name: "SimpleButton", targets: ["SimpleButton"]) 12 | ], 13 | dependencies: [ 14 | ], 15 | targets: [ 16 | .target(name: "SimpleButton", dependencies: [], path: "SimpleButton/") 17 | ], 18 | swiftLanguageVersions: [.v5] 19 | ) 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SimpleButton 2 | 3 | ![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat) 4 | [![Build Status](https://travis-ci.org/aloco/SimpleButton.svg?branch=swift-3.0)](https://travis-ci.org/aloco/SimpleButton) 5 | ![Swift 5](https://img.shields.io/badge/Swift-5-orange.svg) 6 | 7 | 8 | UIButton subclass with animated, state-aware attributes. Easy to subclass and configure! [Full API docs](http://aloco.github.io/SimpleButton/swift_output) 9 | 10 | 11 | 12 | ![Sample](https://raw.githubusercontent.com/aloco/SimpleButton/master/Resources/example.gif) 13 | 14 | 15 | 16 | ## Usage 17 | 18 | Just create your own `SimpleButton` subclass and configure your button attributes by overriding `configureButtonStyles`. 19 | 20 | ```swift 21 | class PrimaryButton: SimpleButton { 22 | override func configureButtonStyles() { 23 | super.configureButtonStyles() 24 | setBorderWidth(4.0, for: .normal) 25 | setBackgroundColor(UIColor(red: 52/255, green: 73/255, blue: 94/255, alpha: 1.0), for: .normal) 26 | setBackgroundColor(UIColor(red: 44/255, green: 62/255, blue: 80/255, alpha: 1.0), for: .highlighted) 27 | setBorderColor(UIColor(red: 44/255, green: 62/255, blue: 80/255, alpha: 1.0), for: .normal) 28 | setScale(0.98, for: .highlighted) 29 | setTitleColor(UIColor.whiteColor(), for: .normal) 30 | } 31 | } 32 | ``` 33 | For usage in Interfacebuilder, just use your `SimpleButton` subclass as custom class for any `UIButton` element. All defined styles gets applied automatically. 34 | 35 | You can also configure your button without a subclass directly inline. 36 | 37 | ```swift 38 | let awesomeButton = SimpleButton(type: .custom) 39 | awesomeButton.setBorderWidth(2.0, for: .normal) 40 | awesomeButton.setBorderColor(UIColor.redColor(), for: .highlighted) 41 | view.addSubview(awesomeButton) 42 | ``` 43 | Note that you should use `UIButtonType.custom` to avoid undesired effects. 44 | 45 | Please checkout the example project for a detailed usage demo. 46 | 47 | 48 | #### @IBDesignable 49 | 50 | Have a look on [DesignableButton](Example/DesignableButton.swift) subclass within the Example Project for `@IBDesignable` usage. 51 | 52 | ### Animation 53 | Each state change of `SimpleButton` animates by default. Sometimes you need to define which state transition should animate and which should happen immediately. Therefore you can control that behaviour with the `animated` and `animationDuration` parameters. 54 | 55 | ``` 56 | setBorderWidth(4.0, for: .normal, animated: true, animationDuration: 0.2) 57 | setBorderWidth(8.0, for: .highlighted, animated: false) 58 | ``` 59 | This means, every state change to `.normal` animates the `borderWidth` to `4.0`. 60 | Every state change to `.highlighted` changes instantly the `borderWidth` to `8.0` without animation. 61 | 62 | ### Loading state 63 | 64 | `SimpleButton` has a custom `loading` state. You can toggle this state by setting `simpleButton.isLoading`. The button shows an `UIActivityIndicator` instead of the title when adding the `loading` state. 65 | 66 | ``` 67 | simpleButton.setCornerRadius(20, for: SimpleButtonControlState.loading) 68 | simpleButton.isLoading = true 69 | ``` 70 | If you don´t like the default loading indicator, you can set your own `UIView` by doing 71 | ``` 72 | simpleButton.loadingView = CustomAwesomeLoadingView() 73 | ``` 74 | 75 | Please note, when using a custom loading view don´t forget to handle the position and initial add to subview by yourself to fit your needs. 76 | 77 | ## Configurable attributes 78 | 79 | Take a look at the ```Setter for state attributes``` section of the [API Docs](http://aloco.github.io/SimpleButton/swift_output/Classes/SimpleButton.html#/Setter%20for%20state%20attributes) 80 | 81 | ## Installation 82 | 83 | Note that SimpleButton is written in `swift 5` and may not be compatible with previous versions of swift. 84 | 85 | #### Swift Package Manager (Recommended) 86 | 87 | Add the following dependency to your `Package.swift` file: 88 | 89 | ``` 90 | .package(url: "https://github.com/allaboutapps/SimpleButton.git", from: "5.0.0") 91 | ``` 92 | 93 | #### Carthage 94 | 95 | Add the following line to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile). 96 | 97 | ``` 98 | github "allaboutapps/SimpleButton" ~> 5.0 99 | ``` 100 | 101 | Then run `carthage update`. 102 | 103 | #### Manually 104 | 105 | Just drag and drop the `SimpleButton.swift` file into your project. 106 | 107 | 108 | ## Contributing 109 | 110 | * Create something awesome, make the code better, add some functionality, 111 | whatever (this is the hardest part). 112 | * [Fork it](http://help.github.com/forking/) 113 | * Create new branch to make your changes 114 | * Commit all your changes to your branch 115 | * Submit a [pull request](http://help.github.com/pull-requests/) 116 | -------------------------------------------------------------------------------- /Resources/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/Resources/example.gif -------------------------------------------------------------------------------- /SimpleButton.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "SimpleButton" 3 | s.version = "4.0.1" 4 | s.summary = "Simple UIButton subclass with additional state change animations (e.g. backgroundColor)" 5 | s.description = "Simple UIButton subclass with animated, state-aware attributes. Easy to subclass and configure!" 6 | s.homepage = "https://github.com/aloco/SimpleButton" 7 | s.license = { :type => "MIT", :file => "LICENSE" } 8 | s.author = { "Andreas Tinoco Lobo" => "andreas@tinoco-lobo.at" } 9 | s.platform = :ios 10 | s.ios.deployment_target = "8.1" 11 | s.source = { :git => "https://github.com/aloco/SimpleButton.git", :tag => s.version } 12 | s.requires_arc = true 13 | s.source_files = "SimpleButton/*.swift" 14 | s.swift_version = "4.0" 15 | end 16 | -------------------------------------------------------------------------------- /SimpleButton/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SimpleButton/SimpleButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleButton.h 3 | // SimpleButton 4 | // 5 | // Created by Andreas Tinoco Lobo on 25.03.15. 6 | // Copyright (c) 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SimpleButton. 12 | FOUNDATION_EXPORT double SimpleButtonVersionNumber; 13 | 14 | //! Project version string for SimpleButton. 15 | FOUNDATION_EXPORT const unsigned char SimpleButtonVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /SimpleButton/SimpleButtonControlState.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleButtonControlState.swift 3 | // Example 4 | // 5 | // Created by Andreas Tinoco Lobo on 03/11/15. 6 | // Copyright © 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | /** 12 | * Custom SimpleButton control state 13 | */ 14 | public struct SimpleButtonControlState { 15 | /// Indicates loading state of SimpleButton 16 | public static let loading: UIControl.State = UIControl.State(rawValue: 1 << 16) 17 | } 18 | -------------------------------------------------------------------------------- /SimpleButton/SimpleButtonStateChangeValue.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SimpleButtonStateChangeValue.swift 3 | // Example 4 | // 5 | // Created by Andreas Tinoco Lobo on 03/11/15. 6 | // Copyright © 2015 Andreas Tinoco Lobo. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | /** 11 | * defines whether state transition to a given value should animate and at which speed 12 | */ 13 | struct SimpleButtonStateChangeValue { 14 | let value: T 15 | let animated: Bool 16 | let animationDuration: TimeInterval 17 | } 18 | -------------------------------------------------------------------------------- /SimpleButtonTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

Classes

52 |

The following classes are available globally.

53 | 54 |
55 |
56 |
57 |
    58 |
  • 59 |
    60 | 61 | 62 | 63 | SimpleButton 64 | 65 |
    66 |
    67 |
    68 |
    69 |
    70 |
    71 |

    Undocumented

    72 | 73 | See more 74 |
    75 |
    76 |

    Declaration

    77 |
    78 |

    Swift

    79 |
    open class SimpleButton : UIButton
    80 | 81 |
    82 |
    83 |
    84 |
    85 |
  • 86 |
87 |
88 |
89 |
90 | 94 |
95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

Structures

52 |

The following structures are available globally.

53 | 54 |
55 |
56 |
57 |
    58 |
  • 59 |
    60 | 61 | 62 | 63 | SimpleButtonControlState 64 | 65 |
    66 |
    67 |
    68 |
    69 |
    70 |
    71 |

    Custom SimpleButton control state

    72 | 73 | See more 74 |
    75 |
    76 |

    Declaration

    77 |
    78 |

    Swift

    79 |
    public struct SimpleButtonControlState
    80 | 81 |
    82 |
    83 |
    84 |
    85 |
  • 86 |
87 |
88 |
89 |
90 | 94 |
95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

SimpleButtonControlState

52 |
53 |
54 |
public struct SimpleButtonControlState
55 | 56 |
57 |
58 |

Custom SimpleButton control state

59 | 60 |
61 |
62 |
63 |
    64 |
  • 65 |
    66 | 67 | 68 | 69 | loading 70 | 71 |
    72 |
    73 |
    74 |
    75 |
    76 |
    77 |

    Indicates loading state of SimpleButton

    78 | 79 |
    80 |
    81 |

    Declaration

    82 |
    83 |

    Swift

    84 |
    public static let loading: UIControl.State
    85 | 86 |
    87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/badge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | documentation 17 | 18 | 19 | documentation 20 | 21 | 22 | 65% 23 | 24 | 25 | 65% 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.jazzy.simplebutton 7 | CFBundleName 8 | SimpleButton 9 | DocSetPlatformFamily 10 | simplebutton 11 | isDashDocset 12 | 13 | dashIndexFilePath 14 | index.html 15 | isJavaScriptEnabled 16 | 17 | DashDocSetFamily 18 | dashtoc 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

Classes

52 |

The following classes are available globally.

53 | 54 |
55 |
56 |
57 |
    58 |
  • 59 |
    60 | 61 | 62 | 63 | SimpleButton 64 | 65 |
    66 |
    67 |
    68 |
    69 |
    70 |
    71 |

    Undocumented

    72 | 73 | See more 74 |
    75 |
    76 |

    Declaration

    77 |
    78 |

    Swift

    79 |
    open class SimpleButton : UIButton
    80 | 81 |
    82 |
    83 |
    84 |
    85 |
  • 86 |
87 |
88 |
89 |
90 | 94 |
95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

Structures

52 |

The following structures are available globally.

53 | 54 |
55 |
56 |
57 |
    58 |
  • 59 |
    60 | 61 | 62 | 63 | SimpleButtonControlState 64 | 65 |
    66 |
    67 |
    68 |
    69 |
    70 |
    71 |

    Custom SimpleButton control state

    72 | 73 | See more 74 |
    75 |
    76 |

    Declaration

    77 |
    78 |

    Swift

    79 |
    public struct SimpleButtonControlState
    80 | 81 |
    82 |
    83 |
    84 |
    85 |
  • 86 |
87 |
88 |
89 |
90 | 94 |
95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |
19 |
20 |
21 | 26 |
27 |
28 | 48 |
49 |
50 |
51 |

SimpleButtonControlState

52 |
53 |
54 |
public struct SimpleButtonControlState
55 | 56 |
57 |
58 |

Custom SimpleButton control state

59 | 60 |
61 |
62 |
63 |
    64 |
  • 65 |
    66 | 67 | 68 | 69 | loading 70 | 71 |
    72 |
    73 |
    74 |
    75 |
    76 |
    77 |

    Indicates loading state of SimpleButton

    78 | 79 |
    80 |
    81 |

    Declaration

    82 |
    83 |

    Swift

    84 |
    public static let loading: UIControl.State
    85 | 86 |
    87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/search.json: -------------------------------------------------------------------------------- 1 | {"Structs/SimpleButtonControlState.html#/s:12SimpleButton0aB12ControlStateV7loadingSo09UIControlD0VvpZ":{"name":"loading","abstract":"

Indicates loading state of SimpleButton

","parent_name":"SimpleButtonControlState"},"Structs/SimpleButtonControlState.html":{"name":"SimpleButtonControlState","abstract":"

Custom SimpleButton control state

"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC11loadingViewSo6UIViewCSgvp":{"name":"loadingView","abstract":"

Loading view. UIActivityIndicatorView as default

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC24defaultAnimationDurationSdvp":{"name":"defaultAnimationDuration","abstract":"

Default duration of animated state change.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)state":{"name":"state","abstract":"

Represents current button state.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)enabled":{"name":"isEnabled","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)highlighted":{"name":"isHighlighted","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)selected":{"name":"isSelected","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC9isLoadingSbvp":{"name":"isLoading","abstract":"

A Boolean value that determines the SimpleButton´s loading state.","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithFrame:":{"name":"init(frame:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithCoder:":{"name":"init(coder:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)prepareForInterfaceBuilder":{"name":"prepareForInterfaceBuilder()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)awakeFromNib":{"name":"awakeFromNib()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC09configureB6StylesyyF":{"name":"configureButtonStyles()","abstract":"

To define various styles for specific button states, override this function and set attributes for specific states (e.g. setBackgroundColor(UIColor.blueColor(), for: .Highlighted, animated: true))

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC8setScale_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setScale(_:for:animated:animationDuration:)","abstract":"

Sets the scale for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC18setBackgroundColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBackgroundColor(_:for:animated:animationDuration:)","abstract":"

Sets the background color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderWidth_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setBorderWidth(_:for:animated:animationDuration:)","abstract":"

Sets the border width for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBorderColor(_:for:animated:animationDuration:)","abstract":"

Sets the border color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setCornerRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setCornerRadius(_:for:animated:animationDuration:)","abstract":"

Sets the corner radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setShadowColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setShadowColor(_:for:animated:animationDuration:)","abstract":"

Sets the shadow color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC16setShadowOpacity_3for8animated17animationDurationySf_So14UIControlStateVSbSdSgtF":{"name":"setShadowOpacity(_:for:animated:animationDuration:)","abstract":"

Sets the shadow opacity for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setShadowRadius(_:for:animated:animationDuration:)","abstract":"

Sets the shadow radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowOffset_3for8animated17animationDurationySo6CGSizeV_So14UIControlStateVSbSdSgtF":{"name":"setShadowOffset(_:for:animated:animationDuration:)","abstract":"

Sets the shadow offset for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC20setTitleImageSpacingyy12CoreGraphics7CGFloatVF":{"name":"setTitleImageSpacing(_:)","abstract":"

Sets the spacing between titleLabel and imageView

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)layoutSubviews":{"name":"layoutSubviews()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html":{"name":"SimpleButton","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Classes

54 |

The following classes are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButton 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Undocumented

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    open class SimpleButton : UIButton
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Structures

54 |

The following structures are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButtonControlState 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Custom SimpleButton control state

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    public struct SimpleButtonControlState
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

SimpleButtonControlState

54 |
55 |
56 |
public struct SimpleButtonControlState
57 | 58 |
59 |
60 |

Custom SimpleButton control state

61 | 62 |
63 |
64 |
65 |
    66 |
  • 67 |
    68 | 69 | 70 | 71 | loading 72 | 73 |
    74 |
    75 |
    76 |
    77 |
    78 |
    79 |

    Indicates loading state of SimpleButton

    80 | 81 |
    82 |
    83 |

    Declaration

    84 |
    85 |

    Swift

    86 |
    public static let loading: UIControl.State
    87 | 88 |
    89 |
    90 |
    91 | Show on GitHub 92 |
    93 |
    94 |
    95 |
  • 96 |
97 |
98 |
99 |
100 | 104 |
105 |
106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/badge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | documentation 17 | 18 | 19 | documentation 20 | 21 | 22 | 65% 23 | 24 | 25 | 65% 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.jazzy.simplebutton 7 | CFBundleName 8 | SimpleButton 9 | DocSetPlatformFamily 10 | simplebutton 11 | isDashDocset 12 | 13 | dashIndexFilePath 14 | index.html 15 | isJavaScriptEnabled 16 | 17 | DashDocSetFamily 18 | dashtoc 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Classes

54 |

The following classes are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButton 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Undocumented

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    open class SimpleButton : UIButton
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Structures

54 |

The following structures are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButtonControlState 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Custom SimpleButton control state

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    public struct SimpleButtonControlState
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

SimpleButtonControlState

54 |
55 |
56 |
public struct SimpleButtonControlState
57 | 58 |
59 |
60 |

Custom SimpleButton control state

61 | 62 |
63 |
64 |
65 |
    66 |
  • 67 |
    68 | 69 | 70 | 71 | loading 72 | 73 |
    74 |
    75 |
    76 |
    77 |
    78 |
    79 |

    Indicates loading state of SimpleButton

    80 | 81 |
    82 |
    83 |

    Declaration

    84 |
    85 |

    Swift

    86 |
    public static let loading: UIControl.State
    87 | 88 |
    89 |
    90 |
    91 | Show on GitHub 92 |
    93 |
    94 |
    95 |
  • 96 |
97 |
98 |
99 |
100 | 104 |
105 |
106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.tgz -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/docsets/SimpleButton.xml: -------------------------------------------------------------------------------- 1 | 4.0https://github.com/aloco/SimpleButton/tree/swift-4.0/api/docsets/SimpleButton.tgz 2 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/carat.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/dash.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/img/gh.png -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/search.json: -------------------------------------------------------------------------------- 1 | {"Structs/SimpleButtonControlState.html#/s:12SimpleButton0aB12ControlStateV7loadingSo09UIControlD0VvpZ":{"name":"loading","abstract":"

Indicates loading state of SimpleButton

","parent_name":"SimpleButtonControlState"},"Structs/SimpleButtonControlState.html":{"name":"SimpleButtonControlState","abstract":"

Custom SimpleButton control state

"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC11loadingViewSo6UIViewCSgvp":{"name":"loadingView","abstract":"

Loading view. UIActivityIndicatorView as default

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC24defaultAnimationDurationSdvp":{"name":"defaultAnimationDuration","abstract":"

Default duration of animated state change.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)state":{"name":"state","abstract":"

Represents current button state.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)enabled":{"name":"isEnabled","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)highlighted":{"name":"isHighlighted","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)selected":{"name":"isSelected","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC9isLoadingSbvp":{"name":"isLoading","abstract":"

A Boolean value that determines the SimpleButton´s loading state.","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithFrame:":{"name":"init(frame:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithCoder:":{"name":"init(coder:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)prepareForInterfaceBuilder":{"name":"prepareForInterfaceBuilder()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)awakeFromNib":{"name":"awakeFromNib()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC09configureB6StylesyyF":{"name":"configureButtonStyles()","abstract":"

To define various styles for specific button states, override this function and set attributes for specific states (e.g. setBackgroundColor(UIColor.blueColor(), for: .Highlighted, animated: true))

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC8setScale_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setScale(_:for:animated:animationDuration:)","abstract":"

Sets the scale for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC18setBackgroundColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBackgroundColor(_:for:animated:animationDuration:)","abstract":"

Sets the background color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderWidth_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setBorderWidth(_:for:animated:animationDuration:)","abstract":"

Sets the border width for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBorderColor(_:for:animated:animationDuration:)","abstract":"

Sets the border color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setCornerRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setCornerRadius(_:for:animated:animationDuration:)","abstract":"

Sets the corner radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setShadowColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setShadowColor(_:for:animated:animationDuration:)","abstract":"

Sets the shadow color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC16setShadowOpacity_3for8animated17animationDurationySf_So14UIControlStateVSbSdSgtF":{"name":"setShadowOpacity(_:for:animated:animationDuration:)","abstract":"

Sets the shadow opacity for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setShadowRadius(_:for:animated:animationDuration:)","abstract":"

Sets the shadow radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowOffset_3for8animated17animationDurationySo6CGSizeV_So14UIControlStateVSbSdSgtF":{"name":"setShadowOffset(_:for:animated:animationDuration:)","abstract":"

Sets the shadow offset for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC20setTitleImageSpacingyy12CoreGraphics7CGFloatVF":{"name":"setTitleImageSpacing(_:)","abstract":"

Sets the spacing between titleLabel and imageView

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)layoutSubviews":{"name":"layoutSubviews()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html":{"name":"SimpleButton","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/Documents/swift_output/undocumented.json: -------------------------------------------------------------------------------- 1 | { 2 | "warnings": [ 3 | { 4 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 5 | "line": 12, 6 | "symbol": "SimpleButton", 7 | "symbol_kind": "source.lang.swift.decl.class", 8 | "warning": "undocumented" 9 | }, 10 | { 11 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 12 | "line": 90, 13 | "symbol": "SimpleButton.isEnabled", 14 | "symbol_kind": "source.lang.swift.decl.var.instance", 15 | "warning": "undocumented" 16 | }, 17 | { 18 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 19 | "line": 103, 20 | "symbol": "SimpleButton.isHighlighted", 21 | "symbol_kind": "source.lang.swift.decl.var.instance", 22 | "warning": "undocumented" 23 | }, 24 | { 25 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 26 | "line": 109, 27 | "symbol": "SimpleButton.isSelected", 28 | "symbol_kind": "source.lang.swift.decl.var.instance", 29 | "warning": "undocumented" 30 | }, 31 | { 32 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 33 | "line": 150, 34 | "symbol": "SimpleButton.init(frame:)", 35 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 36 | "warning": "undocumented" 37 | }, 38 | { 39 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 40 | "line": 155, 41 | "symbol": "SimpleButton.init(coder:)", 42 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 43 | "warning": "undocumented" 44 | }, 45 | { 46 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 47 | "line": 160, 48 | "symbol": "SimpleButton.prepareForInterfaceBuilder()", 49 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 50 | "warning": "undocumented" 51 | }, 52 | { 53 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 54 | "line": 165, 55 | "symbol": "SimpleButton.awakeFromNib()", 56 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 57 | "warning": "undocumented" 58 | }, 59 | { 60 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 61 | "line": 426, 62 | "symbol": "SimpleButton.layoutSubviews()", 63 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 64 | "warning": "undocumented" 65 | } 66 | ], 67 | "source_directory": "/Users/andreastinocolobo/Applications/iOS/SimpleButton" 68 | } -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx -------------------------------------------------------------------------------- /docs/docsets/SimpleButton.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/docsets/SimpleButton.tgz -------------------------------------------------------------------------------- /docs/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/img/carat.png -------------------------------------------------------------------------------- /docs/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/img/dash.png -------------------------------------------------------------------------------- /docs/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/img/gh.png -------------------------------------------------------------------------------- /docs/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/search.json: -------------------------------------------------------------------------------- 1 | {"Structs/SimpleButtonControlState.html#/s:12SimpleButton0aB12ControlStateV7loadingSo09UIControlD0VvpZ":{"name":"loading","abstract":"

Indicates loading state of SimpleButton

","parent_name":"SimpleButtonControlState"},"Structs/SimpleButtonControlState.html":{"name":"SimpleButtonControlState","abstract":"

Custom SimpleButton control state

"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC11loadingViewSo6UIViewCSgvp":{"name":"loadingView","abstract":"

Loading view. UIActivityIndicatorView as default

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC24defaultAnimationDurationSdvp":{"name":"defaultAnimationDuration","abstract":"

Default duration of animated state change.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)state":{"name":"state","abstract":"

Represents current button state.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)enabled":{"name":"isEnabled","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)highlighted":{"name":"isHighlighted","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)selected":{"name":"isSelected","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC9isLoadingSbvp":{"name":"isLoading","abstract":"

A Boolean value that determines the SimpleButton´s loading state.","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithFrame:":{"name":"init(frame:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithCoder:":{"name":"init(coder:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)prepareForInterfaceBuilder":{"name":"prepareForInterfaceBuilder()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)awakeFromNib":{"name":"awakeFromNib()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC09configureB6StylesyyF":{"name":"configureButtonStyles()","abstract":"

To define various styles for specific button states, override this function and set attributes for specific states (e.g. setBackgroundColor(UIColor.blueColor(), for: .Highlighted, animated: true))

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC8setScale_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setScale(_:for:animated:animationDuration:)","abstract":"

Sets the scale for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC18setBackgroundColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBackgroundColor(_:for:animated:animationDuration:)","abstract":"

Sets the background color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderWidth_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setBorderWidth(_:for:animated:animationDuration:)","abstract":"

Sets the border width for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBorderColor(_:for:animated:animationDuration:)","abstract":"

Sets the border color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setCornerRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setCornerRadius(_:for:animated:animationDuration:)","abstract":"

Sets the corner radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setShadowColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setShadowColor(_:for:animated:animationDuration:)","abstract":"

Sets the shadow color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC16setShadowOpacity_3for8animated17animationDurationySf_So14UIControlStateVSbSdSgtF":{"name":"setShadowOpacity(_:for:animated:animationDuration:)","abstract":"

Sets the shadow opacity for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setShadowRadius(_:for:animated:animationDuration:)","abstract":"

Sets the shadow radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowOffset_3for8animated17animationDurationySo6CGSizeV_So14UIControlStateVSbSdSgtF":{"name":"setShadowOffset(_:for:animated:animationDuration:)","abstract":"

Sets the shadow offset for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC20setTitleImageSpacingyy12CoreGraphics7CGFloatVF":{"name":"setTitleImageSpacing(_:)","abstract":"

Sets the spacing between titleLabel and imageView

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)layoutSubviews":{"name":"layoutSubviews()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html":{"name":"SimpleButton","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} -------------------------------------------------------------------------------- /docs/swift_output/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Classes

54 |

The following classes are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButton 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Undocumented

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    open class SimpleButton : UIButton
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/swift_output/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Structures

54 |

The following structures are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButtonControlState 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Custom SimpleButton control state

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    public struct SimpleButtonControlState
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/swift_output/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

SimpleButtonControlState

54 |
55 |
56 |
public struct SimpleButtonControlState
57 | 58 |
59 |
60 |

Custom SimpleButton control state

61 | 62 |
63 |
64 |
65 |
    66 |
  • 67 |
    68 | 69 | 70 | 71 | loading 72 | 73 |
    74 |
    75 |
    76 |
    77 |
    78 |
    79 |

    Indicates loading state of SimpleButton

    80 | 81 |
    82 |
    83 |

    Declaration

    84 |
    85 |

    Swift

    86 |
    public static let loading: UIControl.State
    87 | 88 |
    89 |
    90 |
    91 | Show on GitHub 92 |
    93 |
    94 |
    95 |
  • 96 |
97 |
98 |
99 |
100 | 104 |
105 |
106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/swift_output/badge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | documentation 17 | 18 | 19 | documentation 20 | 21 | 22 | 65% 23 | 24 | 25 | 65% 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/swift_output/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.jazzy.simplebutton 7 | CFBundleName 8 | SimpleButton 9 | DocSetPlatformFamily 10 | simplebutton 11 | isDashDocset 12 | 13 | dashIndexFilePath 14 | index.html 15 | isJavaScriptEnabled 16 | 17 | DashDocSetFamily 18 | dashtoc 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Classes Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Classes

54 |

The following classes are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButton 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Undocumented

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    open class SimpleButton : UIButton
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Structures Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

Structures

54 |

The following structures are available globally.

55 | 56 |
57 |
58 |
59 |
    60 |
  • 61 |
    62 | 63 | 64 | 65 | SimpleButtonControlState 66 | 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |

    Custom SimpleButton control state

    74 | 75 | See more 76 |
    77 |
    78 |

    Declaration

    79 |
    80 |

    Swift

    81 |
    public struct SimpleButtonControlState
    82 | 83 |
    84 |
    85 |
    86 | Show on GitHub 87 |
    88 |
    89 |
    90 |
  • 91 |
92 |
93 |
94 |
95 | 99 |
100 |
101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/Structs/SimpleButtonControlState.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SimpleButtonControlState Structure Reference 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |

SimpleButton Docs (65% documented)

18 |

View on GitHub

19 |

Install in Dash

20 |
21 |
22 |
23 | 28 |
29 |
30 | 50 |
51 |
52 |
53 |

SimpleButtonControlState

54 |
55 |
56 |
public struct SimpleButtonControlState
57 | 58 |
59 |
60 |

Custom SimpleButton control state

61 | 62 |
63 |
64 |
65 |
    66 |
  • 67 |
    68 | 69 | 70 | 71 | loading 72 | 73 |
    74 |
    75 |
    76 |
    77 |
    78 |
    79 |

    Indicates loading state of SimpleButton

    80 | 81 |
    82 |
    83 |

    Declaration

    84 |
    85 |

    Swift

    86 |
    public static let loading: UIControl.State
    87 | 88 |
    89 |
    90 |
    91 | Show on GitHub 92 |
    93 |
    94 |
    95 |
  • 96 |
97 |
98 |
99 |
100 | 104 |
105 |
106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Credit to https://gist.github.com/wataru420/2048287 */ 2 | .highlight { 3 | /* Comment */ 4 | /* Error */ 5 | /* Keyword */ 6 | /* Operator */ 7 | /* Comment.Multiline */ 8 | /* Comment.Preproc */ 9 | /* Comment.Single */ 10 | /* Comment.Special */ 11 | /* Generic.Deleted */ 12 | /* Generic.Deleted.Specific */ 13 | /* Generic.Emph */ 14 | /* Generic.Error */ 15 | /* Generic.Heading */ 16 | /* Generic.Inserted */ 17 | /* Generic.Inserted.Specific */ 18 | /* Generic.Output */ 19 | /* Generic.Prompt */ 20 | /* Generic.Strong */ 21 | /* Generic.Subheading */ 22 | /* Generic.Traceback */ 23 | /* Keyword.Constant */ 24 | /* Keyword.Declaration */ 25 | /* Keyword.Pseudo */ 26 | /* Keyword.Reserved */ 27 | /* Keyword.Type */ 28 | /* Literal.Number */ 29 | /* Literal.String */ 30 | /* Name.Attribute */ 31 | /* Name.Builtin */ 32 | /* Name.Class */ 33 | /* Name.Constant */ 34 | /* Name.Entity */ 35 | /* Name.Exception */ 36 | /* Name.Function */ 37 | /* Name.Namespace */ 38 | /* Name.Tag */ 39 | /* Name.Variable */ 40 | /* Operator.Word */ 41 | /* Text.Whitespace */ 42 | /* Literal.Number.Float */ 43 | /* Literal.Number.Hex */ 44 | /* Literal.Number.Integer */ 45 | /* Literal.Number.Oct */ 46 | /* Literal.String.Backtick */ 47 | /* Literal.String.Char */ 48 | /* Literal.String.Doc */ 49 | /* Literal.String.Double */ 50 | /* Literal.String.Escape */ 51 | /* Literal.String.Heredoc */ 52 | /* Literal.String.Interpol */ 53 | /* Literal.String.Other */ 54 | /* Literal.String.Regex */ 55 | /* Literal.String.Single */ 56 | /* Literal.String.Symbol */ 57 | /* Name.Builtin.Pseudo */ 58 | /* Name.Variable.Class */ 59 | /* Name.Variable.Global */ 60 | /* Name.Variable.Instance */ 61 | /* Literal.Number.Integer.Long */ } 62 | .highlight .c { 63 | color: #999988; 64 | font-style: italic; } 65 | .highlight .err { 66 | color: #a61717; 67 | background-color: #e3d2d2; } 68 | .highlight .k { 69 | color: #000000; 70 | font-weight: bold; } 71 | .highlight .o { 72 | color: #000000; 73 | font-weight: bold; } 74 | .highlight .cm { 75 | color: #999988; 76 | font-style: italic; } 77 | .highlight .cp { 78 | color: #999999; 79 | font-weight: bold; } 80 | .highlight .c1 { 81 | color: #999988; 82 | font-style: italic; } 83 | .highlight .cs { 84 | color: #999999; 85 | font-weight: bold; 86 | font-style: italic; } 87 | .highlight .gd { 88 | color: #000000; 89 | background-color: #ffdddd; } 90 | .highlight .gd .x { 91 | color: #000000; 92 | background-color: #ffaaaa; } 93 | .highlight .ge { 94 | color: #000000; 95 | font-style: italic; } 96 | .highlight .gr { 97 | color: #aa0000; } 98 | .highlight .gh { 99 | color: #999999; } 100 | .highlight .gi { 101 | color: #000000; 102 | background-color: #ddffdd; } 103 | .highlight .gi .x { 104 | color: #000000; 105 | background-color: #aaffaa; } 106 | .highlight .go { 107 | color: #888888; } 108 | .highlight .gp { 109 | color: #555555; } 110 | .highlight .gs { 111 | font-weight: bold; } 112 | .highlight .gu { 113 | color: #aaaaaa; } 114 | .highlight .gt { 115 | color: #aa0000; } 116 | .highlight .kc { 117 | color: #000000; 118 | font-weight: bold; } 119 | .highlight .kd { 120 | color: #000000; 121 | font-weight: bold; } 122 | .highlight .kp { 123 | color: #000000; 124 | font-weight: bold; } 125 | .highlight .kr { 126 | color: #000000; 127 | font-weight: bold; } 128 | .highlight .kt { 129 | color: #445588; } 130 | .highlight .m { 131 | color: #009999; } 132 | .highlight .s { 133 | color: #d14; } 134 | .highlight .na { 135 | color: #008080; } 136 | .highlight .nb { 137 | color: #0086B3; } 138 | .highlight .nc { 139 | color: #445588; 140 | font-weight: bold; } 141 | .highlight .no { 142 | color: #008080; } 143 | .highlight .ni { 144 | color: #800080; } 145 | .highlight .ne { 146 | color: #990000; 147 | font-weight: bold; } 148 | .highlight .nf { 149 | color: #990000; } 150 | .highlight .nn { 151 | color: #555555; } 152 | .highlight .nt { 153 | color: #000080; } 154 | .highlight .nv { 155 | color: #008080; } 156 | .highlight .ow { 157 | color: #000000; 158 | font-weight: bold; } 159 | .highlight .w { 160 | color: #bbbbbb; } 161 | .highlight .mf { 162 | color: #009999; } 163 | .highlight .mh { 164 | color: #009999; } 165 | .highlight .mi { 166 | color: #009999; } 167 | .highlight .mo { 168 | color: #009999; } 169 | .highlight .sb { 170 | color: #d14; } 171 | .highlight .sc { 172 | color: #d14; } 173 | .highlight .sd { 174 | color: #d14; } 175 | .highlight .s2 { 176 | color: #d14; } 177 | .highlight .se { 178 | color: #d14; } 179 | .highlight .sh { 180 | color: #d14; } 181 | .highlight .si { 182 | color: #d14; } 183 | .highlight .sx { 184 | color: #d14; } 185 | .highlight .sr { 186 | color: #009926; } 187 | .highlight .s1 { 188 | color: #d14; } 189 | .highlight .ss { 190 | color: #990073; } 191 | .highlight .bp { 192 | color: #999999; } 193 | .highlight .vc { 194 | color: #008080; } 195 | .highlight .vg { 196 | color: #008080; } 197 | .highlight .vi { 198 | color: #008080; } 199 | .highlight .il { 200 | color: #009999; } 201 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/carat.png -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/dash.png -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/img/gh.png -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/Documents/search.json: -------------------------------------------------------------------------------- 1 | {"Structs/SimpleButtonControlState.html#/s:12SimpleButton0aB12ControlStateV7loadingSo09UIControlD0VvpZ":{"name":"loading","abstract":"

Indicates loading state of SimpleButton

","parent_name":"SimpleButtonControlState"},"Structs/SimpleButtonControlState.html":{"name":"SimpleButtonControlState","abstract":"

Custom SimpleButton control state

"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC11loadingViewSo6UIViewCSgvp":{"name":"loadingView","abstract":"

Loading view. UIActivityIndicatorView as default

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC24defaultAnimationDurationSdvp":{"name":"defaultAnimationDuration","abstract":"

Default duration of animated state change.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)state":{"name":"state","abstract":"

Represents current button state.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)enabled":{"name":"isEnabled","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)highlighted":{"name":"isHighlighted","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)selected":{"name":"isSelected","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC9isLoadingSbvp":{"name":"isLoading","abstract":"

A Boolean value that determines the SimpleButton´s loading state.","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithFrame:":{"name":"init(frame:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithCoder:":{"name":"init(coder:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)prepareForInterfaceBuilder":{"name":"prepareForInterfaceBuilder()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)awakeFromNib":{"name":"awakeFromNib()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC09configureB6StylesyyF":{"name":"configureButtonStyles()","abstract":"

To define various styles for specific button states, override this function and set attributes for specific states (e.g. setBackgroundColor(UIColor.blueColor(), for: .Highlighted, animated: true))

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC8setScale_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setScale(_:for:animated:animationDuration:)","abstract":"

Sets the scale for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC18setBackgroundColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBackgroundColor(_:for:animated:animationDuration:)","abstract":"

Sets the background color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderWidth_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setBorderWidth(_:for:animated:animationDuration:)","abstract":"

Sets the border width for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBorderColor(_:for:animated:animationDuration:)","abstract":"

Sets the border color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setCornerRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setCornerRadius(_:for:animated:animationDuration:)","abstract":"

Sets the corner radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setShadowColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setShadowColor(_:for:animated:animationDuration:)","abstract":"

Sets the shadow color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC16setShadowOpacity_3for8animated17animationDurationySf_So14UIControlStateVSbSdSgtF":{"name":"setShadowOpacity(_:for:animated:animationDuration:)","abstract":"

Sets the shadow opacity for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setShadowRadius(_:for:animated:animationDuration:)","abstract":"

Sets the shadow radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowOffset_3for8animated17animationDurationySo6CGSizeV_So14UIControlStateVSbSdSgtF":{"name":"setShadowOffset(_:for:animated:animationDuration:)","abstract":"

Sets the shadow offset for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC20setTitleImageSpacingyy12CoreGraphics7CGFloatVF":{"name":"setTitleImageSpacing(_:)","abstract":"

Sets the spacing between titleLabel and imageView

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)layoutSubviews":{"name":"layoutSubviews()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html":{"name":"SimpleButton","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/docsets/SimpleButton.docset/Contents/Resources/docSet.dsidx -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/docsets/SimpleButton.tgz -------------------------------------------------------------------------------- /docs/swift_output/docsets/SimpleButton.xml: -------------------------------------------------------------------------------- 1 | 4.0https://github.com/aloco/SimpleButton/tree/swift-4.0/api/docsets/SimpleButton.tgz 2 | -------------------------------------------------------------------------------- /docs/swift_output/img/carat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/img/carat.png -------------------------------------------------------------------------------- /docs/swift_output/img/dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/img/dash.png -------------------------------------------------------------------------------- /docs/swift_output/img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aloco/SimpleButton/ae7b4451522304a422a6514d14db0779625a93e3/docs/swift_output/img/gh.png -------------------------------------------------------------------------------- /docs/swift_output/js/jazzy.js: -------------------------------------------------------------------------------- 1 | window.jazzy = {'docset': false} 2 | if (typeof window.dash != 'undefined') { 3 | document.documentElement.className += ' dash' 4 | window.jazzy.docset = true 5 | } 6 | if (navigator.userAgent.match(/xcode/i)) { 7 | document.documentElement.className += ' xcode' 8 | window.jazzy.docset = true 9 | } 10 | 11 | // On doc load, toggle the URL hash discussion if present 12 | $(document).ready(function() { 13 | if (!window.jazzy.docset) { 14 | var linkToHash = $('a[href="' + window.location.hash +'"]'); 15 | linkToHash.trigger("click"); 16 | } 17 | }); 18 | 19 | // On token click, toggle its discussion and animate token.marginLeft 20 | $(".token").click(function(event) { 21 | if (window.jazzy.docset) { 22 | return; 23 | } 24 | var link = $(this); 25 | var animationDuration = 300; 26 | var tokenOffset = "15px"; 27 | var original = link.css('marginLeft') == tokenOffset; 28 | link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); 29 | $content = link.parent().parent().next(); 30 | $content.slideToggle(animationDuration); 31 | 32 | // Keeps the document from jumping to the hash. 33 | var href = $(this).attr('href'); 34 | if (history.pushState) { 35 | history.pushState({}, '', href); 36 | } else { 37 | location.hash = href; 38 | } 39 | event.preventDefault(); 40 | }); 41 | 42 | // Dumb down quotes within code blocks that delimit strings instead of quotations 43 | // https://github.com/realm/jazzy/issues/714 44 | $("code q").replaceWith(function () { 45 | return ["\"", $(this).contents(), "\""]; 46 | }); 47 | -------------------------------------------------------------------------------- /docs/swift_output/search.json: -------------------------------------------------------------------------------- 1 | {"Structs/SimpleButtonControlState.html#/s:12SimpleButton0aB12ControlStateV7loadingSo09UIControlD0VvpZ":{"name":"loading","abstract":"

Indicates loading state of SimpleButton

","parent_name":"SimpleButtonControlState"},"Structs/SimpleButtonControlState.html":{"name":"SimpleButtonControlState","abstract":"

Custom SimpleButton control state

"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC11loadingViewSo6UIViewCSgvp":{"name":"loadingView","abstract":"

Loading view. UIActivityIndicatorView as default

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC24defaultAnimationDurationSdvp":{"name":"defaultAnimationDuration","abstract":"

Default duration of animated state change.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)state":{"name":"state","abstract":"

Represents current button state.

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)enabled":{"name":"isEnabled","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)highlighted":{"name":"isHighlighted","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(py)selected":{"name":"isSelected","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC9isLoadingSbvp":{"name":"isLoading","abstract":"

A Boolean value that determines the SimpleButton´s loading state.","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithFrame:":{"name":"init(frame:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)initWithCoder:":{"name":"init(coder:)","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)prepareForInterfaceBuilder":{"name":"prepareForInterfaceBuilder()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)awakeFromNib":{"name":"awakeFromNib()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC09configureB6StylesyyF":{"name":"configureButtonStyles()","abstract":"

To define various styles for specific button states, override this function and set attributes for specific states (e.g. setBackgroundColor(UIColor.blueColor(), for: .Highlighted, animated: true))

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC8setScale_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setScale(_:for:animated:animationDuration:)","abstract":"

Sets the scale for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC18setBackgroundColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBackgroundColor(_:for:animated:animationDuration:)","abstract":"

Sets the background color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderWidth_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setBorderWidth(_:for:animated:animationDuration:)","abstract":"

Sets the border width for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setBorderColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setBorderColor(_:for:animated:animationDuration:)","abstract":"

Sets the border color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setCornerRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setCornerRadius(_:for:animated:animationDuration:)","abstract":"

Sets the corner radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC14setShadowColor_3for8animated17animationDurationySo7UIColorC_So14UIControlStateVSbSdSgtF":{"name":"setShadowColor(_:for:animated:animationDuration:)","abstract":"

Sets the shadow color for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC16setShadowOpacity_3for8animated17animationDurationySf_So14UIControlStateVSbSdSgtF":{"name":"setShadowOpacity(_:for:animated:animationDuration:)","abstract":"

Sets the shadow opacity for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowRadius_3for8animated17animationDurationy12CoreGraphics7CGFloatV_So14UIControlStateVSbSdSgtF":{"name":"setShadowRadius(_:for:animated:animationDuration:)","abstract":"

Sets the shadow radius for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC15setShadowOffset_3for8animated17animationDurationySo6CGSizeV_So14UIControlStateVSbSdSgtF":{"name":"setShadowOffset(_:for:animated:animationDuration:)","abstract":"

Sets the shadow offset for a specific UIControlState

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/s:12SimpleButtonAAC20setTitleImageSpacingyy12CoreGraphics7CGFloatVF":{"name":"setTitleImageSpacing(_:)","abstract":"

Sets the spacing between titleLabel and imageView

","parent_name":"SimpleButton"},"Classes/SimpleButton.html#/c:@M@SimpleButton@objc(cs)SimpleButton(im)layoutSubviews":{"name":"layoutSubviews()","abstract":"

Undocumented

","parent_name":"SimpleButton"},"Classes/SimpleButton.html":{"name":"SimpleButton","abstract":"

Undocumented

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Structs.html":{"name":"Structures","abstract":"

The following structures are available globally.

"}} -------------------------------------------------------------------------------- /docs/swift_output/undocumented.json: -------------------------------------------------------------------------------- 1 | { 2 | "warnings": [ 3 | { 4 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 5 | "line": 12, 6 | "symbol": "SimpleButton", 7 | "symbol_kind": "source.lang.swift.decl.class", 8 | "warning": "undocumented" 9 | }, 10 | { 11 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 12 | "line": 90, 13 | "symbol": "SimpleButton.isEnabled", 14 | "symbol_kind": "source.lang.swift.decl.var.instance", 15 | "warning": "undocumented" 16 | }, 17 | { 18 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 19 | "line": 103, 20 | "symbol": "SimpleButton.isHighlighted", 21 | "symbol_kind": "source.lang.swift.decl.var.instance", 22 | "warning": "undocumented" 23 | }, 24 | { 25 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 26 | "line": 109, 27 | "symbol": "SimpleButton.isSelected", 28 | "symbol_kind": "source.lang.swift.decl.var.instance", 29 | "warning": "undocumented" 30 | }, 31 | { 32 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 33 | "line": 150, 34 | "symbol": "SimpleButton.init(frame:)", 35 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 36 | "warning": "undocumented" 37 | }, 38 | { 39 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 40 | "line": 155, 41 | "symbol": "SimpleButton.init(coder:)", 42 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 43 | "warning": "undocumented" 44 | }, 45 | { 46 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 47 | "line": 160, 48 | "symbol": "SimpleButton.prepareForInterfaceBuilder()", 49 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 50 | "warning": "undocumented" 51 | }, 52 | { 53 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 54 | "line": 165, 55 | "symbol": "SimpleButton.awakeFromNib()", 56 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 57 | "warning": "undocumented" 58 | }, 59 | { 60 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 61 | "line": 426, 62 | "symbol": "SimpleButton.layoutSubviews()", 63 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 64 | "warning": "undocumented" 65 | } 66 | ], 67 | "source_directory": "/Users/andreastinocolobo/Applications/iOS/SimpleButton" 68 | } -------------------------------------------------------------------------------- /docs/undocumented.json: -------------------------------------------------------------------------------- 1 | { 2 | "warnings": [ 3 | { 4 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 5 | "line": 12, 6 | "symbol": "SimpleButton", 7 | "symbol_kind": "source.lang.swift.decl.class", 8 | "warning": "undocumented" 9 | }, 10 | { 11 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 12 | "line": 90, 13 | "symbol": "SimpleButton.isEnabled", 14 | "symbol_kind": "source.lang.swift.decl.var.instance", 15 | "warning": "undocumented" 16 | }, 17 | { 18 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 19 | "line": 103, 20 | "symbol": "SimpleButton.isHighlighted", 21 | "symbol_kind": "source.lang.swift.decl.var.instance", 22 | "warning": "undocumented" 23 | }, 24 | { 25 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 26 | "line": 109, 27 | "symbol": "SimpleButton.isSelected", 28 | "symbol_kind": "source.lang.swift.decl.var.instance", 29 | "warning": "undocumented" 30 | }, 31 | { 32 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 33 | "line": 150, 34 | "symbol": "SimpleButton.init(frame:)", 35 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 36 | "warning": "undocumented" 37 | }, 38 | { 39 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 40 | "line": 155, 41 | "symbol": "SimpleButton.init(coder:)", 42 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 43 | "warning": "undocumented" 44 | }, 45 | { 46 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 47 | "line": 160, 48 | "symbol": "SimpleButton.prepareForInterfaceBuilder()", 49 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 50 | "warning": "undocumented" 51 | }, 52 | { 53 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 54 | "line": 165, 55 | "symbol": "SimpleButton.awakeFromNib()", 56 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 57 | "warning": "undocumented" 58 | }, 59 | { 60 | "file": "/Users/andreastinocolobo/Applications/iOS/SimpleButton/SimpleButton/SimpleButton.swift", 61 | "line": 426, 62 | "symbol": "SimpleButton.layoutSubviews()", 63 | "symbol_kind": "source.lang.swift.decl.function.method.instance", 64 | "warning": "undocumented" 65 | } 66 | ], 67 | "source_directory": "/Users/andreastinocolobo/Applications/iOS/SimpleButton" 68 | } --------------------------------------------------------------------------------