NowPlayingProgressView

struct NowPlayingProgressView: View

SwiftUI View for the progess of the current item in the player

  • The KodiConnector model

    Declaration

    Swift

    private var kodi
  • The current seconds

    Declaration

    Swift

    private var currentSeconds: Double = 0
  • The total seconds

    Declaration

    Swift

    private var totalSeconds: Double = 0
  • The time the item started to play

    Declaration

    Swift

    private var startTime: Date = .now
  • The body of the View

    Declaration

    Swift

    var body: some View
  • Set the time

    Declaration

    Swift

    private func setTime()
  • Calculate percentage played

    Declaration

    Swift

    private func percentageValue(for date: Date) -> Double