This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
- ReactSwift by @ColinEberhardt
- https://github.com/ColinEberhardt/ReactSwift
| // UICollectionView Objective-C example | |
| - (void)viewWillAppear:(BOOL)animated { | |
| [super viewWillAppear:animated]; | |
| NSIndexPath *selectedIndexPath = [[self.collectionView indexPathsForSelectedItems] firstObject]; | |
| if (selectedIndexPath != nil) { | |
| id<UIViewControllerTransitionCoordinator> coordinator = self.transitionCoordinator; | |
| if (coordinator != nil) { | |
| [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) { |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
| import UIKit | |
| class ShimmerView: UIView { | |
| var primaryColor: UIColor = UIColor(red: 214.0/255.0, green: 214.0/255.0, blue: 214.0/255.0, alpha: 1.0) | |
| var animationColor: UIColor = .white | |
| UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame]; | |
| imageView.animationImages = [self animationImages]; //method to return an array of UIImage objects | |
| imageView.animationDuration = 0.5; //could be whatever you want | |
| [imageView startAnimating]; //for starting animation | |
| [imageView stopAnimating]; //for ending animation |