twitter.com/@igor_randj
github.com/rigor789
https://nativescript.org/
and showing it with Vue 3!
Direct access to native APIs right inside JavaScript!
Renders native UI elements
Multiple frameworks: Vue, Angular, React, Svelte...
- (UIImage*) roundCorneredImage: (UIImage*) orig radius:(CGFloat) r {
UIGraphicsBeginImageContextWithOptions(orig.size, NO, 0);
[[UIBezierPath bezierPathWithRoundedRect:(CGRect){CGPointZero, orig.size}
cornerRadius:r] addClip];
[orig drawInRect:(CGRect){CGPointZero, orig.size}];
UIImage* result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
function roundCorneredImage(orig, r) {
UIGraphicsBeginImageContextWithOptions(orig.size, false , 0.0);
UIBezierPath.bezierPathWithRoundedRectCornerRadius(
CGRectMake(0, 0, orig.size.width, orig.size.height),
r
).addClip()
orig.drawInRect(CGRectMake(0, 0, orig.size.width, orig.size.height))
const result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
Objective-C
JavaScript (With NativeScript)
UIImageView
android.widget.ImageView
<Image src="~/assets/coolImage.png"/>
Use the Framework you like!
https://nativescript-vue.org/
Follow the progress on GitHub
Â
https://github.com/rigor789/nativescript-vue-next
You can start playing around with it today!
Warning: not even in alpha yet!
npm i -g nativescript
...
ns create myVue3App --template @nativescript-vue/template-blank
- (UIImage*) roundCorneredImage: (UIImage*) orig radius:(CGFloat) r {
UIGraphicsBeginImageContextWithOptions(orig.size, NO, 0);
[[UIBezierPath bezierPathWithRoundedRect:(CGRect){CGPointZero, orig.size}
cornerRadius:r] addClip];
[orig drawInRect:(CGRect){CGPointZero, orig.size}];
UIImage* result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
function roundCorneredImage(orig, r) {
UIGraphicsBeginImageContextWithOptions(orig.size, false , 0.0);
UIBezierPath.bezierPathWithRoundedRectCornerRadius(
CGRectMake(0, 0, orig.size.width, orig.size.height),
r
).addClip()
orig.drawInRect(CGRectMake(0, 0, orig.size.width, orig.size.height))
const result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
Objective-C
JavaScript (With NativeScript)
Â
Learn more at:
nativescript-vue.org
nativescript.org
Join our Community Slack
https://www.nativescript.org/slack-invitation-form