This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| public extension UIView{ | |
| func setWith(_ width: CGFloat){ | |
| self.widthAnchor.constraint(equalToConstant: width).isActive = true | |
| } | |
| func setHeight(_ width: CGFloat){ | |
| self.heightAnchor.constraint(equalToConstant: width).isActive = true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| protocol LayoutAttributeConvertible { | |
| var layoutAttribute: NSLayoutAttribute { get } | |
| } | |
| enum Edge: LayoutAttributeConvertible { | |
| case left | |
| case right | |
| case top |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QuartzCore | |
| func executionTimeInterval(block: () -> ()) -> CFTimeInterval { | |
| let start = CACurrentMediaTime() | |
| block(); | |
| let end = CACurrentMediaTime() | |
| return end - start | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| @interface NumberPadDoneBtn : UIView | |
| @end | |
| @interface NumberPadButton : UIButton | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mr | Marathi | |
|---|---|---|
| bs | Bosnian | |
| ee_TG | Ewe (Togo) | |
| ms | Malay | |
| kam_KE | Kamba (Kenya) | |
| mt | Maltese | |
| ha | Hausa | |
| es_HN | Spanish (Honduras) | |
| ml_IN | Malayalam (India) | |
| ro_MD | Romanian (Moldova) |