react-native-vision-camera/ios/Extensions/AVFrameRateRange+includes.swift
Marc Rousavy 9ea158ad8f
chore: Move to /mrousavy/ (#224)
* rename 1/n

* 2

* 3

* fix indent
2021-06-21 22:42:46 +02:00

19 lines
384 B
Swift

//
// AVFrameRateRange+includes.swift
// mrousavy
//
// Created by Marc Rousavy on 15.01.21.
// Copyright © 2021 mrousavy. All rights reserved.
//
import AVFoundation
extension AVFrameRateRange {
/**
* Returns true if this [AVFrameRateRange] contains the given [fps]
*/
func includes(fps: Double) -> Bool {
return fps >= minFrameRate && fps <= maxFrameRate
}
}