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
fix(ios): use arc to create corner radius instead of qudratic curve #11969
Conversation
Tests:
|
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.
Please make the test run cross-platform and use the images I included for android. We want to ensure the UI looks/behaves highly consistently cross-platform.
@vijaysingh-axway could we add a test with |
viewShadow issue is not fixed this PR. I am working on this as part of https://jira.appcelerator.org/browse/TIMOB-28103 |
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.
FR Passed, able to use arc to create corner radius instead of quadratic curve. Tested using the following test cases:
const window = Ti.UI.createWindow({ backgroundColor: 'white' });
const view = Ti.UI.createView({
backgroundColor: 'red',
width: 100,
height: 100,
borderRadius: '50 50 50 50'
});
window.add(view);
window.open();
var _window = Ti.UI.createWindow({
backgroundColor : 'blue'
});
var view = Ti.UI.createView({
left : 10,
height : 100,
width : 100,
top : 10,
backgroundColor : 'white',
borderWidth : 20,
borderColor : 'red',
borderRadius : 10
});
var b3 = Ti.UI.createButton({
top : 250,
title : "borderRadius=30/20"
});
b3.addEventListener("click", function() {
view.borderRadius = ['30', '20', '30', '20'];
});
var b4 = Ti.UI.createButton({
top : 300,
title : "borderRadius=30 All"
});
b4.addEventListener("click", function() {
view.borderRadius = 30;
});
var b5 = Ti.UI.createButton({
top : 350,
title : "borderRadius=0"
});
b5.addEventListener("click", function() {
view.borderRadius = 0;
});
_window.add(view);
_window.add(b3);
_window.add(b4);
_window.add(b5);
_window.open();
var win = Ti.UI.createWindow({
backgroundColor: '#333'
});
var view = Ti.UI.createView({
backgroundColor: '#fff',
height: 350,
bottom: 0,
borderRadius: '20 20dp 20px 12px',
});
win.add(view);
win.open();
Test Environment
MacOS Big Sur: 11.0 Beta 5
Xcode: 12.0 Beta 5
Java Version: 1.8.0_242
Android NDK: 21.3.6528147
Node.js: 12.18.1
""NPM":"5.0.0","CLI":"8.1.0-master.11""
iphone 8 Sim (14.0 Beta)
https://jira.appcelerator.org/browse/TIMOB-28101