Run SwiftFormat in GH Action (#28)

This commit is contained in:
Marc Rousavy
2021-03-09 10:53:29 +01:00
committed by GitHub
parent 168ba054d1
commit 64bb6f6a2a
22 changed files with 383 additions and 234 deletions

View File

@@ -23,7 +23,7 @@ extension AVCaptureDevice.Format {
func toDictionary() -> [String: Any] {
var dict: [String: Any] = [
"videoStabilizationModes": videoStabilizationModes.map { $0.descriptor },
"videoStabilizationModes": videoStabilizationModes.map(\.descriptor),
"autoFocusSystem": autoFocusSystem.descriptor,
"photoHeight": highResolutionStillImageDimensions.height,
"photoWidth": highResolutionStillImageDimensions.width,
@@ -31,7 +31,7 @@ extension AVCaptureDevice.Format {
"minISO": minISO,
"fieldOfView": videoFieldOfView,
"maxZoom": videoMaxZoomFactor,
"colorSpaces": supportedColorSpaces.map { $0.descriptor },
"colorSpaces": supportedColorSpaces.map(\.descriptor),
"supportsVideoHDR": isVideoHDRSupported,
"supportsPhotoHDR": false,
"frameRateRanges": videoSupportedFrameRateRanges.map {

View File

@@ -9,11 +9,11 @@
import AVFoundation
extension AVCaptureMovieFileOutput {
func mirror() {
connections.forEach { (connection) in
if connection.isVideoMirroringSupported {
connection.isVideoMirrored = true
}
}
func mirror() {
connections.forEach { connection in
if connection.isVideoMirroringSupported {
connection.isVideoMirrored = true
}
}
}
}

View File

@@ -9,11 +9,11 @@
import AVFoundation
extension AVCapturePhotoOutput {
func mirror() {
connections.forEach { (connection) in
if connection.isVideoMirroringSupported {
connection.isVideoMirrored = true
}
}
func mirror() {
connections.forEach { connection in
if connection.isVideoMirroringSupported {
connection.isVideoMirrored = true
}
}
}
}