We don’t have a name, so we’ll call it Husky
Write a husky motivation
Compared to writing on iOS, 🐂, link programming can be implemented for all navigation. IOS controls will also be able to implement this link programming. After reading the internal implementation of self-navigation, I would like to confirm that link programming can be implemented for all navigation. In my spare time, I decided to rewrite UIKit to achieve the same effect, hoping to help the development efficiency and code readability in the development process.
Husky is introduced into
-
pod husky
-
Direct download reference
#import
Usage examples
Control creation 🌰
[UILabel generator:^(huskyer * _Nonnull huskyer) { maker.frame(CGRectMake(100, 100, 100, 30)). The text (@ "ha ha".) textAlignment (NSTextAlignmentCenter). TextColor ([UIColor whiteColor]).view(self.view).backGroudColor([UIColor redColor]).radian(CGSizeMake(25, 25)).husker(^{ NSLog(@"click"); }); }];Copy the code
Network data request 🌰
[self patch:^(Patcher * _Nonnull patcher) {
patcher.role(UIPatcherRoleGet).url(@"https://zhqd.shiminjia.com/weather.php").indicator(YES);
[patcher send:^(id _Nonnull respone) {
NSLog(@"respone---%@",respone);
}];
}];
Copy the code
Version Design baseline
Husky covers almost all of the objects used in the daily development process, and there will be some extensions in the future, and WE look forward to your ideas on how to extend them.
Expect better ideas
If you have more good designs and ideas, you can join us ~