Skip to content

Commit

Permalink
[Settings]#4-Dev 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
VesselWheel committed Feb 6, 2024
1 parent 4550593 commit 1c872e9
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Weather777/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App needs location servers for stuffs.</string>
<string>App needs location servers for stuff.</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
Expand Down
1 change: 1 addition & 0 deletions Weather777/Network/WeatherManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
//

import Foundation

60 changes: 60 additions & 0 deletions Weather777/Network/WeatherModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,63 @@
//

import Foundation

// MARK: - WeatherData
struct WeatherData: Codable {
let coord: Coord
let weather: [Weather]
let base: String
let main: Main
let visibility: Int
let wind: Wind
let clouds: Clouds
let dt: Int
let sys: Sys
let timezone, id: Int
let name: String
let cod: Int
}

// MARK: - Clouds
struct Clouds: Codable {
let all: Int
}

// MARK: - Coord
struct Coord: Codable {
let lon, lat: Double
}

// MARK: - Main
struct Main: Codable {
let temp, feelsLike, tempMin, tempMax: Double
let pressure, humidity: Int

enum CodingKeys: String, CodingKey {
case temp
case feelsLike = "feels_like"
case tempMin = "temp_min"
case tempMax = "temp_max"
case pressure, humidity
}
}

// MARK: - Sys
struct Sys: Codable {
let type, id: Int
let country: String
let sunrise, sunset: Int
}

// MARK: - Weather
struct Weather: Codable {
let id: Int
let main, description, icon: String
}

// MARK: - Wind
struct Wind: Codable {
let speed: Double
let deg: Int
}

0 comments on commit 1c872e9

Please sign in to comment.