forked from hyperoslo/ImagePicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.swift
55 lines (41 loc) · 2.08 KB
/
Configuration.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import UIKit
public struct Configuration {
// MARK: Colors
public static var backgroundColor = UIColor(red: 0.15, green: 0.19, blue: 0.24, alpha: 1)
public static var mainColor = UIColor(red: 0.09, green: 0.11, blue: 0.13, alpha: 1)
public static var noImagesColor = UIColor(red: 0.86, green: 0.86, blue: 0.86, alpha: 1)
public static var noCameraColor = UIColor(red: 0.86, green: 0.86, blue: 0.86, alpha: 1)
public static var settingsColor = UIColor.whiteColor()
// MARK: Fonts
public static var numberLabelFont = UIFont(name: "HelveticaNeue-Bold", size: 19)!
public static var doneButton = UIFont(name: "HelveticaNeue-Medium", size: 19)!
public static var flashButton = UIFont(name: "HelveticaNeue-Medium", size: 12)!
public static var noImagesFont = UIFont(name: "HelveticaNeue-Medium", size: 18)!
public static var noCameraFont = UIFont(name: "HelveticaNeue-Medium", size: 18)!
public static var settingsFont = UIFont(name: "HelveticaNeue-Medium", size: 16)!
// MARK: Titles
public static var OKButtonTitle = "OK"
public static var cancelButtonTitle = "Cancel"
public static var doneButtonTitle = "Done"
public static var noImagesTitle = "No images available"
public static var noCameraTitle = "Camera is not available"
public static var settingsTitle = "Settings"
public static var requestPermissionTitle = "Permission denied"
public static var requestPermissionMessage = "Please, allow the application to access to your photo library."
// MARK: Dimensions
public static var cellSpacing: CGFloat = 2
public static var indicatorWidth: CGFloat = 41
public static var indicatorHeight: CGFloat = 8
// MARK: Custom behaviour
public static var canRotateCamera = true
public static var collapseCollectionViewWhileShot = true
public static var recordLocation = true
// MARK: Images
public static var indicatorView: UIView = {
let view = UIView()
view.backgroundColor = UIColor.whiteColor().colorWithAlphaComponent(0.6)
view.layer.cornerRadius = 4
view.translatesAutoresizingMaskIntoConstraints = false
return view
}()
}