This file contains 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
@interface UINib (ClassLoading) | |
+ (UINib *)nibWithClass:(Class)classToLoad; | |
@end | |
@implementation UINib (ClassLoading) | |
+ (UINib *)nibWithClass:(Class)classToLoad { |
This file contains 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
- (void)moveStuff { | |
CGRect originalFrame = self.moveMe.frame; | |
CGAffineTransform firstTransform = CGAffineTransformMake(0, 1, -1, 0, -50, -50); | |
[UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ | |
self.moveMe.transform = firstTransform; | |
} completion:^(BOOL finished) { | |
CGRect stashFrame = self.moveMe.frame; | |
self.moveMe.transform = CGAffineTransformIdentity; |
This file contains 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
enum Demo { | |
case value1 | |
case value2 | |
case value3 | |
case value4 | |
case value5 | |
case value6 | |
case value7 | |
case value8 | |
case value9 |
This file contains 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
custom_rules: | |
no_newlines_at_start_of_scope: | |
included: ".*.swift" | |
name: "No newlines at the start of a scope" | |
regex: "\\{\\n\\s*\\n" |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am timothychilvers on github. | |
* I am chilvman (https://keybase.io/chilvman) on keybase. | |
* I have a public key ASBXqwTIw2H6xBha1xQseAI_x_HWpKyVJKUqihoWh6_ppwo | |
To claim this, I am signing this object: |