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
4d5ebef7
Commit
4d5ebef7
authored
Apr 21, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo
parent
a708a09e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
1Weather/Model/ModelObjects/Notifications/Notifications.swift
+1
-1
1Weather/UI/View controllers/Today/Cells/TodayAlertCell.swift
+1
-1
1Weather/UI/View controllers/Today/Cells/TodayCellFactory.swift
+1
-1
No files found.
1Weather/Model/ModelObjects/Notifications/Notifications.swift
View file @
4d5ebef7
...
...
@@ -9,5 +9,5 @@ import Foundation
public
struct
Notifications
{
public
let
updatedAt
:
Date
public
let
nwsAlers
:
[
NWSAlert
]
public
let
nwsAler
t
s
:
[
NWSAlert
]
}
1Weather/UI/View controllers/Today/Cells/TodayAlertCell.swift
View file @
4d5ebef7
...
...
@@ -59,7 +59,7 @@ class TodayAlertCell: UITableViewCell {
public
func
configure
(
location
:
Location
)
{
infoLabel
.
text
=
""
timeAgoLabel
.
text
=
""
if
let
alerts
=
location
.
notifications
?
.
nwsAlers
.
filter
(
{
!
$0
.
expired
})
{
if
let
alerts
=
location
.
notifications
?
.
nwsAler
t
s
.
filter
(
{
!
$0
.
expired
})
{
if
let
firstAlert
=
alerts
.
first
{
var
mostSevereAlert
=
firstAlert
for
alert
in
alerts
{
...
...
1Weather/UI/View controllers/Today/Cells/TodayCellFactory.swift
View file @
4d5ebef7
...
...
@@ -193,7 +193,7 @@ class TodayCellFactory: CellFactoryProtocol {
}
let
location
=
self
.
todayViewModel
.
location
if
location
?
.
notifications
?
.
nwsAlers
.
filter
({
!
$0
.
expired
})
.
count
??
0
==
0
{
if
location
?
.
notifications
?
.
nwsAler
t
s
.
filter
({
!
$0
.
expired
})
.
count
??
0
==
0
{
rowsToHide
.
insert
(
.
alert
)
}
...
...
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