Skip to content

Commit

Permalink
Rebased on staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed Jun 20, 2022
1 parent b471d59 commit ca58e37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ios/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() {
fn touch_camera(
windows: ResMut<Windows>,
mut touches: EventReader<TouchInput>,
mut camera: Query<&mut Transform, (With<Camera>, With<PerspectiveProjection>)>,
mut camera: Query<&mut Transform, With<Camera3d>>,
mut last_position: Local<Option<Vec2>>,
) {
for touch in touches.iter() {
Expand Down Expand Up @@ -90,14 +90,14 @@ fn setup_scene(
});

// Test ui
commands.spawn_bundle(UiCameraBundle::default());
commands.spawn_bundle(Camera2dBundle::default());
commands
.spawn_bundle(ButtonBundle {
style: Style {
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
position_type: PositionType::Absolute,
position: Rect {
position: UiRect {
left: Val::Px(50.0),
right: Val::Px(50.0),
top: Val::Auto,
Expand Down

0 comments on commit ca58e37

Please sign in to comment.