dylman123 / final-captions-pro

A MacOS app which automatically generates customisable open captions in Final Cut Pro X
1 stars 0 forks source link

Position & display captions on screen #7

Closed dylman123 closed 4 years ago

dylman123 commented 4 years ago

Need the following features:

  1. Video playback should display captions on the video pane
  2. User to move the positional coordinates of captions in the video pane
  3. This should be a click and drag UI element
dylman123 commented 4 years ago
  1. "Target" view where user can drag and drop targets onto the video pane. Targets will be assigned a reference (eg. a keyboard letter), which can then be associated to individual (or groups) of captions.
dylman123 commented 4 years ago

Need to limit drag of Text view by the position of the text, including the Text view's height and width.

dylman123 commented 4 years ago

Need to get width & height attributes of the Text object. Possibly look here: https://www.hackingwithswift.com/books/ios-swiftui/moving-views-with-draggesture-and-offset

dylman123 commented 4 years ago

I used this forum in the end: https://stackoverflow.com/questions/56603685/measure-the-rendered-size-of-a-swiftui-view