Edit
This is what I want to visualize (ignore the ugly red line, it just indicates the movement of the UIView):

I want to have a UIView that is initialized in the middle of the screen. After that, I want to give him a push up, and gravity will pull him down until he is on the screen. My old question is working with UIPushBehaviour, UIDynamicBehaviour and UIGravityBehaviour (see below). Matt pointed out that UIPushBehaviour may not be the right choice, as it doesn't work very well with every screen size available on iOS.
I can do this with the UIView.animate function, but it is really static and does not look natural. With UIPushBehaviour, UIDynamicBehaviour and UIGravityBehaviour, this looks very good, but the UIPushBehaviour value cannot be calculated for each screen size to give the same endpoint for the UIView x and y position.
Question
How can I initialize a UIView in the middle of the screen, pull this UIView (with some change in x position) and let gravity (or something else) pull it down until it exits the screen? It is important that the x and y positions are the same for every screen size.
Below is my old question
I have a UIPushBehaviour with instantaneous as the mode in which I click around the UIView . The larger the screen, the less it pushes.
I also have a UIDynamicItemBehavior with resistance set to 1 , I think this is one of the main reasons why it is different in every screen size (correct me if I am wrong).
I need a function that will press UIView on the same endpoint, with the same speed, duration and endpoint, regardless of screen size.
I tried to make a relative value with no luck:
For the iPhone 5S, let's say a magnitude of 0.5 touches the UIView from mid to top. I wanted to calculate the value on all devices, such as:
let y = 0.5 / 520
For iPhone 8, it has an excellent result and does not work. When I read the documents , I thought I would understand this. I thought that 1 value is 100 pixels, but this is clearly not the case.
Is it possible to calculate a value, for example, to move a UIView from the middle to the right?
I did a project here . There is a black UIView that pushes to the edges on the iPhone 5, but not on the iPhone 8.