-
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.
- Loading branch information
Showing
7 changed files
with
215 additions
and
52 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
110 changes: 110 additions & 0 deletions
110
Dear-World/Dear-World/Source/Domain/World Map/Model/WorldMap.Model.Country.swift
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,110 @@ | ||
// | ||
// WorldMap.Model.Country.swift | ||
// Dear-World | ||
// | ||
// Created by dongyoung.lee on 2021/01/03. | ||
// | ||
|
||
import UIKit | ||
|
||
extension WorldMap.Model { | ||
struct Country { | ||
let code: String | ||
let name: String | ||
let locations: [Location] | ||
} | ||
|
||
struct Location { | ||
let x: Int | ||
let y: Int | ||
} | ||
} | ||
extension WorldMap.Model { | ||
static let US = Country( | ||
code: "US", | ||
name: "United States", | ||
locations: [ | ||
Location(x: 1, y: 16), | ||
Location(x: 1, y: 18), | ||
Location(x: 1, y: 20), | ||
Location(x: 2, y: 15), | ||
Location(x: 2, y: 16), | ||
Location(x: 2, y: 17), | ||
Location(x: 2, y: 18), | ||
Location(x: 2, y: 19), | ||
Location(x: 2, y: 20), | ||
Location(x: 3, y: 15), | ||
Location(x: 3, y: 16), | ||
Location(x: 3, y: 17), | ||
Location(x: 3, y: 18), | ||
Location(x: 3, y: 19), | ||
Location(x: 3, y: 20), | ||
Location(x: 3, y: 21), | ||
Location(x: 4, y: 15), | ||
Location(x: 4, y: 16), | ||
Location(x: 4, y: 17), | ||
Location(x: 4, y: 18), | ||
Location(x: 4, y: 19), | ||
Location(x: 4, y: 20), | ||
Location(x: 5, y: 16), | ||
Location(x: 5, y: 17), | ||
Location(x: 5, y: 18), | ||
Location(x: 5, y: 19), | ||
Location(x: 5, y: 20), | ||
Location(x: 6, y: 16), | ||
Location(x: 6, y: 17), | ||
Location(x: 6, y: 18), | ||
Location(x: 6, y: 19), | ||
Location(x: 10, y: 25), | ||
Location(x: 10, y: 26), | ||
Location(x: 10, y: 27), | ||
Location(x: 11, y: 25), | ||
Location(x: 11, y: 26), | ||
Location(x: 11, y: 27), | ||
Location(x: 11, y: 28), | ||
Location(x: 12, y: 25), | ||
Location(x: 12, y: 26), | ||
Location(x: 12, y: 27), | ||
Location(x: 12, y: 28), | ||
Location(x: 12, y: 29), | ||
Location(x: 13, y: 25), | ||
Location(x: 13, y: 26), | ||
Location(x: 13, y: 27), | ||
Location(x: 13, y: 28), | ||
Location(x: 13, y: 29), | ||
Location(x: 14, y: 25), | ||
Location(x: 14, y: 26), | ||
Location(x: 14, y: 27), | ||
Location(x: 14, y: 28), | ||
Location(x: 14, y: 29), | ||
Location(x: 15, y: 25), | ||
Location(x: 15, y: 26), | ||
Location(x: 15, y: 27), | ||
Location(x: 15, y: 28), | ||
Location(x: 15, y: 29), | ||
Location(x: 15, y: 30), | ||
Location(x: 16, y: 25), | ||
Location(x: 16, y: 26), | ||
Location(x: 16, y: 27), | ||
Location(x: 16, y: 28), | ||
Location(x: 16, y: 29), | ||
Location(x: 17, y: 25), | ||
Location(x: 17, y: 26), | ||
Location(x: 17, y: 27), | ||
Location(x: 17, y: 28), | ||
Location(x: 17, y: 29), | ||
Location(x: 18, y: 26), | ||
Location(x: 18, y: 27), | ||
Location(x: 18, y: 28), | ||
Location(x: 18, y: 29), | ||
Location(x: 19, y: 27), | ||
Location(x: 19, y: 28), | ||
Location(x: 19, y: 29), | ||
Location(x: 19, y: 30), | ||
Location(x: 20, y: 26), | ||
Location(x: 20, y: 27), | ||
Location(x: 20, y: 28), | ||
Location(x: 21, y: 26) | ||
] | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
Dear-World/Dear-World/Source/Domain/World Map/WorldMap.swift
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,13 @@ | ||
// | ||
// WorldMap.swift | ||
// Dear-World | ||
// | ||
// Created by dongyoung.lee on 2021/01/03. | ||
// | ||
|
||
import Foundation | ||
|
||
enum WorldMap { | ||
enum API {} | ||
enum Model {} | ||
} |
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 |
---|---|---|
|
@@ -11,5 +11,4 @@ extension World.Model { | |
struct Rank: Decodable { | ||
let ranking: [Ranker] | ||
} | ||
|
||
} |
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
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 |
---|---|---|
@@ -1,54 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>UIUserInterfaceStyle</key> | ||
<string>Light</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleDisplayName</key> | ||
<string> Dear World, 🌏</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UIApplicationSceneManifest</key> | ||
<dict> | ||
<key>UIApplicationSupportsMultipleScenes</key> | ||
<false/> | ||
</dict> | ||
<key>UIApplicationSupportsIndirectInputEvents</key> | ||
<true/> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
<true/> | ||
</dict> | ||
<key>UIUserInterfaceStyle</key> | ||
<string>Light</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleDisplayName</key> | ||
<string> Dear World, 🌏</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UIApplicationSceneManifest</key> | ||
<dict> | ||
<key>UIApplicationSupportsMultipleScenes</key> | ||
<false/> | ||
</dict> | ||
<key>UIApplicationSupportsIndirectInputEvents</key> | ||
<true/> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
</plist> |