forked from code-squad/swift-cardgameapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Arrange code order and Delete unused code - Add annotations - Declare variables for drawing and set up cardImage frames
- Loading branch information
Showing
3 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// CustomEnum.swift | ||
// CardGameApp | ||
// | ||
// Created by YOUTH2 on 2018. 4. 17.. | ||
// Copyright © 2018년 JINiOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
enum PositionX: EnumCollection { | ||
case first | ||
case second | ||
case third | ||
case fourth | ||
case fifth | ||
case sixth | ||
case seventh | ||
|
||
var value: CGFloat { | ||
switch self { | ||
case .first: return 6.46875 | ||
case .second: return 64.6875 | ||
case .third: return 122.90625 | ||
case .fourth: return 181.125 | ||
case .fifth: return 239.34375 | ||
case .sixth: return 297.5625 | ||
case .seventh: return 355.78125 | ||
} | ||
} | ||
|
||
} | ||
|
||
enum PositionY { | ||
case upper | ||
case bottom | ||
|
||
var value: CGFloat { | ||
switch self { | ||
case .upper: return 20 | ||
case .bottom: return 100 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters