Update Ghostgram features

This commit is contained in:
ichmagmaus 812
2026-03-07 18:19:16 +01:00
parent 32b0dddcd9
commit 13a43b9068
902 changed files with 148295 additions and 62348 deletions
@@ -1,3 +1,5 @@
import SGSimpleSettings
import Foundation
import AVFoundation
import UIKit
@@ -367,6 +369,10 @@ final class CameraOutput: NSObject {
AVVideoWidthKey: Int(dimensions.width),
AVVideoHeightKey: Int(dimensions.height)
]
// MARK: Swiftgram
if SGSimpleSettings.shared.startTelescopeWithRearCam {
self.currentPosition = .back
}
} else {
let codecType: AVVideoCodecType = hasHEVCHardwareEncoder ? .hevc : .h264
if orientation == .landscapeLeft || orientation == .landscapeRight {