Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions heatguard-iOS/Assets.xcassets/WeatherCloudy.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"filename" : "weather-cloudy.png",
"idiom" : "universal",
"scale" : "1x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions heatguard-iOS/Assets.xcassets/WeatherRain.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"filename" : "weather-rain.png",
"idiom" : "universal",
"scale" : "1x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
"filename" : "weather-sunny.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions heatguard-iOS/Core/Dashboard/HGDashboardService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ struct HomeWeather: Equatable {
switch skyStatus {
case "CLEAR": "WeatherSunny"
case "PARTLY_CLOUDY": "WeatherPartlyCloudy"
case "CLOUDY": "WeatherCloudy"
case "RAIN": "WeatherRain"
case "SNOW": nil
default: "WeatherSunny"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import SwiftUI

enum HGEmergencyPopupLayout {
static let popupHeight: CGFloat = 560
static let contentTopPadding: CGFloat = 22
static let contactCardTopPadding: CGFloat = 20
static let actionHorizontalPadding: CGFloat = 18
}

struct HGEmergencyPulse: View {
@State private var isExpanded = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ struct EmergencyAlertView: View {
}

var body: some View {
HGStatusPopup(title: "긴급 호출", height: 560) {
HGStatusPopup(title: "긴급 호출", height: HGEmergencyPopupLayout.popupHeight) {
callPrompt
.padding(.top, 22)
.padding(.top, HGEmergencyPopupLayout.contentTopPadding)

contactCard
.padding(.top, 20)
.padding(.top, HGEmergencyPopupLayout.contactCardTopPadding)
} actions: {
HGSecondaryButton(title: isCalling ? "호출 중..." : "호출하기", action: onCall)
.disabled(isCalling)
.padding(.horizontal, 18)
.padding(.horizontal, HGEmergencyPopupLayout.actionHorizontalPadding)
}
.alert(error?.title ?? "본사 전화 오류", isPresented: errorAlert) {
Button("확인", role: .cancel) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ struct EmergencyCallView: View {
}

var body: some View {
HGStatusPopup(title: "긴급 호출", height: 620) {
HGStatusPopup(title: "긴급 호출", height: HGEmergencyPopupLayout.popupHeight) {
callStatus
.padding(.top, 32)
.padding(.top, HGEmergencyPopupLayout.contentTopPadding)

contactCard
.padding(.top, 20)
.padding(.top, HGEmergencyPopupLayout.contactCardTopPadding)
} actions: {
HGSecondaryButton(
title: isCancelling ? "취소 중..." : canCancel ? "호출 취소" : "접수 완료",
action: onCancel
)
.disabled(isCancelling || !canCancel)
.padding(.horizontal, 18)
.padding(.horizontal, HGEmergencyPopupLayout.actionHorizontalPadding)
}
.alert(error?.title ?? "긴급 호출 오류", isPresented: errorAlert) {
Button("확인", role: .cancel) {}
Expand Down
Loading