-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New constructors for RiveFile #60
Conversation
mjohnsullivan
commented
Jun 1, 2021
•
edited
Loading
edited
- Adds initWithResource contructor to RiveFile
- Adds initWithHttpUrl constructor to RiveFile and adds async loading support
self.view = view | ||
} | ||
} | ||
|
||
/* | ||
class SimpleAnimationViewController: UIViewController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. would almost have this as a 2nd standalone example
* Creates a RiveFile from an HTTP url | ||
*/ | ||
- (nullable instancetype)initWithHttpUrl:(NSString *)url withDelegate:(id<RiveFileDelegate>)delegate { | ||
self.isLoaded = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh .. nasty :D i love it
@@ -60,6 +42,7 @@ - (nullable instancetype)initWithByteArray:(NSArray *)array { | |||
}]; | |||
rive::BinaryReader reader = [self getReader:bytes byteLength:array.count]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to make this non nullable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm