├── .swift-version
├── img
└── img1.png
├── CheckMarkView
├── image1.png
├── image2.png
├── image3.png
├── image4.png
├── image5.png
├── image6.png
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── CollectionViewController.swift
├── Info.plist
├── AppDelegate.swift
├── Base.lproj
│ ├── LaunchScreen.xib
│ └── Main.storyboard
└── Sources
│ └── CheckMarkView.swift
├── CheckMarkView.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── project.pbxproj
├── CheckMarkView.podspec
├── .gitignore
├── LICENSE
└── README.md
/.swift-version:
--------------------------------------------------------------------------------
1 | 4.2
2 |
--------------------------------------------------------------------------------
/img/img1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/img/img1.png
--------------------------------------------------------------------------------
/CheckMarkView/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image1.png
--------------------------------------------------------------------------------
/CheckMarkView/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image2.png
--------------------------------------------------------------------------------
/CheckMarkView/image3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image3.png
--------------------------------------------------------------------------------
/CheckMarkView/image4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image4.png
--------------------------------------------------------------------------------
/CheckMarkView/image5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image5.png
--------------------------------------------------------------------------------
/CheckMarkView/image6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maximbilan/CheckMarkView/HEAD/CheckMarkView/image6.png
--------------------------------------------------------------------------------
/CheckMarkView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CheckMarkView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/CheckMarkView.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "CheckMarkView"
3 | s.version = "0.4.3"
4 | s.summary = "A simple checkmark for UICollectionViewCell"
5 | s.description = "A just simple view which draws programmatically checkmark with some styles"
6 | s.homepage = "https://github.com/maximbilan/CheckMarkView"
7 | s.license = { :type => "MIT" }
8 | s.author = { "Maxim Bilan" => "maximb.mail@gmail.com" }
9 | s.platform = :ios, "8.0"
10 | s.source = { :git => "https://github.com/maximbilan/CheckMarkView.git", :tag => s.version.to_s }
11 | s.source_files = "Classes", "CheckMarkView/Sources/**/*.{swift}"
12 | s.requires_arc = true
13 | end
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | # Pods/
27 |
28 | # Carthage
29 | #
30 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
31 | # Carthage/Checkouts
32 |
33 | Carthage/Build
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Maxim Bilan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/CheckMarkView/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/CheckMarkView/CollectionViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CollectionViewController.swift
3 | // CheckMarkView
4 | //
5 | // Created by Maxim on 7/18/15.
6 | // Copyright (c) 2015 Maxim. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class CollectionViewCell: UICollectionViewCell {
12 |
13 | // MARK: - Constants
14 |
15 | static let reuseIdentifier = "Cell"
16 |
17 | // MARK: - Outlets
18 |
19 | @IBOutlet weak var imageView: UIImageView!
20 | @IBOutlet weak var checkMarkView: CheckMarkView!
21 |
22 | }
23 |
24 | class CollectionViewController: UICollectionViewController {
25 |
26 | // MARK: - UICollectionViewDataSource
27 |
28 | override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
29 | return 6
30 | }
31 |
32 | override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
33 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: CollectionViewCell.reuseIdentifier, for: indexPath as IndexPath) as! CollectionViewCell
34 |
35 | let imageName = String("image\(indexPath.row + 1).png")
36 | cell.imageView.image = UIImage(named: imageName)
37 | cell.checkMarkView.style = .grayedOut
38 | cell.checkMarkView.setNeedsDisplay()
39 |
40 | return cell
41 | }
42 |
43 | // MARK: - UICollectionViewDelegate
44 |
45 | override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
46 | let cell = collectionView.cellForItem(at: indexPath as IndexPath) as! CollectionViewCell
47 | cell.checkMarkView.checked = !cell.checkMarkView.checked
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/CheckMarkView/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CheckMarkView
2 |
3 | [](http://cocoadocs.org/docsets/CheckMarkView)
4 | [](http://cocoadocs.org/docsets/CheckMarkView)
5 | [](http://cocoadocs.org/docsets/CheckMarkView)
6 | [](https://cocoapods.org/pods/CheckMarkView)
7 | [](https://cocoapods.org/pods/CheckMarkView)
8 |
9 | Unfortunately Apple doesn't provide an accessory type property for UICollectionViewCell, such as for UITableViewCell, so I provide a custom way to create a checkmark.
10 | A just a simple view which draws programmatically a checkmark with some styles.
11 |
12 | 
13 |
14 | # Installation
15 |
16 | CocoaPods:
17 |
18 | pod 'CheckMarkView'
19 |
20 |
21 | Manual:
22 |
23 | Copy CheckMarkView.swift to your project.
24 |
25 |
26 | ## Using
27 |
28 | You can create from the code or set up a view in the Storyboard, XIB.
29 |
30 |
31 | let checkMarkView = CheckMarkView()
32 |
33 |
34 | For controlling you have checked property.
35 | And style property for the unchecked view. There are some styles:
36 |
37 |
38 | enum CheckMarkStyle: Int {
39 | case nothing
40 | case openCircle
41 | case grayedOut
42 | }
43 |
44 |
45 | ## License
46 |
47 | CheckMarkView is available under the MIT license. See the LICENSE file for more info.
48 |
--------------------------------------------------------------------------------
/CheckMarkView/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // CheckMarkView
4 | //
5 | // Created by Maxim on 7/18/15.
6 | // Copyright (c) 2015 Maxim. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
17 | return true
18 | }
19 |
20 | func applicationWillResignActive(_ application: UIApplication) {
21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
23 | }
24 |
25 | func applicationDidEnterBackground(_ application: UIApplication) {
26 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
28 | }
29 |
30 | func applicationWillEnterForeground(_ application: UIApplication) {
31 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
32 | }
33 |
34 | func applicationDidBecomeActive(_ application: UIApplication) {
35 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
36 | }
37 |
38 | func applicationWillTerminate(_ application: UIApplication) {
39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
40 | }
41 |
42 |
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/CheckMarkView/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/CheckMarkView/Sources/CheckMarkView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CheckMarkView.swift
3 | // CheckMarkView
4 | //
5 | // Created by Maxim on 7/18/15.
6 | // Copyright (c) 2015 Maxim. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | public class CheckMarkView: UIView {
12 |
13 | // MARK: - Enumerations
14 |
15 | public enum Style: Int {
16 | case nothing
17 | case openCircle
18 | case grayedOut
19 | }
20 |
21 | // MARK: - Public Properties
22 |
23 | public var checked: Bool {
24 | get {
25 | return _checked
26 | }
27 | set(newValue) {
28 | _checked = newValue
29 | setNeedsDisplay()
30 | }
31 | }
32 |
33 | public var style: Style {
34 | get {
35 | return _style
36 | }
37 | set(newValue) {
38 | _style = newValue
39 | setNeedsDisplay()
40 | }
41 | }
42 |
43 | // MARK: - Private Properties
44 |
45 | private var _checked: Bool = false
46 | private var _style: Style = .nothing
47 |
48 | // MARK: - Drawing
49 |
50 | override public func draw(_ rect: CGRect) {
51 | super.draw(rect)
52 |
53 | if _checked {
54 | drawRectChecked(rect: rect)
55 | }
56 | else {
57 | if _style == .openCircle {
58 | drawRectOpenCircle(rect: rect)
59 | }
60 | else if _style == .grayedOut {
61 | drawRectGrayedOut(rect: rect)
62 | }
63 | }
64 | }
65 |
66 | func drawRectChecked(rect: CGRect) {
67 | guard let context = UIGraphicsGetCurrentContext() else {
68 | return
69 | }
70 |
71 | let bounds = self.bounds
72 |
73 | let checkmarkBlue = UIColor(red: 0.078, green: 0.435, blue: 0.875, alpha: 1)
74 | let shadow = UIColor.black
75 | let shadowOffset = CGSize(width: 0.1, height: -0.1)
76 | let shadowBlurRadius: CGFloat = 2.5
77 |
78 | let group = CGRect(x: bounds.minX + 3,
79 | y: bounds.minY + 3,
80 | width: bounds.width - 6,
81 | height: bounds.height - 6)
82 |
83 | let checkedOvalPath = UIBezierPath(ovalIn: CGRect(x: group.minX + floor(group.width * 0.00000 + 0.5),
84 | y: group.minY + floor(group.height * 0.00000 + 0.5),
85 | width: floor(group.width * 1.00000 + 0.5) - floor(group.width * 0.00000 + 0.5),
86 | height: floor(group.height * 1.00000 + 0.5) - floor(group.height * 0.00000 + 0.5)))
87 |
88 | context.saveGState()
89 | context.setShadow(offset: shadowOffset, blur: shadowBlurRadius, color: shadow.cgColor)
90 | checkmarkBlue.setFill()
91 | checkedOvalPath.fill()
92 | context.restoreGState()
93 |
94 | UIColor.white.setStroke()
95 | checkedOvalPath.lineWidth = 1
96 | checkedOvalPath.stroke()
97 |
98 | let bezierPath = UIBezierPath()
99 | bezierPath.move(to: CGPoint(x: group.minX + 0.27083 * group.width,
100 | y: group.minY + 0.54167 * group.height))
101 | bezierPath.addLine(to: CGPoint(x: group.minX + 0.41667 * group.width,
102 | y: group.minY + 0.68750 * group.height))
103 | bezierPath.addLine(to: CGPoint(x: group.minX + 0.75000 * group.width,
104 | y: group.minY + 0.35417 * group.height))
105 | bezierPath.lineCapStyle = CGLineCap.square
106 |
107 | UIColor.white.setStroke()
108 | bezierPath.lineWidth = 1.3
109 | bezierPath.stroke()
110 | }
111 |
112 | func drawRectOpenCircle(rect: CGRect) {
113 | guard let context = UIGraphicsGetCurrentContext() else {
114 | return
115 | }
116 |
117 | let bounds = self.bounds
118 |
119 | let shadow = UIColor.black
120 | let shadowOffset = CGSize(width: 0.1, height: -0.1)
121 | let shadowBlurRadius: CGFloat = 0.5
122 | let shadow2 = UIColor.black
123 | let shadow2Offset = CGSize(width: 0.1, height: -0.1)
124 | let shadow2BlurRadius: CGFloat = 2.5
125 |
126 | let group = CGRect(x: bounds.minX + 3,
127 | y: bounds.minY + 3,
128 | width: bounds.width - 6,
129 | height: bounds.height - 6)
130 | let emptyOvalPath = UIBezierPath(ovalIn: CGRect(x: group.minX + floor(group.width * 0.00000 + 0.5),
131 | y: group.minY + floor(group.height * 0.00000 + 0.5),
132 | width: floor(group.width * 1.00000 + 0.5) - floor(group.width * 0.00000 + 0.5),
133 | height: floor(group.height * 1.00000 + 0.5) - floor(group.height * 0.00000 + 0.5)))
134 |
135 | context.saveGState()
136 | context.setShadow(offset: shadow2Offset, blur: shadow2BlurRadius, color: shadow2.cgColor)
137 | context.restoreGState()
138 |
139 | context.saveGState()
140 | context.setShadow(offset: shadowOffset, blur: shadowBlurRadius, color: shadow.cgColor)
141 | UIColor.white.setStroke()
142 | emptyOvalPath.lineWidth = 1
143 | emptyOvalPath.stroke()
144 | context.restoreGState()
145 | }
146 |
147 | func drawRectGrayedOut(rect: CGRect) {
148 | guard let context = UIGraphicsGetCurrentContext() else {
149 | return
150 | }
151 |
152 | let bounds = self.bounds
153 |
154 | let grayTranslucent = UIColor(red: 1, green: 1, blue: 1, alpha: 0.6)
155 | let shadow = UIColor.black
156 | let shadowOffset = CGSize(width: 0.1, height: -0.1)
157 | let shadowBlurRadius: CGFloat = 2.5
158 |
159 | let group = CGRect(x: bounds.minX + 3,
160 | y: bounds.minY + 3,
161 | width: bounds.width - 6,
162 | height: bounds.height - 6)
163 |
164 | let uncheckedOvalPath = UIBezierPath(ovalIn: CGRect(x: group.minX + floor(group.width * 0.00000 + 0.5),
165 | y: group.minY + floor(group.height * 0.00000 + 0.5),
166 | width: floor(group.width * 1.00000 + 0.5) - floor(group.width * 0.00000 + 0.5),
167 | height: floor(group.height * 1.00000 + 0.5) - floor(group.height * 0.00000 + 0.5)))
168 |
169 | context.saveGState()
170 | context.setShadow(offset: shadowOffset, blur: shadowBlurRadius, color: shadow.cgColor)
171 | grayTranslucent.setFill()
172 | uncheckedOvalPath.fill()
173 | context.restoreGState()
174 |
175 | UIColor.white.setStroke()
176 | uncheckedOvalPath.lineWidth = 1
177 | uncheckedOvalPath.stroke()
178 |
179 | let bezierPath = UIBezierPath()
180 | bezierPath.move(to: CGPoint(x: group.minX + 0.27083 * group.width,
181 | y: group.minY + 0.54167 * group.height))
182 | bezierPath.addLine(to: CGPoint(x: group.minX + 0.41667 * group.width,
183 | y: group.minY + 0.68750 * group.height))
184 | bezierPath.addLine(to: CGPoint(x: group.minX + 0.75000 * group.width,
185 | y: group.minY + 0.35417 * group.height))
186 | bezierPath.lineCapStyle = CGLineCap.square
187 |
188 | UIColor.white.setStroke()
189 | bezierPath.lineWidth = 1.3
190 | bezierPath.stroke()
191 | }
192 |
193 | }
194 |
--------------------------------------------------------------------------------
/CheckMarkView/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/CheckMarkView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 940C8E0A1B5A5150006AFFD1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 940C8E091B5A5150006AFFD1 /* AppDelegate.swift */; };
11 | 940C8E0F1B5A5150006AFFD1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E0D1B5A5150006AFFD1 /* Main.storyboard */; };
12 | 940C8E111B5A5150006AFFD1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E101B5A5150006AFFD1 /* Images.xcassets */; };
13 | 940C8E141B5A5150006AFFD1 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E121B5A5150006AFFD1 /* LaunchScreen.xib */; };
14 | 940C8E2B1B5A5269006AFFD1 /* CheckMarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 940C8E2A1B5A5269006AFFD1 /* CheckMarkView.swift */; };
15 | 940C8E2D1B5A5E0C006AFFD1 /* CollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 940C8E2C1B5A5E0C006AFFD1 /* CollectionViewController.swift */; };
16 | 940C8E3D1B5A639D006AFFD1 /* image1.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E381B5A639D006AFFD1 /* image1.png */; };
17 | 940C8E3E1B5A639D006AFFD1 /* image2.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E391B5A639D006AFFD1 /* image2.png */; };
18 | 940C8E3F1B5A639D006AFFD1 /* image3.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E3A1B5A639D006AFFD1 /* image3.png */; };
19 | 940C8E401B5A639D006AFFD1 /* image4.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E3B1B5A639D006AFFD1 /* image4.png */; };
20 | 940C8E411B5A639D006AFFD1 /* image5.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E3C1B5A639D006AFFD1 /* image5.png */; };
21 | 940C8E431B5B859C006AFFD1 /* image6.png in Resources */ = {isa = PBXBuildFile; fileRef = 940C8E421B5B859C006AFFD1 /* image6.png */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXFileReference section */
25 | 940C8E041B5A514F006AFFD1 /* CheckMarkView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CheckMarkView.app; sourceTree = BUILT_PRODUCTS_DIR; };
26 | 940C8E081B5A5150006AFFD1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
27 | 940C8E091B5A5150006AFFD1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
28 | 940C8E0E1B5A5150006AFFD1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
29 | 940C8E101B5A5150006AFFD1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
30 | 940C8E131B5A5150006AFFD1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
31 | 940C8E2A1B5A5269006AFFD1 /* CheckMarkView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CheckMarkView.swift; sourceTree = ""; };
32 | 940C8E2C1B5A5E0C006AFFD1 /* CollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollectionViewController.swift; sourceTree = ""; };
33 | 940C8E381B5A639D006AFFD1 /* image1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image1.png; sourceTree = ""; };
34 | 940C8E391B5A639D006AFFD1 /* image2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image2.png; sourceTree = ""; };
35 | 940C8E3A1B5A639D006AFFD1 /* image3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image3.png; sourceTree = ""; };
36 | 940C8E3B1B5A639D006AFFD1 /* image4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image4.png; sourceTree = ""; };
37 | 940C8E3C1B5A639D006AFFD1 /* image5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image5.png; sourceTree = ""; };
38 | 940C8E421B5B859C006AFFD1 /* image6.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image6.png; sourceTree = ""; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 940C8E011B5A514F006AFFD1 /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | );
47 | runOnlyForDeploymentPostprocessing = 0;
48 | };
49 | /* End PBXFrameworksBuildPhase section */
50 |
51 | /* Begin PBXGroup section */
52 | 940C8DFB1B5A514F006AFFD1 = {
53 | isa = PBXGroup;
54 | children = (
55 | 940C8E061B5A514F006AFFD1 /* CheckMarkView */,
56 | 940C8E051B5A514F006AFFD1 /* Products */,
57 | );
58 | sourceTree = "";
59 | };
60 | 940C8E051B5A514F006AFFD1 /* Products */ = {
61 | isa = PBXGroup;
62 | children = (
63 | 940C8E041B5A514F006AFFD1 /* CheckMarkView.app */,
64 | );
65 | name = Products;
66 | sourceTree = "";
67 | };
68 | 940C8E061B5A514F006AFFD1 /* CheckMarkView */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 940C8E291B5A524F006AFFD1 /* Sources */,
72 | 940C8E091B5A5150006AFFD1 /* AppDelegate.swift */,
73 | 940C8E2C1B5A5E0C006AFFD1 /* CollectionViewController.swift */,
74 | 940C8E0D1B5A5150006AFFD1 /* Main.storyboard */,
75 | 940C8E101B5A5150006AFFD1 /* Images.xcassets */,
76 | 940C8E121B5A5150006AFFD1 /* LaunchScreen.xib */,
77 | 940C8E381B5A639D006AFFD1 /* image1.png */,
78 | 940C8E391B5A639D006AFFD1 /* image2.png */,
79 | 940C8E3A1B5A639D006AFFD1 /* image3.png */,
80 | 940C8E3B1B5A639D006AFFD1 /* image4.png */,
81 | 940C8E3C1B5A639D006AFFD1 /* image5.png */,
82 | 940C8E421B5B859C006AFFD1 /* image6.png */,
83 | 940C8E071B5A514F006AFFD1 /* Supporting Files */,
84 | );
85 | path = CheckMarkView;
86 | sourceTree = "";
87 | };
88 | 940C8E071B5A514F006AFFD1 /* Supporting Files */ = {
89 | isa = PBXGroup;
90 | children = (
91 | 940C8E081B5A5150006AFFD1 /* Info.plist */,
92 | );
93 | name = "Supporting Files";
94 | sourceTree = "";
95 | };
96 | 940C8E291B5A524F006AFFD1 /* Sources */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 940C8E2A1B5A5269006AFFD1 /* CheckMarkView.swift */,
100 | );
101 | path = Sources;
102 | sourceTree = "";
103 | };
104 | /* End PBXGroup section */
105 |
106 | /* Begin PBXNativeTarget section */
107 | 940C8E031B5A514F006AFFD1 /* CheckMarkView */ = {
108 | isa = PBXNativeTarget;
109 | buildConfigurationList = 940C8E231B5A5150006AFFD1 /* Build configuration list for PBXNativeTarget "CheckMarkView" */;
110 | buildPhases = (
111 | 940C8E001B5A514F006AFFD1 /* Sources */,
112 | 940C8E011B5A514F006AFFD1 /* Frameworks */,
113 | 940C8E021B5A514F006AFFD1 /* Resources */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = CheckMarkView;
120 | productName = CheckMarkView;
121 | productReference = 940C8E041B5A514F006AFFD1 /* CheckMarkView.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 940C8DFC1B5A514F006AFFD1 /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastSwiftMigration = 0700;
131 | LastSwiftUpdateCheck = 0700;
132 | LastUpgradeCheck = 1000;
133 | ORGANIZATIONNAME = Maxim;
134 | TargetAttributes = {
135 | 940C8E031B5A514F006AFFD1 = {
136 | CreatedOnToolsVersion = 6.4;
137 | LastSwiftMigration = 1000;
138 | };
139 | };
140 | };
141 | buildConfigurationList = 940C8DFF1B5A514F006AFFD1 /* Build configuration list for PBXProject "CheckMarkView" */;
142 | compatibilityVersion = "Xcode 3.2";
143 | developmentRegion = English;
144 | hasScannedForEncodings = 0;
145 | knownRegions = (
146 | en,
147 | Base,
148 | );
149 | mainGroup = 940C8DFB1B5A514F006AFFD1;
150 | productRefGroup = 940C8E051B5A514F006AFFD1 /* Products */;
151 | projectDirPath = "";
152 | projectRoot = "";
153 | targets = (
154 | 940C8E031B5A514F006AFFD1 /* CheckMarkView */,
155 | );
156 | };
157 | /* End PBXProject section */
158 |
159 | /* Begin PBXResourcesBuildPhase section */
160 | 940C8E021B5A514F006AFFD1 /* Resources */ = {
161 | isa = PBXResourcesBuildPhase;
162 | buildActionMask = 2147483647;
163 | files = (
164 | 940C8E0F1B5A5150006AFFD1 /* Main.storyboard in Resources */,
165 | 940C8E431B5B859C006AFFD1 /* image6.png in Resources */,
166 | 940C8E3F1B5A639D006AFFD1 /* image3.png in Resources */,
167 | 940C8E3E1B5A639D006AFFD1 /* image2.png in Resources */,
168 | 940C8E3D1B5A639D006AFFD1 /* image1.png in Resources */,
169 | 940C8E401B5A639D006AFFD1 /* image4.png in Resources */,
170 | 940C8E411B5A639D006AFFD1 /* image5.png in Resources */,
171 | 940C8E141B5A5150006AFFD1 /* LaunchScreen.xib in Resources */,
172 | 940C8E111B5A5150006AFFD1 /* Images.xcassets in Resources */,
173 | );
174 | runOnlyForDeploymentPostprocessing = 0;
175 | };
176 | /* End PBXResourcesBuildPhase section */
177 |
178 | /* Begin PBXSourcesBuildPhase section */
179 | 940C8E001B5A514F006AFFD1 /* Sources */ = {
180 | isa = PBXSourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 940C8E2D1B5A5E0C006AFFD1 /* CollectionViewController.swift in Sources */,
184 | 940C8E2B1B5A5269006AFFD1 /* CheckMarkView.swift in Sources */,
185 | 940C8E0A1B5A5150006AFFD1 /* AppDelegate.swift in Sources */,
186 | );
187 | runOnlyForDeploymentPostprocessing = 0;
188 | };
189 | /* End PBXSourcesBuildPhase section */
190 |
191 | /* Begin PBXVariantGroup section */
192 | 940C8E0D1B5A5150006AFFD1 /* Main.storyboard */ = {
193 | isa = PBXVariantGroup;
194 | children = (
195 | 940C8E0E1B5A5150006AFFD1 /* Base */,
196 | );
197 | name = Main.storyboard;
198 | sourceTree = "";
199 | };
200 | 940C8E121B5A5150006AFFD1 /* LaunchScreen.xib */ = {
201 | isa = PBXVariantGroup;
202 | children = (
203 | 940C8E131B5A5150006AFFD1 /* Base */,
204 | );
205 | name = LaunchScreen.xib;
206 | sourceTree = "";
207 | };
208 | /* End PBXVariantGroup section */
209 |
210 | /* Begin XCBuildConfiguration section */
211 | 940C8E211B5A5150006AFFD1 /* Debug */ = {
212 | isa = XCBuildConfiguration;
213 | buildSettings = {
214 | ALWAYS_SEARCH_USER_PATHS = NO;
215 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
216 | CLANG_CXX_LIBRARY = "libc++";
217 | CLANG_ENABLE_MODULES = YES;
218 | CLANG_ENABLE_OBJC_ARC = YES;
219 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
220 | CLANG_WARN_BOOL_CONVERSION = YES;
221 | CLANG_WARN_COMMA = YES;
222 | CLANG_WARN_CONSTANT_CONVERSION = YES;
223 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
224 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
225 | CLANG_WARN_EMPTY_BODY = YES;
226 | CLANG_WARN_ENUM_CONVERSION = YES;
227 | CLANG_WARN_INFINITE_RECURSION = YES;
228 | CLANG_WARN_INT_CONVERSION = YES;
229 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
230 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
231 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
232 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
234 | CLANG_WARN_STRICT_PROTOTYPES = YES;
235 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
236 | CLANG_WARN_UNREACHABLE_CODE = YES;
237 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
238 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
239 | COPY_PHASE_STRIP = NO;
240 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
241 | ENABLE_STRICT_OBJC_MSGSEND = YES;
242 | ENABLE_TESTABILITY = YES;
243 | GCC_C_LANGUAGE_STANDARD = gnu99;
244 | GCC_DYNAMIC_NO_PIC = NO;
245 | GCC_NO_COMMON_BLOCKS = YES;
246 | GCC_OPTIMIZATION_LEVEL = 0;
247 | GCC_PREPROCESSOR_DEFINITIONS = (
248 | "DEBUG=1",
249 | "$(inherited)",
250 | );
251 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
252 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
253 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
254 | GCC_WARN_UNDECLARED_SELECTOR = YES;
255 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
256 | GCC_WARN_UNUSED_FUNCTION = YES;
257 | GCC_WARN_UNUSED_VARIABLE = YES;
258 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
259 | MTL_ENABLE_DEBUG_INFO = YES;
260 | ONLY_ACTIVE_ARCH = YES;
261 | SDKROOT = iphoneos;
262 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
263 | TARGETED_DEVICE_FAMILY = "1,2";
264 | };
265 | name = Debug;
266 | };
267 | 940C8E221B5A5150006AFFD1 /* Release */ = {
268 | isa = XCBuildConfiguration;
269 | buildSettings = {
270 | ALWAYS_SEARCH_USER_PATHS = NO;
271 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
272 | CLANG_CXX_LIBRARY = "libc++";
273 | CLANG_ENABLE_MODULES = YES;
274 | CLANG_ENABLE_OBJC_ARC = YES;
275 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
276 | CLANG_WARN_BOOL_CONVERSION = YES;
277 | CLANG_WARN_COMMA = YES;
278 | CLANG_WARN_CONSTANT_CONVERSION = YES;
279 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
281 | CLANG_WARN_EMPTY_BODY = YES;
282 | CLANG_WARN_ENUM_CONVERSION = YES;
283 | CLANG_WARN_INFINITE_RECURSION = YES;
284 | CLANG_WARN_INT_CONVERSION = YES;
285 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
286 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
287 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
288 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
289 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
290 | CLANG_WARN_STRICT_PROTOTYPES = YES;
291 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
292 | CLANG_WARN_UNREACHABLE_CODE = YES;
293 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
294 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
295 | COPY_PHASE_STRIP = NO;
296 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
297 | ENABLE_NS_ASSERTIONS = NO;
298 | ENABLE_STRICT_OBJC_MSGSEND = YES;
299 | GCC_C_LANGUAGE_STANDARD = gnu99;
300 | GCC_NO_COMMON_BLOCKS = YES;
301 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
302 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
303 | GCC_WARN_UNDECLARED_SELECTOR = YES;
304 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
305 | GCC_WARN_UNUSED_FUNCTION = YES;
306 | GCC_WARN_UNUSED_VARIABLE = YES;
307 | IPHONEOS_DEPLOYMENT_TARGET = 8.4;
308 | MTL_ENABLE_DEBUG_INFO = NO;
309 | SDKROOT = iphoneos;
310 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
311 | TARGETED_DEVICE_FAMILY = "1,2";
312 | VALIDATE_PRODUCT = YES;
313 | };
314 | name = Release;
315 | };
316 | 940C8E241B5A5150006AFFD1 /* Debug */ = {
317 | isa = XCBuildConfiguration;
318 | buildSettings = {
319 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
320 | INFOPLIST_FILE = CheckMarkView/Info.plist;
321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
322 | PRODUCT_BUNDLE_IDENTIFIER = "com.maximbilan.$(PRODUCT_NAME:rfc1034identifier)";
323 | PRODUCT_NAME = "$(TARGET_NAME)";
324 | SWIFT_VERSION = 4.2;
325 | };
326 | name = Debug;
327 | };
328 | 940C8E251B5A5150006AFFD1 /* Release */ = {
329 | isa = XCBuildConfiguration;
330 | buildSettings = {
331 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
332 | INFOPLIST_FILE = CheckMarkView/Info.plist;
333 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
334 | PRODUCT_BUNDLE_IDENTIFIER = "com.maximbilan.$(PRODUCT_NAME:rfc1034identifier)";
335 | PRODUCT_NAME = "$(TARGET_NAME)";
336 | SWIFT_VERSION = 4.2;
337 | };
338 | name = Release;
339 | };
340 | /* End XCBuildConfiguration section */
341 |
342 | /* Begin XCConfigurationList section */
343 | 940C8DFF1B5A514F006AFFD1 /* Build configuration list for PBXProject "CheckMarkView" */ = {
344 | isa = XCConfigurationList;
345 | buildConfigurations = (
346 | 940C8E211B5A5150006AFFD1 /* Debug */,
347 | 940C8E221B5A5150006AFFD1 /* Release */,
348 | );
349 | defaultConfigurationIsVisible = 0;
350 | defaultConfigurationName = Release;
351 | };
352 | 940C8E231B5A5150006AFFD1 /* Build configuration list for PBXNativeTarget "CheckMarkView" */ = {
353 | isa = XCConfigurationList;
354 | buildConfigurations = (
355 | 940C8E241B5A5150006AFFD1 /* Debug */,
356 | 940C8E251B5A5150006AFFD1 /* Release */,
357 | );
358 | defaultConfigurationIsVisible = 0;
359 | defaultConfigurationName = Release;
360 | };
361 | /* End XCConfigurationList section */
362 | };
363 | rootObject = 940C8DFC1B5A514F006AFFD1 /* Project object */;
364 | }
365 |
--------------------------------------------------------------------------------