74808f086e
* feat: Replace Legacy Media Controls with Nitro-Powered Playback * feat: Add TTS Engine Selection * chore: Remove User-Facing Error Reporting * refactor: Combine `Tts` and `TtsSession` Imports from `nitro-tts` Module --------- Co-authored-by: Claude <noreply@anthropic.com>
8 lines
161 B
Swift
8 lines
161 B
Swift
import Foundation
|
|
|
|
extension Float {
|
|
func clamped(to range: ClosedRange<Float>) -> Float {
|
|
return min(max(self, range.lowerBound), range.upperBound)
|
|
}
|
|
}
|