mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-25 17:00:50 +02:00
Update Ghostgram features
This commit is contained in:
@@ -8,6 +8,10 @@ load("//build-system/bazel-utils:plist_fragment.bzl",
|
||||
"plist_fragment",
|
||||
)
|
||||
|
||||
sgDeps = [
|
||||
"//Swiftgram/SGSimpleSettings:SGSimpleSettings"
|
||||
]
|
||||
|
||||
filegroup(
|
||||
name = "CameraMetalResources",
|
||||
srcs = glob([
|
||||
@@ -52,7 +56,7 @@ swift_library(
|
||||
data = [
|
||||
":CameraBundle",
|
||||
],
|
||||
deps = [
|
||||
deps = sgDeps + [
|
||||
"//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit",
|
||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||
"//submodules/Display:Display",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user