I am trying to create a video editing application and for that, I have to create a video timeline where I will put different views depending on the amount of videos being edited and their longitude.
Right now, what I have in my timeline view is a scroll view and inside a stack view that contains an overview for each video of composition. The width of each uiview has a dynamic size depending on the duration of their videos shown.
If I select a video (uiview) and drag it left or right, I reduce the width of the uiview and the duration of the video (and the start time if it’s ; is from the left).
The problem with this is that if I cut the video to the left, the animation looks awkward because the view is narrowed by the right due to the scrollView / stackView solution.
I am almost sure that this is not the best way to deal with this, but no other solution comes to my mind.
Do you know of another way or how to solve my problem with the trim?