-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support For New Trimmer UI #34
Add Support For New Trimmer UI #34
Conversation
var durationText:String { | ||
let totalSeconds = Int(CMTimeGetSeconds(self)) | ||
let hours:Int = Int(totalSeconds / 3600) | ||
let minutes:Int = Int(totalSeconds % 3600 / 60) | ||
let seconds:Int = Int((totalSeconds % 3600) % 60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var durationText:String { | |
let totalSeconds = Int(CMTimeGetSeconds(self)) | |
let hours:Int = Int(totalSeconds / 3600) | |
let minutes:Int = Int(totalSeconds % 3600 / 60) | |
let seconds:Int = Int((totalSeconds % 3600) % 60) | |
var durationText: String { | |
let totalSeconds = Int(CMTimeGetSeconds(self)) | |
let hours: Int = Int(totalSeconds / 3600) | |
let minutes: Int = Int(totalSeconds % 3600 / 60) | |
let seconds: Int = Int(totalSeconds % 3600 % 60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MikkoKuivanenRS Updated as well.
…n-editing-in-storytelling-posts-trimmer-view # Conflicts: # Source/Filters/Video/YPVideoFiltersVC.swift # YPImagePicker.xcodeproj/project.pbxproj
…storytelling-posts-trimmer-view' into CC-505-creators-can-view-video-lengths-when-editing-in-storytelling-posts-trimmer-view-time-stamp-rules
…storytelling-posts-trimmer-view' into CC-505-creators-can-view-video-lengths-when-editing-in-storytelling-posts-trimmer-view-time-stamp-rules
…o-lengths-when-editing-in-storytelling-posts-trimmer-view-time-stamp-rules Adds TimeStamp UI Rule Updates
@@ -18,7 +18,7 @@ let package = Package( | |||
), | |||
.package( | |||
url: "https://github.com/rewardStyle/PryntTrimmerView", | |||
.exact("4.0.2") | |||
.branch("CC-505-creators-can-view-video-lengths-when-editing-in-storytelling-posts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just putting a note here so that we'll remember to switch this back once we release the new version of PryntTrimmerView. That PR approved so we could probably release it already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iirovi-rs Updated here: cb6feb2
// MARK: - Init | ||
|
||
public override func layoutSubviews() { | ||
if !isLaidOut { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to call super.layoutSubviews()
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MikkoKuivanenRS Updated here: 9caf060
This PR adds a new view
YPTimeStampTrimmerView
with support for showing the trimmer with bottom timestamps as well as timestamps when dragging the left and right handles. This PR also adds some newYPConfig
options that the client can set for customization.