Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
3b591898
Commit
3b591898
authored
Apr 30, 2021
by
Dmitriy Stepanets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS-65 Fixed hourly card updating on location change issue
parent
f7d5fc31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
1Weather.xcodeproj/xcuserdata/dstepanets.xcuserdatad/xcschemes/xcschememanagement.plist
+1
-1
1Weather/UI/Helpers/ForecastTimePeriod/Buttons/ForecastPeriodButton.swift
+1
-0
1Weather/UI/View controllers/Forecast/Cells/ForecastHourlyCell.swift
+1
-3
No files found.
1Weather.xcodeproj/xcuserdata/dstepanets.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
3b591898
...
...
@@ -12,7 +12,7 @@
<
k
e
y
>
OneWeatherNotificationServiceExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
3
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
3
8
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
PG
(
Playground
)
1.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
...
...
1Weather/UI/Helpers/ForecastTimePeriod/Buttons/ForecastPeriodButton.swift
View file @
3b591898
...
...
@@ -127,6 +127,7 @@ class ForecastPeriodButton: UIControl, PeriodButtonProtocol {
self
.
tempLabel
.
text
=
hourlyWeather
.
temp
?
.
settingsConverted
.
shortString
self
.
minTempLabel
.
text
=
nil
self
.
indicatorImageView
.
image
=
nil
self
.
forecastImageView
.
image
=
hourlyWeather
.
type
.
image
(
isDay
:
hourlyWeather
.
isDay
)
if
Calendar
.
isNow
(
fromDate
:
hourlyWeather
.
date
,
timeZone
:
hourlyWeather
.
timeZone
)
{
self
.
timeLabel
.
text
=
"day.now"
.
localized
()
.
uppercased
()
}
...
...
1Weather/UI/View controllers/Forecast/Cells/ForecastHourlyCell.swift
View file @
3b591898
...
...
@@ -43,9 +43,7 @@ class ForecastHourlyCell: UITableViewCell {
//Public
public
func
configure
(
hourly
:[
HourlyWeather
])
{
self
.
forecastTimePeriodView
.
set
(
daily
:
nil
,
hourly
:
hourly
)
if
self
.
forecastTimePeriodView
.
isEmpty
{
self
.
forecastTimePeriodView
.
set
(
forecastType
:
.
hourly
,
buttonType
:
ForecastPeriodButton
.
self
)
}
self
.
forecastTimePeriodView
.
set
(
forecastType
:
.
hourly
,
buttonType
:
ForecastPeriodButton
.
self
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment