title: What does "% is unavailable: Use truncatingRemainder instead" mean?
body: <p>I get the following error when using code for an extension, I'm not sure if they're asking to just use a different operator or modify the values in the expression based on an internet search.</p>
  
  <p>Error: % is unavailable: Use truncatingRemainder instead</p>
  
  <p>Extension code:</p>
  
  <pre><code>extension CMTime {
      var durationText:String {
          let totalSeconds = CMTimeGetSeconds(self)
          let hours:Int = Int(totalSeconds / 3600)
          let minutes:Int = Int(totalSeconds % 3600 / 60)
          let seconds:Int = Int(totalSeconds % 60)
  
          if hours &gt; 0 {
              return String(format: "%i:%02i:%02i", hours, minutes, seconds)
          } else {
              return String(format: "%02i:%02i", minutes, seconds)
          }
      }
  }
  </code></pre>
  
  <p>The error(s) occur when setting the minutes and seconds variables.</p>