Skip to content

Commit

Permalink
주석 끝
Browse files Browse the repository at this point in the history
  • Loading branch information
presto95 committed Mar 13, 2019
1 parent 279daae commit deda29a
Show file tree
Hide file tree
Showing 67 changed files with 668 additions and 591 deletions.
64 changes: 29 additions & 35 deletions RespectU.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
57A9D23286BDA314BEC501224189EFE7 /* TrophyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54A0585B9094D54EA2EE91A30C6265FA /* TrophyViewController.swift */; };
8D428E252225AAE930BF8D945401F018 /* UIAlertController+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42BE04F264C300B56C92EE575A854683 /* UIAlertController+.swift */; };
86DEAB8A62F44038DA244F4B864FE1FF /* UIColor+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FC485CCFD9749EE1E561DFAE98EA11C /* UIColor+.swift */; };
D5BAC3FE4BFE449319B1FF768BEA4DA9 /* UITableViewCell+.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0BA4578D4298BF7ECAD291A9230D5DA /* UITableViewCell+.swift */; };
5A7233F8CD55096485F6137E6278A377 /* UIView+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB6EB0A090B3EC667134B3DD24AA2A8 /* UIView+.swift */; };
4CB993740AF398D71E90C9EC481F995D /* UIViewController+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0933C1D68D4630ABCB0E824F3B06E6FA /* UIViewController+.swift */; };
C86374E3E25A9D8B40E03568CB353DCE /* Upload.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 808F49E6EA3E0B9F118A59BCD1C399A9 /* Upload.storyboard */; };
Expand Down Expand Up @@ -442,7 +441,6 @@
54A0585B9094D54EA2EE91A30C6265FA /* TrophyViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrophyViewController.swift; sourceTree = "<group>"; };
42BE04F264C300B56C92EE575A854683 /* UIAlertController+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIAlertController+.swift"; sourceTree = "<group>"; };
2FC485CCFD9749EE1E561DFAE98EA11C /* UIColor+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+.swift"; sourceTree = "<group>"; };
B0BA4578D4298BF7ECAD291A9230D5DA /* UITableViewCell+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITableViewCell+.swift"; sourceTree = "<group>"; };
4DB6EB0A090B3EC667134B3DD24AA2A8 /* UIView+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+.swift"; sourceTree = "<group>"; };
0933C1D68D4630ABCB0E824F3B06E6FA /* UIViewController+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+.swift"; sourceTree = "<group>"; };
808F49E6EA3E0B9F118A59BCD1C399A9 /* Upload.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Upload.storyboard; sourceTree = "<group>"; };
Expand Down Expand Up @@ -501,32 +499,6 @@
name = Frameworks;
sourceTree = "<group>";
};
CA5641B4D07921D199A3C326E7E11880 /* XIBs */ = {
isa = PBXGroup;
children = (
F957C9D0578879C4BFDF188CC7E9DB68 /* AchievementCell.xib */,
4145F1EB5D7436740025D90996B48C6B /* GuideFirstCell.xib */,
ACAACBB2302A38B15286B2F10D57B0D2 /* GuideSecondCell.xib */,
570419DC99D9A09F38A4AC7F521FCA9B /* GuideThirdCell.xib */,
6F96CA2C329587E39822104CEF6C2C4D /* MissionCell.xib */,
1BD862D1F9C81B97810DC117707740FB /* RankingCell.xib */,
CA9B676C5D60B5CCB2663B17DFB0D19B /* RecordCell.xib */,
A832024764FD1738185268E528614C3A /* RecordView.xib */,
650873B493E00BDFE6552F230602E303 /* SearchByLevelView.xib */,
65A74FCC87D5D9BBBEBAE0F47B7B68DA /* SearchByNoteView.xib */,
B6DD826AB9C764BFEA1BFE277466B01C /* SearchByRatingView.xib */,
E6C14F35B2B1A8D25A221C146D1C063B /* SearchRecordDetailCell.xib */,
0A0189022C6BE4C949EA9505B6B3CA1C /* SkillLevelCell.xib */,
62A4B18F7F37F18F820CB7408C91507F /* SkillLevelDetailView.xib */,
CDE48D134E382F52D49F7020BDAE3546 /* SongCell.xib */,
EDC63C6945BBA9A7159F95B906AC4F52 /* SummaryCell.xib */,
DBBD5EC70A4CB6A25BE54391F562C59F /* SummaryCollectionCell.xib */,
1907607DB6FA22EE22397D314C25E2C6 /* Top50Cell.xib */,
F3C75B35A37617F2B6A9DD8208FE2AD9 /* TrophyCell.xib */,
);
path = XIBs;
sourceTree = "<group>";
};
20CD4E18015C56EA046398F6514DA8D4 /* Top50 */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -672,7 +644,6 @@
08640281899B112DEB6A0A0A56A169B7 /* String+.swift */,
42BE04F264C300B56C92EE575A854683 /* UIAlertController+.swift */,
2FC485CCFD9749EE1E561DFAE98EA11C /* UIColor+.swift */,
B0BA4578D4298BF7ECAD291A9230D5DA /* UITableViewCell+.swift */,
4DB6EB0A090B3EC667134B3DD24AA2A8 /* UIView+.swift */,
0933C1D68D4630ABCB0E824F3B06E6FA /* UIViewController+.swift */,
);
Expand Down Expand Up @@ -826,6 +797,32 @@
path = Ranking;
sourceTree = "<group>";
};
CA5641B4D07921D199A3C326E7E11880 /* XIBs */ = {
isa = PBXGroup;
children = (
F957C9D0578879C4BFDF188CC7E9DB68 /* AchievementCell.xib */,
4145F1EB5D7436740025D90996B48C6B /* GuideFirstCell.xib */,
ACAACBB2302A38B15286B2F10D57B0D2 /* GuideSecondCell.xib */,
570419DC99D9A09F38A4AC7F521FCA9B /* GuideThirdCell.xib */,
6F96CA2C329587E39822104CEF6C2C4D /* MissionCell.xib */,
1BD862D1F9C81B97810DC117707740FB /* RankingCell.xib */,
CA9B676C5D60B5CCB2663B17DFB0D19B /* RecordCell.xib */,
A832024764FD1738185268E528614C3A /* RecordView.xib */,
650873B493E00BDFE6552F230602E303 /* SearchByLevelView.xib */,
65A74FCC87D5D9BBBEBAE0F47B7B68DA /* SearchByNoteView.xib */,
B6DD826AB9C764BFEA1BFE277466B01C /* SearchByRatingView.xib */,
E6C14F35B2B1A8D25A221C146D1C063B /* SearchRecordDetailCell.xib */,
0A0189022C6BE4C949EA9505B6B3CA1C /* SkillLevelCell.xib */,
62A4B18F7F37F18F820CB7408C91507F /* SkillLevelDetailView.xib */,
CDE48D134E382F52D49F7020BDAE3546 /* SongCell.xib */,
EDC63C6945BBA9A7159F95B906AC4F52 /* SummaryCell.xib */,
DBBD5EC70A4CB6A25BE54391F562C59F /* SummaryCollectionCell.xib */,
1907607DB6FA22EE22397D314C25E2C6 /* Top50Cell.xib */,
F3C75B35A37617F2B6A9DD8208FE2AD9 /* TrophyCell.xib */,
);
path = XIBs;
sourceTree = "<group>";
};
DC130C869CC4C032B6E7EDA0329E7A64 /* RespectU */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -947,7 +944,7 @@
TargetAttributes = {
53800806E58C491F36E83AB35BB564AC = {
CreatedOnToolsVersion = 9.0;
LastSwiftMigration = 0920;
LastSwiftMigration = 1010;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -1258,7 +1255,6 @@
57A9D23286BDA314BEC501224189EFE7 /* TrophyViewController.swift in Sources */,
8D428E252225AAE930BF8D945401F018 /* UIAlertController+.swift in Sources */,
86DEAB8A62F44038DA244F4B864FE1FF /* UIColor+.swift in Sources */,
D5BAC3FE4BFE449319B1FF768BEA4DA9 /* UITableViewCell+.swift in Sources */,
5A7233F8CD55096485F6137E6278A377 /* UIView+.swift in Sources */,
4CB993740AF398D71E90C9EC481F995D /* UIViewController+.swift in Sources */,
3C2E4343DB314444E72BCA528356A02B /* UploadViewController.swift in Sources */,
Expand Down Expand Up @@ -1310,8 +1306,7 @@
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -1333,8 +1328,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "19B6CFE71F7953640097B86B"
BlueprintIdentifier = "53800806E58C491F36E83AB35BB564AC"
BuildableName = "RespectU.app"
BlueprintName = "RespectU"
ReferencedContainer = "container:RespectU.xcodeproj">
Expand Down Expand Up @@ -42,7 +42,7 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "19B6CFE71F7953640097B86B"
BlueprintIdentifier = "53800806E58C491F36E83AB35BB564AC"
BuildableName = "RespectU.app"
BlueprintName = "RespectU"
ReferencedContainer = "container:RespectU.xcodeproj">
Expand All @@ -65,7 +65,7 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "19B6CFE71F7953640097B86B"
BlueprintIdentifier = "53800806E58C491F36E83AB35BB564AC"
BuildableName = "RespectU.app"
BlueprintName = "RespectU"
ReferencedContainer = "container:RespectU.xcodeproj">
Expand All @@ -91,7 +91,7 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "19B6CFE71F7953640097B86B"
BlueprintIdentifier = "53800806E58C491F36E83AB35BB564AC"
BuildableName = "RespectU.app"
BlueprintName = "RespectU"
ReferencedContainer = "container:RespectU.xcodeproj">
Expand Down
4 changes: 2 additions & 2 deletions RespectU/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AppDelegate.swift
// RespectU
// RespectU
//
// Created by Presto on 2017. 9. 26..
// Copyright © 2017년 Presto. All rights reserved.
Expand All @@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
var config = Realm.Configuration()
if let fileURL = config.fileURL {
config.fileURL = fileURL.deletingLastPathComponent().appendingPathComponent("new.realm")
Expand Down
2 changes: 0 additions & 2 deletions RespectU/Sources/Common/AchievementType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation

/// The `enum` that defines types of achievement.
enum AchievementType: String {

Expand Down
6 changes: 2 additions & 4 deletions RespectU/Sources/Common/Constants/SkillLevel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2018년 Presto. All rights reserved.
//

import Foundation

/// The `enum` that defines constants about skill level.
enum SkillLevel: String, CaseIterable {

Expand Down Expand Up @@ -93,10 +91,10 @@ enum SkillLevel: String, CaseIterable {
case superstar1 = "SUPERSTAR Ⅰ"

/// DJMAX GRAND MASTER.
case djmaxGrandMaster = "DJMAX GRAND MASTER"
case djmaxGrandMaster = "🔥DJMAX GRAND MASTER🔥"

/// THE DJMAX.
case theDjmax = "✨THE DJMAX"
case theDjmax = "✨THE DJMAX"

/// The skill levels of 4 button mode.
static let button4SkillLevels: [SkillLevel] = [
Expand Down
2 changes: 0 additions & 2 deletions RespectU/Sources/Common/Constants/SkillPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation

/// The `enum` that defines constants about skill point.
enum SkillPoint {

Expand Down
1 change: 1 addition & 0 deletions RespectU/Sources/Common/Difficulty.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ enum Difficulty: String {
/// Only in mission - REDESIGN.
case redesign

/// The all difficulties in normal mode.
static let all: [Difficulty] = [.normal, .hard, .maximum]
}
1 change: 0 additions & 1 deletion RespectU/Sources/Common/GradientDirection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation
import UIKit

/// The `enum` that defines a direction of gradient layer.
Expand Down
23 changes: 9 additions & 14 deletions RespectU/Sources/Common/MissionSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@

import UIKit

/// The `protocol` that defines mission section type.
protocol MissionSectionType {

/// The color representing each section.
var color: UIColor? { get }

/// Makes gradient layer by `direction`.
///
/// - Parameter direction: The direction of the gradient layer.
///
/// - Returns: The created gradient layer.
func makeGradient(by direction: GradientDirection) -> CAGradientLayer?
}

Expand Down Expand Up @@ -186,20 +193,6 @@ enum MissionSection {
}
}

case respect

case trilogy

case ce

case technika1

case bs

case technika2

case technika3

static func makeSection(bySeries series: Series, section: String) -> MissionSectionType? {
switch series {
case .respect:
Expand All @@ -212,6 +205,8 @@ enum MissionSection {
return MissionSection.Technika1(rawValue: section)
case .bs:
return MissionSection.BS(rawValue: section)
case .linkdisk:
return MissionSection.LinkDisk(rawValue: section)
case .technika2:
return MissionSection.Technika2(rawValue: section)
case .technika3:
Expand Down
4 changes: 0 additions & 4 deletions RespectU/Sources/Common/RUButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import UIKit
/// The custom button used throughout the application.
final class RUButton: UIButton {

// MARK: Initializer

override init(frame: CGRect) {
super.init(frame: frame)
configure()
Expand All @@ -23,8 +21,6 @@ final class RUButton: UIButton {
configure()
}

// MARK: Method

/// Configures default settings.
private func configure() {
layer.cornerRadius = bounds.height / 2
Expand Down
2 changes: 0 additions & 2 deletions RespectU/Sources/Common/SearchRecordDetail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation

/// The `struct` using in search record detail.
struct SearchRecordDetail {

Expand Down
2 changes: 1 addition & 1 deletion RespectU/Sources/Common/Series.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum Series: String {
case bs

/// LINK DISK.
case linkDisk
case linkdisk

/// TECHNIKA 2 DLC.
case technika2
Expand Down
21 changes: 0 additions & 21 deletions RespectU/Sources/Extension/CAGradientLayer+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,6 @@ import UIKit

extension CAGradientLayer {

/// Creates gradient layer.
///
/// - Parameters:
/// - startPoint: The start point of a gradient layer.
/// - endPoint: The end point of a gradient layer.
/// - colors: The colors of a gradient layer.
/// - locations: The locations of a gradient layer.
///
/// - Returns: The gradient layer.
// static func make(startPoint: CGPoint,
// endPoint: CGPoint,
// colors: [CGColor],
// locations: [NSNumber]) -> CAGradientLayer {
// let gradient = CAGradientLayer()
// gradient.startPoint = startPoint
// gradient.endPoint = endPoint
// gradient.colors = colors
// gradient.locations = locations
// return gradient
// }

/// Initializes the gradient layer.
///
/// - Parameters:
Expand Down
2 changes: 0 additions & 2 deletions RespectU/Sources/Extension/Double+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation

extension Double {

/// The natural constant.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation
import UIKit

extension MissionSection.BS {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation
import UIKit

extension MissionSection.CE {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation
import UIKit

extension MissionSection.LinkDisk {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 Presto. All rights reserved.
//

import Foundation
import UIKit

extension MissionSection.Respect {
Expand Down
Loading

0 comments on commit deda29a

Please sign in to comment.