Blame view
App/camera/ALCameraLib/Utilities/CameraGlobals.swift
779 Bytes
1341bf603
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// // CameraGlobals.swift // ALCameraViewController // // Created by Alex Littlejohn on 2016/02/16. // Copyright © 2016 zero. All rights reserved. // import UIKit import AVFoundation internal let itemSpacing: CGFloat = 1 internal let columns: CGFloat = 4 internal let thumbnailDimension = (UIScreen.main.bounds.width - ((columns * itemSpacing) - itemSpacing))/columns internal let scale = UIScreen.main.scale public class CameraGlobals { public static let shared = CameraGlobals() public var bundle = Bundle(for: CameraViewController.self) public var stringsTable = "CameraView" public var photoLibraryThumbnailSize = CGSize(width: thumbnailDimension, height: thumbnailDimension) public var defaultCameraPosition = AVCaptureDevicePosition.back } |