-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Refact] - #11 Weather App MVC 패턴 적용
- Loading branch information
Showing
31 changed files
with
457 additions
and
242 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Img-1.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
|
@@ -10,6 +11,7 @@ | |
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
|
Binary file added
BIN
+253 KB
...gnment2/SOPT33_assignment2/Global/Assets.xcassets/background.imageset/Img-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+570 KB
(320%)
...signment2/SOPT33_assignment2/Global/Assets.xcassets/background.imageset/Img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.61 MB
...nment2/SOPT33_assignment2/Global/Assets.xcassets/background.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -6,10 +6,12 @@ | |
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
|
Binary file modified
BIN
+31 Bytes
(100%)
...33_assignment2/SOPT33_assignment2/Global/Assets.xcassets/list.imageset/list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+193 KB
...assignment2/SOPT33_assignment2/Global/Assets.xcassets/list.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+401 KB
...assignment2/SOPT33_assignment2/Global/Assets.xcassets/list.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
SOPT33_assignment2/SOPT33_assignment2/Global/Extension/UIImage+.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,17 @@ | ||
// | ||
// UIImage+.swift | ||
// SOPT33_assignment2 | ||
// | ||
// Created by Gahyun Kim on 2023/12/12. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIImage { | ||
static func load(named imageName: String) -> UIImage { | ||
guard let image = UIImage(named: imageName, in: nil, compatibleWith: nil) else { | ||
return UIImage() | ||
} | ||
return image | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
SOPT33_assignment2/SOPT33_assignment2/Global/Literals/ImageLiterals.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,30 @@ | ||
// | ||
// ImageLiterals.swift | ||
// SOPT33_assignment2 | ||
// | ||
// Created by Gahyun Kim on 2023/12/12. | ||
// | ||
|
||
import UIKit | ||
|
||
enum ImageLiterals { | ||
enum img { | ||
static var background: UIImage { .load(named: "background")} | ||
static var list: UIImage { .load(named: "list")} | ||
} | ||
|
||
enum icon { | ||
static var cloud: UIImage { .load(named: "cloud")} | ||
static var drizzle: UIImage { .load(named: "drizzle")} | ||
static var rain: UIImage { .load(named: "rain")} | ||
static var sunshower: UIImage { .load(named: "sunshower")} | ||
static var thunder: UIImage { .load(named: "thunder")} | ||
static var current: UIImage { .load(named: "current")} | ||
static var map: UIImage { .load(named: "map")} | ||
static var menu: UIImage { .load(named: "menu")} | ||
static var other: UIImage { .load(named: "other")} | ||
static var pre: UIImage { .load(named: "pre")} | ||
static var search: UIImage { .load(named: "search")} | ||
static var tempbar: UIImage { .load(named: "tempbar")} | ||
} | ||
} |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.