Skip to content

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
@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.

3 participants