Skip to content
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

feat(ios): view rotation parity #13946

Merged
merged 2 commits into from
Jan 10, 2024
Merged

feat(ios): view rotation parity #13946

merged 2 commits into from
Jan 10, 2024

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Nov 14, 2023

Current Android allows you to set the view.rotation without transform/matrix2D.

This PR will add the same to iOS

const window = Ti.UI.createWindow({
  backgroundColor: "black",
});

const fadeBackground = Ti.UI.createView({
  backgroundColor: "red",
  width: 100,
  height: 100,
  rotation:45
});

setTimeout(function(){
  fadeBackground.rotation = 90
}, 2000)
window.add(fadeBackground);
window.open();

View will show up 45deg rotated and after two seconds it will rotate to 90deg.

@hansemannn hansemannn merged commit 5c7edd8 into master Jan 10, 2024
7 checks passed
@m1ga m1ga deleted the 231114_ios_rotation branch January 10, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants