Skip to content

Releases: orchetect/swift-timecode

1.2.2

02 Aug 04:05
b4a8104

Choose a tag to compare

  • Added CaseIterable to enums that didn't have it
  • Changed Timecode.FrameRate.sorted() internal logic

1.2.1

01 Aug 08:19
a4d9694

Choose a tag to compare

  • Refactored FrameCount which was introduced in 1.2.0 to have more friendly API
  • Added StringFormat (replaces displaySubFrames: Bool throughout the library)
  • Added SubFramesBase (replaces subFramesDivisor throughout the library)
  • Timecode inits and all .toTimecode() methods have been updated to reflect API changes
  • Updated unit tests

1.2.0

31 Jul 07:08
5d1386c

Choose a tag to compare

  • Refactored how internal math is done
  • Renamed all references to totalElapsedFrames to now be called frameCount using new Timecode.FrameCount type
  • Renamed .init(clamping:) to .init(clampingEach:) (clamp individual timecode components)
  • Renamed .setTimecode(clamping:) to .setTimecode(clampingEach:) (clamp individual timecode components)
  • Added .init(clamping:) methods to clamp to upper/lower extents of valid timecodes
  • Added .setTimecode(clamping:) methods to clamp to upper/lower extents of valid timecodes
  • Various bug fixes
  • Added additional unit tests
  • README Documentation updated

1.1.5

28 Jul 21:46
4f37532

Choose a tag to compare

  • No functional changes, just cleanup and GitHub CI set up

1.1.4

11 Jul 04:40
577b36c

Choose a tag to compare

  • Added Timecode.stringValueValidatedText() property to return a SwiftUI Text() instance applying formatting to invalid components (either default, or user-supplied as a parameter) similar to how .stringValueValidated returns an NSAttributedString showing invalid components with different fomatting attributes.
  • Minor improvements

1.1.3

04 Jul 07:25
79ab3c8

Choose a tag to compare

  • Added displaySubFrames: Bool = false parameter to all .toTimecode(...) extension methods

1.1.2

26 Apr 03:01
826bc0c

Choose a tag to compare

  • Improved real time conversion behavior & added additional unit test

1.1.1

24 Apr 22:36
2e71cb7

Choose a tag to compare

  • Timecode.Delta: Fixed access levels, clarified inline help

1.1.0

23 Apr 23:46
27a1390

Choose a tag to compare

  • Math operator behavior change
    • +, -, +=, -= now use wrapping: instead of clamping: when underflow/overflow occurs around timecode bounds
    • +, -, +=, -= now converts rhs to lhs's frame rate if they do not match prior to calculating
    • *, /, *=, /= can now take a Double as the rhs operand
  • Added Timecode.Delta
  • Added Timecode.Transformer
  • Removed TimeValue struct and replaced it with TimeInterval (aka Double, from Foundation)

1.0.11

07 Mar 07:08
bb850da

Choose a tag to compare

  • Added Identifiable conformance to Timecode.FrameRate (for SwiftUI)
  • Added .compatibleGroupRates to Timecode.FrameRate
  • Updated unit tests