Logo
Explore Help
Sign In
railbird/react-native-vision-camera
10
0
Fork 0
You've already forked react-native-vision-camera
Code Issues Pull Requests Packages Projects Releases Wiki Activity
react-native-vision-camera/ios/Extensions/Collection+safe.swift

19 lines
386 B
Swift
Raw Normal View History

Add iOS
2021-02-19 16:28:05 +01:00
//
// Collection+safe.swift
// Cuvent
//
// Created by Marc Rousavy on 10.01.21.
fix: Fix AVAudioSession not allowing background music playback (#155) * Set category always if different * rename org * Fix video format sorting * fix format filtering * Update AVAudioSession+setCategoryIfNotSet.swift * upgrade all dependencies * Also run dependabot for JS codebase * Update MediaPage.tsx * Use typescript 4.2.4 * Also run TS in check-all * Downgrade typescript to 4.2.3 * f * recreate lockfiles * docs: Revert package.json changes * revert all package.json changes * Update Podfile.lock * bump all dependencies, pin typescript to 4.2.4 * Downgrade react-native-navigation for now * upgrade to later snapshot * Update yarn.lock * remove yeet
2021-06-01 13:07:57 +02:00
// Copyright © 2021 mrousavy. All rights reserved.
Add iOS
2021-02-19 16:28:05 +01:00
//
import Foundation
extension Collection {
/**
Returns the element at the specified index if it is within bounds, otherwise nil.
*/
subscript(safe index: Index) -> Element? {
return indices.contains(index) ? self[index] : nil
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.2 Page: 107ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API