Skip to content
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

Conversation

zeph-cohen10
Copy link

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 new YPConfig options that the client can set for customization.

Comment on lines 13 to 17
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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikkoKuivanenRS Updated as well.

Base automatically changed from CC-505-creators-can-view-video-lengths-when-editing-in-storytelling-posts to master January 25, 2024 14:35
zeph-cohen10 and others added 3 commits January 29, 2024 17:05
…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")
Copy link
Collaborator

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?

Copy link
Author

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 {

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikkoKuivanenRS Updated here: 9caf060

@zeph-cohen10 zeph-cohen10 merged commit aa0fe95 into master Jan 30, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants