Skip to content

Commit

Permalink
Autodoor_center_animating #18
Browse files Browse the repository at this point in the history
  • Loading branch information
olionoleo committed Mar 29, 2023
1 parent 5ce714e commit 341aedf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions View/SceneView/SceneObjectView/AutoDoorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ struct AutoDoorView: View {
/*.resizable()
.frame(width: 100, height: 65)*/
.position(x: 195, y: 165)
.offset(x: isAnimating ? -50 : 0)
.offset(x: isAnimating ? -40 : 0)
Image("Object_Door_Right")
/*.resizable()
.frame(width: 100, height: 65)*/
.position(x: 195, y: 165)
.offset(x: isAnimating ? 50 : 0)
.offset(x: isAnimating ? 40 : 0)
Image("Object_Door_Frame")
.position(x: 195, y: 165)
/*.resizable()
Expand All @@ -38,7 +38,6 @@ struct AutoDoorView: View {
self.isAnimating = true
}
}

}

struct AutoDoor_Previews: PreviewProvider{
Expand Down

0 comments on commit 341aedf

Please sign in to comment.