Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
presto95 committed Mar 14, 2019
1 parent 320a990 commit 62d8a6a
Show file tree
Hide file tree
Showing 17 changed files with 145 additions and 169 deletions.
64 changes: 32 additions & 32 deletions RespectU.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@
99897C2ED7674E739230DED65BDC06D2 /* MissionLinkDiskTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EB4F2D81091EAC8D197F1D737EA41B9 /* MissionLinkDiskTableViewController.swift */; };
80F2294D348F4A43E2CB8F35028D0423 /* MissionRespectTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D1936880A3D30B8BC49B8587F6778EEA /* MissionRespectTableViewController.swift */; };
90AF44D559BE00DEB63346B84D141E10 /* MissionResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 356291260ADA8E8A175631818583AAC6 /* MissionResponse.swift */; };
AC365183A54C207B12519696FFF64C67 /* MissionSection.BS+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE0A154D3D7E018D76684B281CECD0 /* MissionSection.BS+Gradient.swift */; };
0380D257C2F539A6344259BF2EFED65A /* MissionSection.CE+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91CBAA567778CAD53CB93CE152F92D55 /* MissionSection.CE+Gradient.swift */; };
BEC2CC592CAB4198746262C55D73DBA0 /* MissionSection.LinkDisk+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60EAD4483197E0A753FDD10845C98D09 /* MissionSection.LinkDisk+Gradient.swift */; };
8DD62325C32CFDD11403EF407197E9A9 /* MissionSection.Respect+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = A09D0FEC3D95CCD8ECE16CBDA7084FFA /* MissionSection.Respect+Gradient.swift */; };
87EE66478A51CBA1A1A9F26347694685 /* MissionSection.Technika1+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D7A5F0799CF86A96D301D82B8B1090 /* MissionSection.Technika1+Gradient.swift */; };
72713E32C8FA38F681A9C4F075A7D08B /* MissionSection.Technika2+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241BD9807E33EA3CBBF302A35813F5C2 /* MissionSection.Technika2+Gradient.swift */; };
5A54507509E4E4DC3181C3FCB74FBBC0 /* MissionSection.Technika3+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = FBF7FCA66B507564BF411BB82D824394 /* MissionSection.Technika3+Gradient.swift */; };
9F579ACF8BFC762F49A03A837BCCF7ED /* MissionSection.Trilogy+Gradient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B59269E3AB75988A25F6D4EF5088A20 /* MissionSection.Trilogy+Gradient.swift */; };
66FD3654735C071C001E78ECE1B2ABB3 /* MissionSection.BS+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F3D34B43DF30D610EC43BBADC96563E /* MissionSection.BS+UI.swift */; };
ADB67C24258FDE09E281323CC0D81A11 /* MissionSection.CE+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954CFB083C00CDB9E307C63BBEA58207 /* MissionSection.CE+UI.swift */; };
2393EF38D443D7A396C9D074B0726CE6 /* MissionSection.LinkDisk+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50368872E0899227AA374CA6E296B27B /* MissionSection.LinkDisk+UI.swift */; };
433B40CCC809DF69C0F51058349CF1E6 /* MissionSection.Respect+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507F2446A863CB86AF7532AC85D74D3F /* MissionSection.Respect+UI.swift */; };
3286DFFC9EAD3C3E654FECB757878B89 /* MissionSection.Technika1+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = D1B6CACA6D115E48E0B8F85E9D461EDA /* MissionSection.Technika1+UI.swift */; };
CF49DAE3FEBA267700E391BEC367587F /* MissionSection.Technika2+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 883F40CC3D38EF613B6164D31E74574E /* MissionSection.Technika2+UI.swift */; };
A97D770C729CFE8D99CF49AEC477C7A2 /* MissionSection.Technika3+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEFE945969F149232A7EDC417D48B504 /* MissionSection.Technika3+UI.swift */; };
1287F2D82C3E24170575A2732992D5BF /* MissionSection.Trilogy+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33FC8754224174261B82C1BA1E0BEE09 /* MissionSection.Trilogy+UI.swift */; };
F551680129D8E83F451174BE5B4DBF5D /* MissionSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27FD193AE2FCE3A3F96143D41ADBCC7F /* MissionSection.swift */; };
BEC7D1F3799FA6E0EEDB0980E345F689 /* MissionStageInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D78571F88000DB2A377C1A859F5F2B0B /* MissionStageInfo.swift */; };
D4F4FB7D6DFADE1F54AEEDDEEE9BF681 /* MissionTechnika1TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3127AC853734E65CD8EDD6BD1D9AEB68 /* MissionTechnika1TableViewController.swift */; };
Expand Down Expand Up @@ -299,14 +299,14 @@
5EB4F2D81091EAC8D197F1D737EA41B9 /* MissionLinkDiskTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MissionLinkDiskTableViewController.swift; sourceTree = "<group>"; };
D1936880A3D30B8BC49B8587F6778EEA /* MissionRespectTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MissionRespectTableViewController.swift; sourceTree = "<group>"; };
356291260ADA8E8A175631818583AAC6 /* MissionResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MissionResponse.swift; sourceTree = "<group>"; };
A9BE0A154D3D7E018D76684B281CECD0 /* MissionSection.BS+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.BS+Gradient.swift"; sourceTree = "<group>"; };
91CBAA567778CAD53CB93CE152F92D55 /* MissionSection.CE+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.CE+Gradient.swift"; sourceTree = "<group>"; };
60EAD4483197E0A753FDD10845C98D09 /* MissionSection.LinkDisk+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.LinkDisk+Gradient.swift"; sourceTree = "<group>"; };
A09D0FEC3D95CCD8ECE16CBDA7084FFA /* MissionSection.Respect+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Respect+Gradient.swift"; sourceTree = "<group>"; };
79D7A5F0799CF86A96D301D82B8B1090 /* MissionSection.Technika1+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika1+Gradient.swift"; sourceTree = "<group>"; };
241BD9807E33EA3CBBF302A35813F5C2 /* MissionSection.Technika2+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika2+Gradient.swift"; sourceTree = "<group>"; };
FBF7FCA66B507564BF411BB82D824394 /* MissionSection.Technika3+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika3+Gradient.swift"; sourceTree = "<group>"; };
6B59269E3AB75988A25F6D4EF5088A20 /* MissionSection.Trilogy+Gradient.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Trilogy+Gradient.swift"; sourceTree = "<group>"; };
0F3D34B43DF30D610EC43BBADC96563E /* MissionSection.BS+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.BS+UI.swift"; sourceTree = "<group>"; };
954CFB083C00CDB9E307C63BBEA58207 /* MissionSection.CE+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.CE+UI.swift"; sourceTree = "<group>"; };
50368872E0899227AA374CA6E296B27B /* MissionSection.LinkDisk+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.LinkDisk+UI.swift"; sourceTree = "<group>"; };
507F2446A863CB86AF7532AC85D74D3F /* MissionSection.Respect+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Respect+UI.swift"; sourceTree = "<group>"; };
D1B6CACA6D115E48E0B8F85E9D461EDA /* MissionSection.Technika1+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika1+UI.swift"; sourceTree = "<group>"; };
883F40CC3D38EF613B6164D31E74574E /* MissionSection.Technika2+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika2+UI.swift"; sourceTree = "<group>"; };
CEFE945969F149232A7EDC417D48B504 /* MissionSection.Technika3+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Technika3+UI.swift"; sourceTree = "<group>"; };
33FC8754224174261B82C1BA1E0BEE09 /* MissionSection.Trilogy+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MissionSection.Trilogy+UI.swift"; sourceTree = "<group>"; };
27FD193AE2FCE3A3F96143D41ADBCC7F /* MissionSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MissionSection.swift; sourceTree = "<group>"; };
D78571F88000DB2A377C1A859F5F2B0B /* MissionStageInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MissionStageInfo.swift; sourceTree = "<group>"; };
3127AC853734E65CD8EDD6BD1D9AEB68 /* MissionTechnika1TableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MissionTechnika1TableViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -633,14 +633,14 @@
children = (
6F8D863B4192345379FAA072605B014B /* CAGradientLayer+.swift */,
00C0A70ADF02A515C554A2A7F65D04D0 /* Double+.swift */,
A9BE0A154D3D7E018D76684B281CECD0 /* MissionSection.BS+Gradient.swift */,
91CBAA567778CAD53CB93CE152F92D55 /* MissionSection.CE+Gradient.swift */,
60EAD4483197E0A753FDD10845C98D09 /* MissionSection.LinkDisk+Gradient.swift */,
A09D0FEC3D95CCD8ECE16CBDA7084FFA /* MissionSection.Respect+Gradient.swift */,
79D7A5F0799CF86A96D301D82B8B1090 /* MissionSection.Technika1+Gradient.swift */,
241BD9807E33EA3CBBF302A35813F5C2 /* MissionSection.Technika2+Gradient.swift */,
FBF7FCA66B507564BF411BB82D824394 /* MissionSection.Technika3+Gradient.swift */,
6B59269E3AB75988A25F6D4EF5088A20 /* MissionSection.Trilogy+Gradient.swift */,
0F3D34B43DF30D610EC43BBADC96563E /* MissionSection.BS+UI.swift */,
954CFB083C00CDB9E307C63BBEA58207 /* MissionSection.CE+UI.swift */,
50368872E0899227AA374CA6E296B27B /* MissionSection.LinkDisk+UI.swift */,
507F2446A863CB86AF7532AC85D74D3F /* MissionSection.Respect+UI.swift */,
D1B6CACA6D115E48E0B8F85E9D461EDA /* MissionSection.Technika1+UI.swift */,
883F40CC3D38EF613B6164D31E74574E /* MissionSection.Technika2+UI.swift */,
CEFE945969F149232A7EDC417D48B504 /* MissionSection.Technika3+UI.swift */,
33FC8754224174261B82C1BA1E0BEE09 /* MissionSection.Trilogy+UI.swift */,
90B143CCDE9CB1920C76E56DFB8E619A /* NSObject+.swift */,
9A9970140918A7A61332718A9C9D8322 /* Series+UI.swift */,
08640281899B112DEB6A0A0A56A169B7 /* String+.swift */,
Expand Down Expand Up @@ -1143,14 +1143,14 @@
99897C2ED7674E739230DED65BDC06D2 /* MissionLinkDiskTableViewController.swift in Sources */,
80F2294D348F4A43E2CB8F35028D0423 /* MissionRespectTableViewController.swift in Sources */,
90AF44D559BE00DEB63346B84D141E10 /* MissionResponse.swift in Sources */,
AC365183A54C207B12519696FFF64C67 /* MissionSection.BS+Gradient.swift in Sources */,
0380D257C2F539A6344259BF2EFED65A /* MissionSection.CE+Gradient.swift in Sources */,
BEC2CC592CAB4198746262C55D73DBA0 /* MissionSection.LinkDisk+Gradient.swift in Sources */,
8DD62325C32CFDD11403EF407197E9A9 /* MissionSection.Respect+Gradient.swift in Sources */,
87EE66478A51CBA1A1A9F26347694685 /* MissionSection.Technika1+Gradient.swift in Sources */,
72713E32C8FA38F681A9C4F075A7D08B /* MissionSection.Technika2+Gradient.swift in Sources */,
5A54507509E4E4DC3181C3FCB74FBBC0 /* MissionSection.Technika3+Gradient.swift in Sources */,
9F579ACF8BFC762F49A03A837BCCF7ED /* MissionSection.Trilogy+Gradient.swift in Sources */,
66FD3654735C071C001E78ECE1B2ABB3 /* MissionSection.BS+UI.swift in Sources */,
ADB67C24258FDE09E281323CC0D81A11 /* MissionSection.CE+UI.swift in Sources */,
2393EF38D443D7A396C9D074B0726CE6 /* MissionSection.LinkDisk+UI.swift in Sources */,
433B40CCC809DF69C0F51058349CF1E6 /* MissionSection.Respect+UI.swift in Sources */,
3286DFFC9EAD3C3E654FECB757878B89 /* MissionSection.Technika1+UI.swift in Sources */,
CF49DAE3FEBA267700E391BEC367587F /* MissionSection.Technika2+UI.swift in Sources */,
A97D770C729CFE8D99CF49AEC477C7A2 /* MissionSection.Technika3+UI.swift in Sources */,
1287F2D82C3E24170575A2732992D5BF /* MissionSection.Trilogy+UI.swift in Sources */,
F551680129D8E83F451174BE5B4DBF5D /* MissionSection.swift in Sources */,
BEC7D1F3799FA6E0EEDB0980E345F689 /* MissionStageInfo.swift in Sources */,
D4F4FB7D6DFADE1F54AEEDDEEE9BF681 /* MissionTechnika1TableViewController.swift in Sources */,
Expand Down
73 changes: 8 additions & 65 deletions RespectU/Sources/Common/MissionSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protocol MissionSectionType {
/// The color representing each section.
var color: UIColor? { get }

/// Makes gradient layer by `direction`.
/// Creates gradient layer by `direction`.
///
/// - Parameter direction: The direction of the gradient layer.
///
Expand Down Expand Up @@ -57,21 +57,6 @@ enum MissionSection {

/// RESPECT - Destination.
case destination = "Destination"

var color: UIColor? {
switch self {
case .departure: return .departure
case .clubRoad645: return .clubRoad645
case .maxTheater: return .maxTheater
case .anotherWorld: return .anotherWorld
case .backStage: return .backStage
case .chaosTheory: return .chaosTheory
case .soundLab: return .soundLab
case .visualizer: return .visualizer
case .developers: return .developers
case .destination: return .destination
}
}
}

/// The `enum` that defines TRILOGY mission sections.
Expand All @@ -82,13 +67,6 @@ enum MissionSection {

/// TRILOGY - R-SIDE.
case rSide = "R-SIDE"

var color: UIColor? {
switch self {
case .tSide: return .tSide
case .rSide: return .rSide
}
}
}

/// The `enum` that defines CLAZZIQUAI EDITION mission sections.
Expand All @@ -99,13 +77,6 @@ enum MissionSection {

/// CE - Metropolis.
case metropolis = "Metropolis"

var color: UIColor? {
switch self {
case .electronicCity: return .electronicCity
case .metropolis: return .metropolis
}
}
}

/// The `enum` that defines TECHNIKA 1 mission sections.
Expand All @@ -116,13 +87,6 @@ enum MissionSection {

/// TECHNIKA 1 - Technical Mixing.
case technicalMixing = "Technical Mixing"

var color: UIColor? {
switch self {
case .platinumMixing: return .platinumMixing
case .technicalMixing: return .technicalMixing
}
}
}

/// The `enum` that defines BLACK SQUARE mission sections.
Expand All @@ -133,13 +97,6 @@ enum MissionSection {

/// BS - Absolute Sound.
case absoluteSound = "Absolute Sound"

var color: UIColor? {
switch self {
case .stylishPerformance: return .stylishPerformance
case .absoluteSound: return .absoluteSound
}
}
}

/// The `enum` that defines TECHNIKA 2 mission sections.
Expand All @@ -150,13 +107,6 @@ enum MissionSection {

/// TECHNIKA 2 - CLUB MIXING.
case clubMixing = "CLUB MIXING"

var color: UIColor? {
switch self {
case .starMixing: return .starMixing
case .clubMixing: return .clubMixing
}
}
}

/// The `enum` that defines LINK DISK mission sections.
Expand All @@ -167,13 +117,6 @@ enum MissionSection {

/// LINK DISK - BLACK DISK.
case blackDisk = "BLACK DISK"

var color: UIColor? {
switch self {
case .whiteDisk: return .whiteDisk
case .blackDisk: return .blackDisk
}
}
}

/// The `enum` that defines TECHNIKA 3 mission sections.
Expand All @@ -184,15 +127,15 @@ enum MissionSection {

/// TECHNIKA 3 - Crew Challenge.
case crewChallenge = "Crew Challenge"

var color: UIColor? {
switch self {
case .popMixing: return .popMixing
case .crewChallenge: return .crewChallenge
}
}
}

/// Creates section by `series` and `section`.
///
/// - Parameters:
/// - series: The series of the mission.
/// - section: The section string value of the mission.
///
/// - Returns: The object conforming `MissionSectionType`. It can be `nil`.
static func makeSection(bySeries series: Series, section: String) -> MissionSectionType? {
switch series {
case .respect:
Expand Down
10 changes: 6 additions & 4 deletions RespectU/Sources/Extension/CAGradientLayer+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ extension CAGradientLayer {
colors: [CGColor],
locations: [NSNumber]) {
self.init()
self.startPoint = startPoint
self.endPoint = endPoint
self.colors = colors
self.locations = locations
self.do {
$0.startPoint = startPoint
$0.endPoint = endPoint
$0.colors = colors
$0.locations = locations
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import UIKit

extension MissionSection.BS {

/// Creates `CAGradientLayer` matching each mission section.
///
/// - Parameter direction: The direction of gradient layer.
///
/// - Returns: The created `CAGradientLayer`.
var color: UIColor? {
switch self {
case .stylishPerformance: return .stylishPerformance
case .absoluteSound: return .absoluteSound
}
}

func makeGradient(by direction: GradientDirection) -> CAGradientLayer? {
let startPoint = direction.startPoint
let endPoint = direction.endPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import UIKit

extension MissionSection.CE {

/// Creates `CAGradientLayer` matching each mission section.
///
/// - Parameter direction: The direction of gradient layer.
///
/// - Returns: The created `CAGradientLayer`.
var color: UIColor? {
switch self {
case .electronicCity: return .electronicCity
case .metropolis: return .metropolis
}
}

func makeGradient(by direction: GradientDirection) -> CAGradientLayer? {
let startPoint = direction.startPoint
let endPoint = direction.endPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import UIKit

extension MissionSection.LinkDisk {

/// Creates `CAGradientLayer` matching each mission section.
///
/// - Parameter direction: The direction of gradient layer.
///
/// - Returns: The created `CAGradientLayer`.
var color: UIColor? {
switch self {
case .whiteDisk: return .whiteDisk
case .blackDisk: return .blackDisk
}
}

func makeGradient(by direction: GradientDirection) -> CAGradientLayer? {
let startPoint = direction.startPoint
let endPoint = direction.endPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ import UIKit

extension MissionSection.Respect {

/// Creates `CAGradientLayer` matching each mission section.
///
/// - Parameter direction: The direction of gradient layer.
///
/// - Returns: The created `CAGradientLayer`.
var color: UIColor? {
switch self {
case .departure: return .departure
case .clubRoad645: return .clubRoad645
case .maxTheater: return .maxTheater
case .anotherWorld: return .anotherWorld
case .backStage: return .backStage
case .chaosTheory: return .chaosTheory
case .soundLab: return .soundLab
case .visualizer: return .visualizer
case .developers: return .developers
case .destination: return .destination
}
}

func makeGradient(by direction: GradientDirection) -> CAGradientLayer? {
let startPoint = direction.startPoint
let endPoint = direction.endPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import UIKit

extension MissionSection.Technika1 {

/// Creates `CAGradientLayer` matching each mission section.
///
/// - Parameter direction: The direction of gradient layer.
///
/// - Returns: The created `CAGradientLayer`.
var color: UIColor? {
switch self {
case .platinumMixing: return .platinumMixing
case .technicalMixing: return .technicalMixing
}
}

func makeGradient(by direction: GradientDirection) -> CAGradientLayer? {
let startPoint = direction.startPoint
let endPoint = direction.endPoint
Expand Down
Loading

0 comments on commit 62d8a6a

Please sign in to comment.