├── DiagonalCategory
├── Assets.xcassets
│ ├── Contents.json
│ ├── diag_andy.imageset
│ │ ├── diag_andy.png
│ │ └── Contents.json
│ ├── diag_connie.imageset
│ │ ├── diag_connie.png
│ │ └── Contents.json
│ ├── diag_mindy.imageset
│ │ ├── diag_mindy.png
│ │ └── Contents.json
│ ├── diag_sofia.imageset
│ │ ├── diag_sofia.png
│ │ └── Contents.json
│ ├── diag_cartman.imageset
│ │ ├── diag_cartman.png
│ │ └── Contents.json
│ ├── diag_mariska.imageset
│ │ ├── diag_mariska.png
│ │ └── Contents.json
│ ├── diag_terrence.imageset
│ │ ├── diag_terrence.png
│ │ └── Contents.json
│ ├── diag_nash_logo.imageset
│ │ ├── diag_nash_logo.png
│ │ └── Contents.json
│ ├── diag_empire_logo.imageset
│ │ ├── diag_empire_logo.png
│ │ └── Contents.json
│ ├── diag_mindy_logo.imageset
│ │ ├── diag_mindy_logo.png
│ │ └── Contents.json
│ ├── diag_modern_logo.imageset
│ │ ├── diag_modern_logo.png
│ │ └── Contents.json
│ ├── App Icon & Top Shelf Image.brandassets
│ │ ├── App Icon - Large.imagestack
│ │ │ ├── Back.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ ├── Front.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ ├── Middle.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── App Icon - Small.imagestack
│ │ │ ├── Back.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ ├── Front.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ ├── Middle.imagestacklayer
│ │ │ │ ├── Contents.json
│ │ │ │ └── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── Top Shelf Image.imageset
│ │ │ └── Contents.json
│ │ ├── Top Shelf Image Wide.imageset
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── diag_brooklyn_logo.imageset
│ │ ├── diag_brooklyn_logo.png
│ │ └── Contents.json
│ ├── diag_laworder_logo.imageset
│ │ ├── diag_laworder_logo.png
│ │ └── Contents.json
│ ├── diag_southpark_logo.imageset
│ │ ├── diag_southpark_logo.png
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── TVShowItem.swift
├── UIDiagonalDelegate.swift
├── TVShowDetailsViewController.swift
├── Info.plist
├── UIDigonalViewCell.swift
├── AppDelegate.swift
├── DiagonalTVShowViewController.swift
├── Base.lproj
│ └── Main.storyboard
├── UIDiagonalView.swift
└── DiagonalTVShowCell.swift
├── DiagonalCategory.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── rezashirazian.xcuserdatad
│ │ ├── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── DiagonalCategory.xcscheme
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
└── project.pbxproj
├── README.md
├── LICENSE
└── .gitignore
/DiagonalCategory/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_andy.imageset/diag_andy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_andy.imageset/diag_andy.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_connie.imageset/diag_connie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_connie.imageset/diag_connie.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mindy.imageset/diag_mindy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_mindy.imageset/diag_mindy.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_sofia.imageset/diag_sofia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_sofia.imageset/diag_sofia.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_cartman.imageset/diag_cartman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_cartman.imageset/diag_cartman.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mariska.imageset/diag_mariska.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_mariska.imageset/diag_mariska.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_terrence.imageset/diag_terrence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_terrence.imageset/diag_terrence.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_nash_logo.imageset/diag_nash_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_nash_logo.imageset/diag_nash_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_empire_logo.imageset/diag_empire_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_empire_logo.imageset/diag_empire_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mindy_logo.imageset/diag_mindy_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_mindy_logo.imageset/diag_mindy_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_modern_logo.imageset/diag_modern_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_modern_logo.imageset/diag_modern_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_brooklyn_logo.imageset/diag_brooklyn_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_brooklyn_logo.imageset/diag_brooklyn_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_laworder_logo.imageset/diag_laworder_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_laworder_logo.imageset/diag_laworder_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_southpark_logo.imageset/diag_southpark_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kingreza/UIDiagonal/HEAD/DiagonalCategory/Assets.xcassets/diag_southpark_logo.imageset/diag_southpark_logo.png
--------------------------------------------------------------------------------
/DiagonalCategory.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "tv",
5 | "scale" : "1x"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "landscape",
5 | "idiom" : "tv",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "9.0",
8 | "scale" : "1x"
9 | }
10 | ],
11 | "info" : {
12 | "version" : 1,
13 | "author" : "xcode"
14 | }
15 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "layers" : [
3 | {
4 | "filename" : "Front.imagestacklayer"
5 | },
6 | {
7 | "filename" : "Middle.imagestacklayer"
8 | },
9 | {
10 | "filename" : "Back.imagestacklayer"
11 | }
12 | ],
13 | "info" : {
14 | "version" : 1,
15 | "author" : "xcode"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "layers" : [
3 | {
4 | "filename" : "Front.imagestacklayer"
5 | },
6 | {
7 | "filename" : "Middle.imagestacklayer"
8 | },
9 | {
10 | "filename" : "Back.imagestacklayer"
11 | }
12 | ],
13 | "info" : {
14 | "version" : 1,
15 | "author" : "xcode"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_andy.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_andy.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_cartman.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_cartman.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_connie.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_connie.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mariska.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_mariska.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mindy.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_mindy.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_sofia.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_sofia.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_nash_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_nash_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_terrence.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_terrence.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_empire_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_empire_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_mindy_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_mindy_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_modern_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_modern_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_brooklyn_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_brooklyn_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_laworder_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_laworder_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/diag_southpark_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "diag_southpark_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/DiagonalCategory/TVShowItem.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TVShowItem.swift
3 | // UIKitCatalog
4 | //
5 | // Created by Reza Shirazian on 2017-04-16.
6 | // Copyright © 2017 Apple. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | class TVShowItem {
12 | var title: String
13 | var hero: String
14 | var logo: String
15 |
16 | init(title: String, hero: String, logo: String) {
17 | self.title = title
18 | self.hero = hero
19 | self.logo = logo
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DiagonalCategory/UIDiagonalDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIDiagonalDelegate.swift
3 | // UIKitCatalog
4 | //
5 | // Created by Reza Shirazian on 2017-04-15.
6 | // Copyright © 2017 Apple. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | protocol UIDiagonalDelegate {
12 |
13 | func diagonalView(_ diagonalView: UIDiagonalView, cellForRowAt indexPath: Int) -> UIDiagonalViewCell
14 |
15 | func numberOfCells(_ diagonalView: UIDiagonalView) -> Int
16 |
17 | func diagonalView(_ diagonalView: UIDiagonalView, didSelectRowAt indexPath: Int)
18 | }
19 |
--------------------------------------------------------------------------------
/DiagonalCategory.xcodeproj/xcuserdata/rezashirazian.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | DiagonalCategory.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 83A384621EAFBD8000EE429B
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/DiagonalCategory/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "assets" : [
3 | {
4 | "size" : "1280x768",
5 | "idiom" : "tv",
6 | "filename" : "App Icon - Large.imagestack",
7 | "role" : "primary-app-icon"
8 | },
9 | {
10 | "size" : "400x240",
11 | "idiom" : "tv",
12 | "filename" : "App Icon - Small.imagestack",
13 | "role" : "primary-app-icon"
14 | },
15 | {
16 | "size" : "2320x720",
17 | "idiom" : "tv",
18 | "filename" : "Top Shelf Image Wide.imageset",
19 | "role" : "top-shelf-image-wide"
20 | },
21 | {
22 | "size" : "1920x720",
23 | "idiom" : "tv",
24 | "filename" : "Top Shelf Image.imageset",
25 | "role" : "top-shelf-image"
26 | }
27 | ],
28 | "info" : {
29 | "version" : 1,
30 | "author" : "xcode"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # UIDiagonal
2 |
3 | UIDiagonal is an interactive tvOS controller inspired by Hulu's tvOS splash screen. The user can select an item from the UIDiagonalView using a Siri remote.
4 |
5 | UIDiagonal uses the focus engine to navigate from one cell to another.
6 |
7 | Original Hulu tvOS splash screen:
8 | 
9 |
10 | UIDiagonal Controller implementation:
11 |
12 | 
13 |
14 | ### UIDiagonal automatically resizes depending on the number of cells:
15 |
16 | 3 items:
17 |
18 | 
19 |
20 | 14 items:
21 |
22 | 
23 |
24 | [![alt text][1.1]][1]
25 |
26 | [1]: http://www.twitter.com/kingreza
27 | [1.1]: http://i.imgur.com/tXSoThF.png
28 |
--------------------------------------------------------------------------------
/DiagonalCategory/TVShowDetailsViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TVShowDetailsViewController.swift
3 | // DiagonalCategory
4 | //
5 | // Created by Reza Shirazian on 4/25/17.
6 | // Copyright © 2017 Reza Shirazian. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class TVShowDetailsViewController: UIViewController {
12 |
13 | var heroImage: String?
14 | var logoImage: String?
15 |
16 | @IBOutlet weak var hero: UIImageView!
17 | @IBOutlet weak var logo: UIImageView!
18 |
19 | override func viewDidLoad() {
20 | super.viewDidLoad()
21 | if let heroImage = self.heroImage, let logoImage = self.logoImage {
22 | self.hero.image = UIImage(named: heroImage)
23 | self.logo.image = UIImage(named: logoImage)
24 | }
25 | // Do any additional setup after loading the view.
26 | }
27 |
28 | override func didReceiveMemoryWarning() {
29 | super.didReceiveMemoryWarning()
30 | // Dispose of any resources that can be recreated.
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/DiagonalCategory/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 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIMainStoryboardFile
24 | Main
25 | UIRequiredDeviceCapabilities
26 |
27 | arm64
28 |
29 | UIUserInterfaceStyle
30 | Automatic
31 |
32 |
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Reza Shirazian
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 |
--------------------------------------------------------------------------------
/DiagonalCategory/UIDigonalViewCell.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIDiagonalViewCell.swift
3 | // UIKitCatalog
4 | //
5 | // Created by Reza Shirazian on 2017-04-15.
6 | // Copyright © 2017 Apple. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class UIDiagonalViewCell: UIView {
12 |
13 | var widthConstraint: NSLayoutConstraint?
14 | var topConstraint: NSLayoutConstraint?
15 | var leftConstraint: NSLayoutConstraint?
16 | var bottomConstraint: NSLayoutConstraint?
17 | var content = [UIView]()
18 | var index: Int?
19 | var offset: Double?
20 | let DEVICE_WIDTH = 1920.0
21 | let DEVICE_HEIGHT = 1080.0
22 |
23 |
24 | override init(frame: CGRect) {
25 | super.init(frame: frame)
26 | self.translatesAutoresizingMaskIntoConstraints = false
27 | }
28 |
29 | required init?(coder aDecoder: NSCoder) {
30 | super.init(coder: aDecoder)
31 | self.translatesAutoresizingMaskIntoConstraints = false
32 | }
33 |
34 | func didSetupCell() {
35 |
36 | }
37 |
38 | func didSetupConstraints() {
39 |
40 | }
41 |
42 |
43 | override var canBecomeFocused: Bool {
44 | return true
45 | }
46 |
47 | override func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) {
48 |
49 | }
50 |
51 |
52 | func selectThisCell(_ completion: (() -> ())? = nil) {
53 | if let completion = completion {
54 | completion()
55 | }
56 | }
57 |
58 | }
59 |
60 |
61 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | # Pods/
47 |
48 | # Carthage
49 | #
50 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
51 | # Carthage/Checkouts
52 |
53 | Carthage/Build
54 |
55 | # fastlane
56 | #
57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58 | # screenshots whenever they are needed.
59 | # For more information about the recommended setup visit:
60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
61 |
62 | fastlane/report.xml
63 | fastlane/Preview.html
64 | fastlane/screenshots
65 | fastlane/test_output
66 |
--------------------------------------------------------------------------------
/DiagonalCategory.xcodeproj/xcuserdata/rezashirazian.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/DiagonalCategory/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // DiagonalCategory
4 | //
5 | // Created by Reza Shirazian on 4/25/17.
6 | // Copyright © 2017 Reza Shirazian. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // 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.
24 | // 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.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // 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.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // 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.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/DiagonalCategory.xcodeproj/xcuserdata/rezashirazian.xcuserdatad/xcschemes/DiagonalCategory.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/DiagonalCategory/DiagonalTVShowViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DiagonalCustomViewController.swift
3 | // UIKitCatalog
4 | //
5 | // Created by Reza Shirazian on 2017-04-15.
6 | // Copyright © 2017 Apple. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class DiagonalTVShowViewController: UIViewController, UIDiagonalDelegate {
12 |
13 | var diagonal: UIDiagonalView?
14 | var selectedTVShow: TVShowItem?
15 |
16 | private var dataItems = [TVShowItem(title: "The Mindy Project", hero: "diag_mindy", logo: "diag_mindy_logo"),
17 | TVShowItem(title: "Brooklyn Nine Nine", hero: "diag_andy", logo: "diag_brooklyn_logo"),
18 | TVShowItem(title: "Modern Family", hero: "diag_sofia", logo: "diag_modern_logo"),
19 | TVShowItem(title: "Empire", hero: "diag_terrence", logo: "diag_empire_logo"),
20 | TVShowItem(title: "Nashville", hero: "diag_connie", logo: "diag_nash_logo"),
21 | TVShowItem(title: "South Park", hero: "diag_cartman", logo: "diag_southpark_logo"),
22 | TVShowItem(title: "Law & Order", hero: "diag_mariska", logo: "diag_laworder_logo")]
23 |
24 | // private var dataItems = [TVShowItem(title: "The Mindy Project", hero: "diag_mindy", logo: "diag_mindy_logo"),
25 | // TVShowItem(title: "Brooklyn Nine Nine", hero: "diag_andy", logo: "diag_brooklyn_logo")]
26 | //
27 | // private var dataItems = [TVShowItem(title: "The Mindy Project", hero: "diag_mindy", logo: "diag_mindy_logo"),
28 | // TVShowItem(title: "Brooklyn Nine Nine", hero: "diag_andy", logo: "diag_brooklyn_logo"),
29 | // TVShowItem(title: "Modern Family", hero: "diag_sofia", logo: "diag_modern_logo"),
30 | // TVShowItem(title: "Empire", hero: "diag_terrence", logo: "diag_empire_logo"),
31 | // TVShowItem(title: "Nashville", hero: "diag_connie", logo: "diag_nash_logo")]
32 |
33 | private var backgroundColors = [UIColor(red: CGFloat(0.7), green: CGFloat(0.7), blue: CGFloat(0.7), alpha: 1.0),
34 | UIColor(red: CGFloat(0.25), green: CGFloat(0.25), blue: CGFloat(0.25), alpha: 1.0),
35 | UIColor(red: CGFloat(0.62), green: CGFloat(0.62), blue: CGFloat(0.62), alpha: 1.0),
36 | UIColor(red: CGFloat(0.5), green: CGFloat(0.5), blue: CGFloat(0.5), alpha: 1.0),
37 | UIColor(red: CGFloat(0.71), green: CGFloat(0.71), blue: CGFloat(0.71), alpha: 1.0),
38 | UIColor(red: CGFloat(0.36), green: CGFloat(0.36), blue: CGFloat(0.36), alpha: 1.0),
39 | UIColor(red: CGFloat(0.77), green: CGFloat(0.77), blue: CGFloat(0.77), alpha: 1.0)]
40 |
41 | override func viewDidLoad() {
42 | super.viewDidLoad()
43 | self.setDiagonal()
44 | }
45 |
46 |
47 | func setDiagonal() {
48 | let view = UIDiagonalView()
49 | view.delegate = self
50 | self.view.addSubview(view)
51 | self.diagonal = view
52 | view.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
53 | view.topAnchor.constraint(equalTo: self.view.topAnchor).isActive = true
54 | view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor).isActive = true
55 | view.rightAnchor.constraint(equalTo: self.view.rightAnchor).isActive = true
56 |
57 | }
58 |
59 |
60 | override func didReceiveMemoryWarning() {
61 | super.didReceiveMemoryWarning()
62 | // Dispose of any resources that can be recreated.
63 | }
64 |
65 | func diagonalView(_ diagonalView: UIDiagonalView, cellForRowAt indexPath: Int) -> UIDiagonalViewCell {
66 | return DigonalTvShowCell(hero: dataItems[indexPath].hero, logo: dataItems[indexPath].logo, backgroundColor: backgroundColors[indexPath])
67 | }
68 |
69 | func diagonalView(_ diagonalView: UIDiagonalView, didSelectRowAt indexPath: Int) {
70 | if let cell = diagonalView.rowAtIndex(index: indexPath) {
71 | self.selectedTVShow = self.dataItems[indexPath]
72 | cell.selectThisCell() {
73 | self.performSegue(withIdentifier: "segueToShow", sender: self)
74 | print("transition to \(self.dataItems[indexPath].title)")
75 | }
76 | }
77 | }
78 |
79 | func numberOfCells(_ diagonalView: UIDiagonalView) -> Int {
80 | return dataItems.count
81 | }
82 |
83 | override func prepare(for segue: UIStoryboardSegue, sender: Any?){
84 |
85 | if let selectedTVShow = self.selectedTVShow, let destination = segue.destination as? TVShowDetailsViewController {
86 | destination.heroImage = selectedTVShow.hero
87 | destination.logoImage = selectedTVShow.logo
88 | }
89 |
90 | }
91 | /*
92 | // MARK: - Navigation
93 |
94 | // In a storyboard-based application, you will often want to do a little preparation before navigation
95 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
96 | // Get the new view controller using segue.destinationViewController.
97 | // Pass the selected object to the new view controller.
98 | }
99 | */
100 |
101 | }
102 |
--------------------------------------------------------------------------------
/DiagonalCategory/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 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/DiagonalCategory/UIDiagonalView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIDiagonalView.swift
3 | // UIKitCatalog
4 | //
5 | // Created by Reza Shirazian on 2017-04-15.
6 | // Copyright © 2017 Apple. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class UIDiagonalView: UIView {
12 |
13 | var delegate: UIDiagonalDelegate?
14 | let DEVICE_WIDTH = 1920.0
15 | var rows = [UIDiagonalViewCell]()
16 |
17 | private var cellWidth: Double {
18 | return self.cellChopWidth * (4 / 3)
19 | }
20 |
21 | private var cellChopWidth: Double {
22 | if let delegate = self.delegate {
23 | return DEVICE_WIDTH / Double(delegate.numberOfCells(self))
24 | }
25 | return 0
26 | }
27 |
28 | private var offset: Double {
29 | return cellWidth - cellChopWidth
30 | }
31 |
32 | override init(frame: CGRect) {
33 | super.init(frame: frame)
34 | self.translatesAutoresizingMaskIntoConstraints = false
35 | self.backgroundColor = UIColor.red
36 | }
37 |
38 | convenience init() {
39 | self.init(frame: CGRect.zero)
40 | }
41 |
42 | required init?(coder aDecoder: NSCoder) {
43 | super.init(coder: aDecoder)
44 | self.translatesAutoresizingMaskIntoConstraints = false
45 | self.backgroundColor = UIColor.red
46 | }
47 |
48 | override func didMoveToSuperview() {
49 | initSubviews()
50 | }
51 |
52 | func initSubviews() {
53 | if let delegate = self.delegate {
54 | let count = delegate.numberOfCells(self)
55 | let width = self.cellWidth
56 | for i in 0.., with event: UIPressesEvent?) {
124 | for press in presses {
125 | if (press.type == .select) {
126 | if let focusedCell = UIScreen.main.focusedView as? UIDiagonalViewCell {
127 | if let indexPath = self.indexPath(for: focusedCell) {
128 | print("IndexPath is \(indexPath)")
129 | if let delegate = self.delegate {
130 | delegate.diagonalView(self, didSelectRowAt: indexPath)
131 | }
132 | }
133 | }
134 | } else {
135 | super.pressesEnded(presses, with: event)
136 | }
137 | }
138 | }
139 |
140 | func rowAtIndex(index: Int) -> UIDiagonalViewCell? {
141 | return rows[index]
142 | }
143 |
144 | func indexPath(for cell: UIDiagonalViewCell) -> Int? {
145 | if let row = self.rows.index(where: {$0 === cell}) {
146 | return row
147 | }
148 | return nil
149 | }
150 |
151 | override func layoutSubviews() {
152 | super.layoutSubviews()
153 | if let delegate = self.delegate {
154 | let count = delegate.numberOfCells(self)
155 | for i in 0.. UIImage {
67 | let ciimage = CIImage.init(cgImage: image.cgImage!)
68 | let filter = CIFilter.init(name: "CIColorControls")
69 | filter?.setValue(ciimage, forKey: kCIInputImageKey)
70 | filter?.setValue(0.0, forKey: kCIInputSaturationKey)
71 | let result = filter?.value(forKey: kCIOutputImageKey) as! CIImage
72 | let cgimage = CIContext.init(options: nil).createCGImage(result, from: result.extent)
73 | let image = UIImage.init(cgImage: cgimage!)
74 | return image
75 | }
76 |
77 | func layoutImages() {
78 | if let hero = self.hero {
79 | //let centerX = NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: hero, attribute: .centerX, multiplier: 1.0, constant: 0)
80 | let bottom = NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: hero, attribute: .bottom, multiplier: 1.0, constant: 0)
81 | // let trailing = NSLayoutConstraint(item: self, attribute: .trailing, relatedBy: .equal, toItem: hero, attribute: .trailing, multiplier: 1.0, constant: 0)
82 | let leading = NSLayoutConstraint(item: self, attribute: .leading, relatedBy: .equal, toItem: hero, attribute: .leading, multiplier: 1.0, constant: -30)
83 | let centerX = NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: hero, attribute: .centerX, multiplier: 1.0, constant: -30)
84 | let top = NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: hero, attribute: .top, multiplier: 1.0, constant: -100)
85 | heroLeftConstraint = leading
86 | self.addConstraints([bottom, centerX, top])
87 | }
88 |
89 | if let heroBw = self.heroBw {
90 | //let centerX = NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: hero, attribute: .centerX, multiplier: 1.0, constant: 0)
91 | let bottom = NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: heroBw, attribute: .bottom, multiplier: 1.0, constant: 0)
92 | // let trailing = NSLayoutConstraint(item: self, attribute: .trailing, relatedBy: .equal, toItem: heroBw, attribute: .trailing, multiplier: 1.0, constant: 0)
93 | let centerX = NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: heroBw, attribute: .centerX, multiplier: 1.0, constant: -30)
94 | // let leading = NSLayoutConstraint(item: self, attribute: .leading, relatedBy: .equal, toItem: heroBw, attribute: .leading, multiplier: 1.0, constant: -30)
95 | let top = NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: heroBw, attribute: .top, multiplier: 1.0, constant: -100)
96 | self.addConstraints([bottom, centerX, top])
97 | }
98 |
99 | if let logo = self.logo {
100 | let bottom = NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: logo, attribute: .bottom, multiplier: 1.0, constant: 0)
101 | let trailing = NSLayoutConstraint(item: self, attribute: .trailing, relatedBy: .equal, toItem: logo, attribute: .trailing, multiplier: 1.0, constant: 0)
102 | let leading = NSLayoutConstraint(item: self, attribute: .leading, relatedBy: .equal, toItem: logo, attribute: .leading, multiplier: 1.0, constant: 0)
103 | //let centerX = NSLayoutConstraint(item: self, attribute: .centerX, relatedBy: .equal, toItem: logo, attribute: .centerX, multiplier: 1.0, constant: 1.0)
104 | //let top = NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: hero, attribute: .top, multiplier: 1.0, constant: 0)
105 | logoLeftConstraint = leading
106 | self.addConstraints([bottom, leading, trailing])
107 | }
108 |
109 | if let bg = self.bg {
110 | let bottom = NSLayoutConstraint(item: self, attribute: .bottom, relatedBy: .equal, toItem: bg, attribute: .bottom, multiplier: 1.0, constant: 0)
111 | let trailing = NSLayoutConstraint(item: self, attribute: .trailing, relatedBy: .equal, toItem: bg, attribute: .trailing, multiplier: 1.0, constant: 0)
112 | let leading = NSLayoutConstraint(item: self, attribute: .leading, relatedBy: .equal, toItem: bg, attribute: .leading, multiplier: 1.0, constant: 0)
113 | let top = NSLayoutConstraint(item: self, attribute: .top, relatedBy: .equal, toItem: bg, attribute: .top, multiplier: 1.0, constant: 0)
114 | bg.transform = CGAffineTransform( translationX: 0.0, y: CGFloat(self.DEVICE_HEIGHT))
115 | self.bgTopConstraint = top
116 | self.addConstraints([bottom, trailing, leading, top])
117 | }
118 | }
119 |
120 | override func didSetupCell() {
121 | if let logoLeftConstraint = self.logoLeftConstraint, let index = self.index, let offset = self.offset {
122 | let ratio = index == 0 ? 0.5 : 0.75
123 | logoLeftConstraint.constant = logoLeftConstraint.constant + CGFloat(offset) * CGFloat(ratio)
124 | }
125 | }
126 |
127 | override func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) {
128 |
129 | self.layer.removeAllAnimations()
130 | self.heroBw!.layer.removeAllAnimations()
131 | self.hero?.layer.removeAllAnimations()
132 | if context.nextFocusedView == self {
133 |
134 | coordinator.addCoordinatedAnimations({
135 | self.heroBw!.alpha = 0.0
136 |
137 | let duration = UIView.inheritedAnimationDuration
138 | UIView.animate(withDuration: duration * 1.5, delay: 0.0, options: .overrideInheritedDuration, animations: {
139 | self.bg!.transform = CGAffineTransform( translationX: 0.0, y: 0)
140 | self.superview!.transform = CGAffineTransform(scaleX: 1.2, y: 1.0)
141 | self.content.forEach {$0.transform = CGAffineTransform(scaleX: 1.0/1.2, y: 1.0)}
142 | self.layoutIfNeeded()
143 | }, completion: { (completed: Bool) in
144 | // Completion block
145 | })
146 |
147 | }, completion: {})
148 |
149 |
150 | } else if context.previouslyFocusedView == self {
151 |
152 | coordinator.addCoordinatedAnimations({ () -> Void in
153 | self.heroBw!.alpha = 1.0
154 | let duration = UIView.inheritedAnimationDuration
155 | UIView.animate(withDuration: duration * 1.5, delay: 0.0, options: .overrideInheritedDuration, animations: {
156 | self.bg!.transform = CGAffineTransform( translationX: 0.0, y: CGFloat(self.DEVICE_HEIGHT))
157 | self.superview!.transform = CGAffineTransform(scaleX: 1.0, y: 1.0)
158 | self.content.forEach {$0.transform = CGAffineTransform(scaleX: 1.0, y: 1.0)}
159 | self.layoutIfNeeded()
160 | }, completion: { (completed: Bool) in
161 | // Completion block
162 | })
163 |
164 |
165 | }, completion: {})
166 | }
167 | }
168 |
169 | override func selectThisCell(_ completion: (() -> ())? = nil) {
170 | //perform custom animations
171 | if let completion = completion {
172 | completion()
173 | }
174 | // let ratio = (CGFloat(DEVICE_WIDTH) / self.layer.frame.width) * 4.0
175 | // self.superview!.layer.zPosition = 10
176 | // let x = self.convert(self.layer.position, to: self.superview!.superview!).x
177 | // self.widthConstraint?.constant = self.layer.frame.width * 2
178 | // self.leftConstraint?.constant = -CGFloat(self.layer.frame.width)
179 | // UIView.animate(withDuration: 1.0, delay: 0.0, usingSpringWithDamping: 0.7, initialSpringVelocity: 5, options: .curveEaseOut, animations: {
180 | // self.superview!.superview!.layoutIfNeeded()
181 | // }, completion: {(done) in
182 | // if let completed = completion {
183 | // completed()
184 | // }
185 | // })
186 | }
187 |
188 |
189 | }
190 |
191 |
192 |
--------------------------------------------------------------------------------
/DiagonalCategory.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 837405481EAFF78C002FD7D6 /* TVShowDetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 837405471EAFF78C002FD7D6 /* TVShowDetailsViewController.swift */; };
11 | 83A384671EAFBD8000EE429B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A384661EAFBD8000EE429B /* AppDelegate.swift */; };
12 | 83A384691EAFBD8000EE429B /* DiagonalTVShowViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A384681EAFBD8000EE429B /* DiagonalTVShowViewController.swift */; };
13 | 83A3846C1EAFBD8000EE429B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 83A3846A1EAFBD8000EE429B /* Main.storyboard */; };
14 | 83A3846E1EAFBD8000EE429B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 83A3846D1EAFBD8000EE429B /* Assets.xcassets */; };
15 | 83A384781EAFBDD500EE429B /* UIDigonalViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A384771EAFBDD500EE429B /* UIDigonalViewCell.swift */; };
16 | 83A3847A1EAFBE4C00EE429B /* UIDiagonalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A384791EAFBE4C00EE429B /* UIDiagonalView.swift */; };
17 | 83A3847C1EAFBE6300EE429B /* UIDiagonalDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A3847B1EAFBE6300EE429B /* UIDiagonalDelegate.swift */; };
18 | 83A3847E1EAFBEE600EE429B /* TVShowItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A3847D1EAFBEE600EE429B /* TVShowItem.swift */; };
19 | 83A384801EAFCBFF00EE429B /* DiagonalTVShowCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83A3847F1EAFCBFF00EE429B /* DiagonalTVShowCell.swift */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXFileReference section */
23 | 837405471EAFF78C002FD7D6 /* TVShowDetailsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TVShowDetailsViewController.swift; sourceTree = ""; };
24 | 83A384631EAFBD8000EE429B /* DiagonalCategory.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DiagonalCategory.app; sourceTree = BUILT_PRODUCTS_DIR; };
25 | 83A384661EAFBD8000EE429B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
26 | 83A384681EAFBD8000EE429B /* DiagonalTVShowViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiagonalTVShowViewController.swift; sourceTree = ""; };
27 | 83A3846B1EAFBD8000EE429B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
28 | 83A3846D1EAFBD8000EE429B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
29 | 83A3846F1EAFBD8000EE429B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 83A384771EAFBDD500EE429B /* UIDigonalViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIDigonalViewCell.swift; sourceTree = ""; };
31 | 83A384791EAFBE4C00EE429B /* UIDiagonalView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIDiagonalView.swift; sourceTree = ""; };
32 | 83A3847B1EAFBE6300EE429B /* UIDiagonalDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIDiagonalDelegate.swift; sourceTree = ""; };
33 | 83A3847D1EAFBEE600EE429B /* TVShowItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TVShowItem.swift; sourceTree = ""; };
34 | 83A3847F1EAFCBFF00EE429B /* DiagonalTVShowCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DiagonalTVShowCell.swift; sourceTree = ""; };
35 | /* End PBXFileReference section */
36 |
37 | /* Begin PBXFrameworksBuildPhase section */
38 | 83A384601EAFBD8000EE429B /* Frameworks */ = {
39 | isa = PBXFrameworksBuildPhase;
40 | buildActionMask = 2147483647;
41 | files = (
42 | );
43 | runOnlyForDeploymentPostprocessing = 0;
44 | };
45 | /* End PBXFrameworksBuildPhase section */
46 |
47 | /* Begin PBXGroup section */
48 | 83A3845A1EAFBD8000EE429B = {
49 | isa = PBXGroup;
50 | children = (
51 | 83A384651EAFBD8000EE429B /* DiagonalCategory */,
52 | 83A384641EAFBD8000EE429B /* Products */,
53 | );
54 | sourceTree = "";
55 | };
56 | 83A384641EAFBD8000EE429B /* Products */ = {
57 | isa = PBXGroup;
58 | children = (
59 | 83A384631EAFBD8000EE429B /* DiagonalCategory.app */,
60 | );
61 | name = Products;
62 | sourceTree = "";
63 | };
64 | 83A384651EAFBD8000EE429B /* DiagonalCategory */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 83A384751EAFBDA000EE429B /* UIDiagonal */,
68 | 83A384661EAFBD8000EE429B /* AppDelegate.swift */,
69 | 83A3847F1EAFCBFF00EE429B /* DiagonalTVShowCell.swift */,
70 | 83A384681EAFBD8000EE429B /* DiagonalTVShowViewController.swift */,
71 | 83A3847D1EAFBEE600EE429B /* TVShowItem.swift */,
72 | 837405471EAFF78C002FD7D6 /* TVShowDetailsViewController.swift */,
73 | 83A3846A1EAFBD8000EE429B /* Main.storyboard */,
74 | 83A3846D1EAFBD8000EE429B /* Assets.xcassets */,
75 | 83A3846F1EAFBD8000EE429B /* Info.plist */,
76 | );
77 | path = DiagonalCategory;
78 | sourceTree = "";
79 | };
80 | 83A384751EAFBDA000EE429B /* UIDiagonal */ = {
81 | isa = PBXGroup;
82 | children = (
83 | 83A384761EAFBDB600EE429B /* UIDiagonalCell */,
84 | 83A384791EAFBE4C00EE429B /* UIDiagonalView.swift */,
85 | 83A3847B1EAFBE6300EE429B /* UIDiagonalDelegate.swift */,
86 | );
87 | name = UIDiagonal;
88 | sourceTree = "";
89 | };
90 | 83A384761EAFBDB600EE429B /* UIDiagonalCell */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 83A384771EAFBDD500EE429B /* UIDigonalViewCell.swift */,
94 | );
95 | name = UIDiagonalCell;
96 | sourceTree = "";
97 | };
98 | /* End PBXGroup section */
99 |
100 | /* Begin PBXNativeTarget section */
101 | 83A384621EAFBD8000EE429B /* DiagonalCategory */ = {
102 | isa = PBXNativeTarget;
103 | buildConfigurationList = 83A384721EAFBD8000EE429B /* Build configuration list for PBXNativeTarget "DiagonalCategory" */;
104 | buildPhases = (
105 | 83A3845F1EAFBD8000EE429B /* Sources */,
106 | 83A384601EAFBD8000EE429B /* Frameworks */,
107 | 83A384611EAFBD8000EE429B /* Resources */,
108 | );
109 | buildRules = (
110 | );
111 | dependencies = (
112 | );
113 | name = DiagonalCategory;
114 | productName = DiagonalCategory;
115 | productReference = 83A384631EAFBD8000EE429B /* DiagonalCategory.app */;
116 | productType = "com.apple.product-type.application";
117 | };
118 | /* End PBXNativeTarget section */
119 |
120 | /* Begin PBXProject section */
121 | 83A3845B1EAFBD8000EE429B /* Project object */ = {
122 | isa = PBXProject;
123 | attributes = {
124 | LastSwiftUpdateCheck = 0830;
125 | LastUpgradeCheck = 0830;
126 | ORGANIZATIONNAME = "Reza Shirazian";
127 | TargetAttributes = {
128 | 83A384621EAFBD8000EE429B = {
129 | CreatedOnToolsVersion = 8.3.2;
130 | DevelopmentTeam = 6TT3UB3CZS;
131 | ProvisioningStyle = Automatic;
132 | };
133 | };
134 | };
135 | buildConfigurationList = 83A3845E1EAFBD8000EE429B /* Build configuration list for PBXProject "DiagonalCategory" */;
136 | compatibilityVersion = "Xcode 3.2";
137 | developmentRegion = English;
138 | hasScannedForEncodings = 0;
139 | knownRegions = (
140 | en,
141 | Base,
142 | );
143 | mainGroup = 83A3845A1EAFBD8000EE429B;
144 | productRefGroup = 83A384641EAFBD8000EE429B /* Products */;
145 | projectDirPath = "";
146 | projectRoot = "";
147 | targets = (
148 | 83A384621EAFBD8000EE429B /* DiagonalCategory */,
149 | );
150 | };
151 | /* End PBXProject section */
152 |
153 | /* Begin PBXResourcesBuildPhase section */
154 | 83A384611EAFBD8000EE429B /* Resources */ = {
155 | isa = PBXResourcesBuildPhase;
156 | buildActionMask = 2147483647;
157 | files = (
158 | 83A3846E1EAFBD8000EE429B /* Assets.xcassets in Resources */,
159 | 83A3846C1EAFBD8000EE429B /* Main.storyboard in Resources */,
160 | );
161 | runOnlyForDeploymentPostprocessing = 0;
162 | };
163 | /* End PBXResourcesBuildPhase section */
164 |
165 | /* Begin PBXSourcesBuildPhase section */
166 | 83A3845F1EAFBD8000EE429B /* Sources */ = {
167 | isa = PBXSourcesBuildPhase;
168 | buildActionMask = 2147483647;
169 | files = (
170 | 83A384691EAFBD8000EE429B /* DiagonalTVShowViewController.swift in Sources */,
171 | 83A3847E1EAFBEE600EE429B /* TVShowItem.swift in Sources */,
172 | 83A384781EAFBDD500EE429B /* UIDigonalViewCell.swift in Sources */,
173 | 83A3847C1EAFBE6300EE429B /* UIDiagonalDelegate.swift in Sources */,
174 | 837405481EAFF78C002FD7D6 /* TVShowDetailsViewController.swift in Sources */,
175 | 83A384671EAFBD8000EE429B /* AppDelegate.swift in Sources */,
176 | 83A3847A1EAFBE4C00EE429B /* UIDiagonalView.swift in Sources */,
177 | 83A384801EAFCBFF00EE429B /* DiagonalTVShowCell.swift in Sources */,
178 | );
179 | runOnlyForDeploymentPostprocessing = 0;
180 | };
181 | /* End PBXSourcesBuildPhase section */
182 |
183 | /* Begin PBXVariantGroup section */
184 | 83A3846A1EAFBD8000EE429B /* Main.storyboard */ = {
185 | isa = PBXVariantGroup;
186 | children = (
187 | 83A3846B1EAFBD8000EE429B /* Base */,
188 | );
189 | name = Main.storyboard;
190 | sourceTree = "";
191 | };
192 | /* End PBXVariantGroup section */
193 |
194 | /* Begin XCBuildConfiguration section */
195 | 83A384701EAFBD8000EE429B /* Debug */ = {
196 | isa = XCBuildConfiguration;
197 | buildSettings = {
198 | ALWAYS_SEARCH_USER_PATHS = NO;
199 | CLANG_ANALYZER_NONNULL = YES;
200 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
201 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
202 | CLANG_CXX_LIBRARY = "libc++";
203 | CLANG_ENABLE_MODULES = YES;
204 | CLANG_ENABLE_OBJC_ARC = YES;
205 | CLANG_WARN_BOOL_CONVERSION = YES;
206 | CLANG_WARN_CONSTANT_CONVERSION = YES;
207 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
208 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
209 | CLANG_WARN_EMPTY_BODY = YES;
210 | CLANG_WARN_ENUM_CONVERSION = YES;
211 | CLANG_WARN_INFINITE_RECURSION = YES;
212 | CLANG_WARN_INT_CONVERSION = YES;
213 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
214 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
215 | CLANG_WARN_UNREACHABLE_CODE = YES;
216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
217 | COPY_PHASE_STRIP = NO;
218 | DEBUG_INFORMATION_FORMAT = dwarf;
219 | ENABLE_STRICT_OBJC_MSGSEND = YES;
220 | ENABLE_TESTABILITY = YES;
221 | GCC_C_LANGUAGE_STANDARD = gnu99;
222 | GCC_DYNAMIC_NO_PIC = NO;
223 | GCC_NO_COMMON_BLOCKS = YES;
224 | GCC_OPTIMIZATION_LEVEL = 0;
225 | GCC_PREPROCESSOR_DEFINITIONS = (
226 | "DEBUG=1",
227 | "$(inherited)",
228 | );
229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
230 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
231 | GCC_WARN_UNDECLARED_SELECTOR = YES;
232 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
233 | GCC_WARN_UNUSED_FUNCTION = YES;
234 | GCC_WARN_UNUSED_VARIABLE = YES;
235 | MTL_ENABLE_DEBUG_INFO = YES;
236 | ONLY_ACTIVE_ARCH = YES;
237 | SDKROOT = appletvos;
238 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
239 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
240 | TARGETED_DEVICE_FAMILY = 3;
241 | TVOS_DEPLOYMENT_TARGET = 10.2;
242 | };
243 | name = Debug;
244 | };
245 | 83A384711EAFBD8000EE429B /* Release */ = {
246 | isa = XCBuildConfiguration;
247 | buildSettings = {
248 | ALWAYS_SEARCH_USER_PATHS = NO;
249 | CLANG_ANALYZER_NONNULL = YES;
250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
252 | CLANG_CXX_LIBRARY = "libc++";
253 | CLANG_ENABLE_MODULES = YES;
254 | CLANG_ENABLE_OBJC_ARC = YES;
255 | CLANG_WARN_BOOL_CONVERSION = YES;
256 | CLANG_WARN_CONSTANT_CONVERSION = YES;
257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
258 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
259 | CLANG_WARN_EMPTY_BODY = YES;
260 | CLANG_WARN_ENUM_CONVERSION = YES;
261 | CLANG_WARN_INFINITE_RECURSION = YES;
262 | CLANG_WARN_INT_CONVERSION = YES;
263 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
264 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
265 | CLANG_WARN_UNREACHABLE_CODE = YES;
266 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
267 | COPY_PHASE_STRIP = NO;
268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
269 | ENABLE_NS_ASSERTIONS = NO;
270 | ENABLE_STRICT_OBJC_MSGSEND = YES;
271 | GCC_C_LANGUAGE_STANDARD = gnu99;
272 | GCC_NO_COMMON_BLOCKS = YES;
273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
275 | GCC_WARN_UNDECLARED_SELECTOR = YES;
276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
277 | GCC_WARN_UNUSED_FUNCTION = YES;
278 | GCC_WARN_UNUSED_VARIABLE = YES;
279 | MTL_ENABLE_DEBUG_INFO = NO;
280 | SDKROOT = appletvos;
281 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
282 | TARGETED_DEVICE_FAMILY = 3;
283 | TVOS_DEPLOYMENT_TARGET = 10.2;
284 | VALIDATE_PRODUCT = YES;
285 | };
286 | name = Release;
287 | };
288 | 83A384731EAFBD8000EE429B /* Debug */ = {
289 | isa = XCBuildConfiguration;
290 | buildSettings = {
291 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
292 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
293 | DEVELOPMENT_TEAM = 6TT3UB3CZS;
294 | INFOPLIST_FILE = DiagonalCategory/Info.plist;
295 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
296 | PRODUCT_BUNDLE_IDENTIFIER = com.reza.DiagonalCategory;
297 | PRODUCT_NAME = "$(TARGET_NAME)";
298 | SWIFT_VERSION = 3.0;
299 | };
300 | name = Debug;
301 | };
302 | 83A384741EAFBD8000EE429B /* Release */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
306 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
307 | DEVELOPMENT_TEAM = 6TT3UB3CZS;
308 | INFOPLIST_FILE = DiagonalCategory/Info.plist;
309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
310 | PRODUCT_BUNDLE_IDENTIFIER = com.reza.DiagonalCategory;
311 | PRODUCT_NAME = "$(TARGET_NAME)";
312 | SWIFT_VERSION = 3.0;
313 | };
314 | name = Release;
315 | };
316 | /* End XCBuildConfiguration section */
317 |
318 | /* Begin XCConfigurationList section */
319 | 83A3845E1EAFBD8000EE429B /* Build configuration list for PBXProject "DiagonalCategory" */ = {
320 | isa = XCConfigurationList;
321 | buildConfigurations = (
322 | 83A384701EAFBD8000EE429B /* Debug */,
323 | 83A384711EAFBD8000EE429B /* Release */,
324 | );
325 | defaultConfigurationIsVisible = 0;
326 | defaultConfigurationName = Release;
327 | };
328 | 83A384721EAFBD8000EE429B /* Build configuration list for PBXNativeTarget "DiagonalCategory" */ = {
329 | isa = XCConfigurationList;
330 | buildConfigurations = (
331 | 83A384731EAFBD8000EE429B /* Debug */,
332 | 83A384741EAFBD8000EE429B /* Release */,
333 | );
334 | defaultConfigurationIsVisible = 0;
335 | defaultConfigurationName = Release;
336 | };
337 | /* End XCConfigurationList section */
338 | };
339 | rootObject = 83A3845B1EAFBD8000EE429B /* Project object */;
340 | }
341 |
--------------------------------------------------------------------------------