mirror of
https://github.com/status-im/react-native-transparent-video.git
synced 2025-01-09 22:36:12 +00:00
6640e69a81
Signed-off-by: Brian Sztamfater <brian@status.im>
14 lines
305 B
Swift
14 lines
305 B
Swift
//
|
|
// AVAsset+VideoSize.swift
|
|
// MyTransparentVideoExample
|
|
//
|
|
// Created by Quentin Fasquel on 22/03/2020.
|
|
// Copyright © 2020 Quentin Fasquel. All rights reserved.
|
|
//
|
|
|
|
import AVFoundation
|
|
|
|
extension AVAsset {
|
|
var videoSize: CGSize { tracks(withMediaType: .video).first?.naturalSize ?? .zero }
|
|
}
|