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
5255d67c
Commit
5255d67c
authored
Mar 30, 2021
by
Dmitriy Stepanets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring
parent
2cde5631
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
60 additions
and
60 deletions
+60
-60
1Weather.xcodeproj/project.pbxproj
+0
-0
1Weather.xcworkspace/xcuserdata/dstepanets.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
1Weather/UI/SharedCells/MoonPhaseCell/MoonPhaseCell.swift
+9
-9
1Weather/UI/SharedCells/PrecipCell/PrecipButton.swift
+0
-0
1Weather/UI/SharedCells/PrecipCell/PrecipitationCell.swift
+0
-0
1Weather/UI/SharedCells/PrecipCell/PrecipitationView.swift
+0
-0
1Weather/UI/SharedCells/SunPhaseCell/SunPhaseCell.swift
+9
-9
1Weather/UI/SharedCells/SunPhaseCell/SunUvLineView.swift
+0
-0
1Weather/UI/SharedCells/SunPhaseCell/SunUvView.swift
+0
-0
1Weather/UI/View controllers/Forecast/Cells/ForecastCellFactory.swift
+6
-6
1Weather/UI/View controllers/Today/Cells/TodayAirQualityCell/TodayAirQualityCell.swift
+3
-3
1Weather/UI/View controllers/Today/Cells/TodayCellFactory.swift
+15
-15
1Weather/UI/View controllers/Today/Cells/TodayConditions/TodayConditionButton.swift
+3
-3
1Weather/UI/View controllers/Today/Cells/TodayConditions/TodayConditionsCell.swift
+6
-6
1Weather/UI/View controllers/Today/Cells/TodayDayTimesCell/DayTimeView.swift
+0
-0
1Weather/UI/View controllers/Today/Cells/TodayDayTimesCell/TodayDayTimesCell.swift
+3
-3
1Weather/UI/View controllers/Today/Cells/TodayForecastCell.swift
+3
-3
1Weather/UI/View controllers/Today/Cells/TodayForecastTimePeriodCell.swift
+3
-3
No files found.
1Weather.xcodeproj/project.pbxproj
View file @
5255d67c
This diff is collapsed.
Click to expand it.
1Weather.xcworkspace/xcuserdata/dstepanets.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5255d67c
No preview for this file type
1Weather/UI/
View controllers/Today/Cells/CityMoonCell/CityMoon
Cell.swift
→
1Weather/UI/
SharedCells/MoonPhaseCell/MoonPhase
Cell.swift
View file @
5255d67c
//
//
CityMoon
Cell.swift
//
MoonPhase
Cell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 26.02.2021.
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
CityMoon
Cell
:
UITableViewCell
{
class
MoonPhase
Cell
:
UITableViewCell
{
//Private
private
let
kCircleInset
:
CGFloat
=
55
private
let
headingLabel
=
UILabel
()
...
...
@@ -131,8 +131,8 @@ class CityMoonCell: UITableViewCell {
//Public
public
func
configure
(
with
location
:
Location
)
{
CityMoon
Cell
.
dateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
CityMoon
Cell
.
nowDateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
MoonPhase
Cell
.
dateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
MoonPhase
Cell
.
nowDateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
moonTypeLabel
.
text
=
location
.
today
?
.
moonPhase
?
.
localized
guard
...
...
@@ -142,11 +142,11 @@ class CityMoonCell: UITableViewCell {
return
}
moonriseTimeLabel
.
text
=
CityMoon
Cell
.
dateFormatter
.
string
(
from
:
moonrise
)
moonsetTimeLabel
.
text
=
CityMoon
Cell
.
dateFormatter
.
string
(
from
:
moonset
)
moonriseTimeLabel
.
text
=
MoonPhase
Cell
.
dateFormatter
.
string
(
from
:
moonrise
)
moonsetTimeLabel
.
text
=
MoonPhase
Cell
.
dateFormatter
.
string
(
from
:
moonset
)
let
moonTimePeriod
=
moonset
.
timeIntervalSince1970
-
moonrise
.
timeIntervalSince1970
let
nowString
=
CityMoon
Cell
.
nowDateFormatter
.
string
(
from
:
Date
())
let
nowDate
=
CityMoon
Cell
.
nowDateFormatter
.
date
(
from
:
nowString
)
??
Date
()
let
nowString
=
MoonPhase
Cell
.
nowDateFormatter
.
string
(
from
:
Date
())
let
nowDate
=
MoonPhase
Cell
.
nowDateFormatter
.
date
(
from
:
nowString
)
??
Date
()
self
.
moonProgress
=
CGFloat
((
nowDate
.
timeIntervalSince1970
-
moonrise
.
timeIntervalSince1970
)
/
moonTimePeriod
)
}
...
...
@@ -169,7 +169,7 @@ class CityMoonCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
CityMoon
Cell
{
private
extension
MoonPhase
Cell
{
func
prepareCell
()
{
selectionStyle
=
.
none
contentView
.
backgroundColor
=
ThemeManager
.
currentTheme
.
baseBackgroundColor
...
...
1Weather/UI/
View controllers/Today/Cells/City
PrecipCell/PrecipButton.swift
→
1Weather/UI/
SharedCells/
PrecipCell/PrecipButton.swift
View file @
5255d67c
File moved
1Weather/UI/
View controllers/Today/Cells/City
PrecipCell/PrecipitationCell.swift
→
1Weather/UI/
SharedCells/
PrecipCell/PrecipitationCell.swift
View file @
5255d67c
File moved
1Weather/UI/
View controllers/Today/Cells/City
PrecipCell/PrecipitationView.swift
→
1Weather/UI/
SharedCells/
PrecipCell/PrecipitationView.swift
View file @
5255d67c
File moved
1Weather/UI/
View controllers/Today/Cells/CitySunCell/CitySun
Cell.swift
→
1Weather/UI/
SharedCells/SunPhaseCell/SunPhase
Cell.swift
View file @
5255d67c
//
//
CitySun
Cell.swift
//
SunPhase
Cell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 18.02.2021.
...
...
@@ -26,7 +26,7 @@ private struct CircleSegment {
}
}
class
CitySun
Cell
:
UITableViewCell
{
class
SunPhase
Cell
:
UITableViewCell
{
//Private
//Heading
private
let
headingLabel
=
UILabel
()
...
...
@@ -102,13 +102,13 @@ class CitySunCell: UITableViewCell {
return
}
CitySun
Cell
.
dateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
CitySun
Cell
.
nowDateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
sunriseTimeLabel
.
text
=
CitySun
Cell
.
dateFormatter
.
string
(
from
:
sunrise
)
sunsetTimeLabel
.
text
=
CitySun
Cell
.
dateFormatter
.
string
(
from
:
sunset
)
SunPhase
Cell
.
dateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
SunPhase
Cell
.
nowDateFormatter
.
timeZone
=
location
.
today
?
.
timeZone
sunriseTimeLabel
.
text
=
SunPhase
Cell
.
dateFormatter
.
string
(
from
:
sunrise
)
sunsetTimeLabel
.
text
=
SunPhase
Cell
.
dateFormatter
.
string
(
from
:
sunset
)
let
sunTimePeriod
=
sunset
.
timeIntervalSince1970
-
sunrise
.
timeIntervalSince1970
let
nowString
=
CitySun
Cell
.
nowDateFormatter
.
string
(
from
:
Date
())
let
nowDate
=
CitySun
Cell
.
nowDateFormatter
.
date
(
from
:
nowString
)
??
Date
()
let
nowString
=
SunPhase
Cell
.
nowDateFormatter
.
string
(
from
:
Date
())
let
nowDate
=
SunPhase
Cell
.
nowDateFormatter
.
date
(
from
:
nowString
)
??
Date
()
//For pretty dash line view setting up min and max values
let
progress
=
CGFloat
((
nowDate
.
timeIntervalSince1970
-
sunset
.
timeIntervalSince1970
)
/
sunTimePeriod
)
...
...
@@ -211,7 +211,7 @@ class CitySunCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
CitySun
Cell
{
private
extension
SunPhase
Cell
{
func
prepareCell
()
{
selectionStyle
=
.
none
}
...
...
1Weather/UI/
View controllers/Today/Cells/CitySun
Cell/SunUvLineView.swift
→
1Weather/UI/
SharedCells/SunPhase
Cell/SunUvLineView.swift
View file @
5255d67c
File moved
1Weather/UI/
View controllers/Today/Cells/CitySun
Cell/SunUvView.swift
→
1Weather/UI/
SharedCells/SunPhase
Cell/SunUvView.swift
View file @
5255d67c
File moved
1Weather/UI/View controllers/Forecast/Cells/ForecastCellFactory.swift
View file @
5255d67c
...
...
@@ -54,8 +54,8 @@ class ForecastCellFactory: CellFactoryProtocol {
registerCell
(
type
:
ForecastInfoCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
PrecipitationCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
ForecastWindSpeedCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
CitySun
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
CityMoon
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
SunPhase
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
MoonPhase
Cell
.
self
,
tableView
:
tableView
)
}
public
func
cellFromTableView
(
tableView
:
UITableView
,
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
@@ -69,9 +69,9 @@ class ForecastCellFactory: CellFactoryProtocol {
public
func
willDisplay
(
cell
:
UITableViewCell
)
{
switch
cell
{
case
let
sunCell
as
CitySun
Cell
:
case
let
sunCell
as
SunPhase
Cell
:
sunCell
.
updateSunPosition
()
case
let
moonCell
as
CityMoon
Cell
:
case
let
moonCell
as
MoonPhase
Cell
:
moonCell
.
updateMoonPosition
()
default
:
break
...
...
@@ -103,13 +103,13 @@ class ForecastCellFactory: CellFactoryProtocol {
return
cell
case
.
sun
:
let
cell
=
dequeueReusableCell
(
type
:
CitySun
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
SunPhase
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
if
let
loc
=
forecastViewModel
.
location
{
cell
.
configure
(
with
:
loc
)
}
return
cell
case
.
moon
:
let
cell
=
dequeueReusableCell
(
type
:
CityMoon
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
MoonPhase
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
if
let
loc
=
forecastViewModel
.
location
{
cell
.
configure
(
with
:
loc
)
}
...
...
1Weather/UI/View controllers/Today/Cells/
CityAirQualityCell/Cit
yAirQualityCell.swift
→
1Weather/UI/View controllers/Today/Cells/
TodayAirQualityCell/Toda
yAirQualityCell.swift
View file @
5255d67c
//
//
Cit
yAirQualityCell.swift
//
Toda
yAirQualityCell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 25.02.2021.
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
Cit
yAirQualityCell
:
UITableViewCell
{
class
Toda
yAirQualityCell
:
UITableViewCell
{
//Private
private
let
headingLabel
=
UILabel
()
private
let
valueCircle
=
CAShapeLayer
()
...
...
@@ -74,7 +74,7 @@ class CityAirQualityCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
Cit
yAirQualityCell
{
private
extension
Toda
yAirQualityCell
{
func
prepareCell
()
{
selectionStyle
=
.
none
contentView
.
backgroundColor
=
ThemeManager
.
currentTheme
.
baseBackgroundColor
...
...
1Weather/UI/View controllers/Today/Cells/TodayCellFactory.swift
View file @
5255d67c
...
...
@@ -29,15 +29,15 @@ class TodayCellFactory: CellFactoryProtocol {
}
public
func
registerCells
(
on
tableView
:
UITableView
)
{
registerCell
(
type
:
Cit
yForecastCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Toda
yForecastCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
TodayAdCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Cit
yConditionsCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Cit
yForecastTimePeriodCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Toda
yConditionsCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Toda
yForecastTimePeriodCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
PrecipitationCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Cit
yDayTimesCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Cit
yAirQualityCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
CitySun
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
CityMoon
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Toda
yDayTimesCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
Toda
yAirQualityCell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
SunPhase
Cell
.
self
,
tableView
:
tableView
)
registerCell
(
type
:
MoonPhase
Cell
.
self
,
tableView
:
tableView
)
}
public
func
cellFromTableView
(
tableView
:
UITableView
,
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
@@ -51,18 +51,18 @@ class TodayCellFactory: CellFactoryProtocol {
switch
cellType
{
case
.
forecast
:
let
cell
=
dequeueReusableCell
(
type
:
Cit
yForecastCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
Toda
yForecastCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
case
.
ad
:
let
cell
=
dequeueReusableCell
(
type
:
TodayAdCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
return
cell
case
.
conditions
:
let
cell
=
dequeueReusableCell
(
type
:
Cit
yConditionsCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
Toda
yConditionsCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
case
.
forecastPeriod
:
let
cell
=
dequeueReusableCell
(
type
:
Cit
yForecastTimePeriodCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
Toda
yForecastTimePeriodCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
case
.
precipitation
:
...
...
@@ -70,15 +70,15 @@ class TodayCellFactory: CellFactoryProtocol {
cell
.
configure
(
with
:
loc
.
daily
)
return
cell
case
.
dayTime
:
let
cell
=
dequeueReusableCell
(
type
:
Cit
yDayTimesCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
Toda
yDayTimesCell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
case
.
sun
:
let
cell
=
dequeueReusableCell
(
type
:
CitySun
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
SunPhase
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
case
.
moon
:
let
cell
=
dequeueReusableCell
(
type
:
CityMoon
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
let
cell
=
dequeueReusableCell
(
type
:
MoonPhase
Cell
.
self
,
tableView
:
tableView
,
indexPath
:
indexPath
)
cell
.
configure
(
with
:
loc
)
return
cell
}
...
...
@@ -86,9 +86,9 @@ class TodayCellFactory: CellFactoryProtocol {
public
func
willDisplay
(
cell
:
UITableViewCell
)
{
switch
cell
{
case
let
sunCell
as
CitySun
Cell
:
case
let
sunCell
as
SunPhase
Cell
:
sunCell
.
updateSunPosition
()
case
let
moonCell
as
CityMoon
Cell
:
case
let
moonCell
as
MoonPhase
Cell
:
moonCell
.
updateMoonPosition
()
default
:
break
...
...
1Weather/UI/View controllers/Today/Cells/
CityConditions/Cit
yConditionButton.swift
→
1Weather/UI/View controllers/Today/Cells/
TodayConditions/Toda
yConditionButton.swift
View file @
5255d67c
//
//
Cit
yConditionButton.swift
//
Toda
yConditionButton.swift
// 1Weather
//
// Created by Dmitry Stepanets on 12.02.2021.
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
Cit
yConditionButton
:
UIControl
{
class
Toda
yConditionButton
:
UIControl
{
//Private
private
let
conditionType
:
WeatherConditionType
private
let
imageView
=
UIImageView
()
...
...
@@ -51,7 +51,7 @@ class CityConditionButton: UIControl {
}
//MARK:- Prepare
private
extension
Cit
yConditionButton
{
private
extension
Toda
yConditionButton
{
func
prepareButton
()
{
self
.
backgroundColor
=
ThemeManager
.
currentTheme
.
containerBackgroundColor
self
.
clipsToBounds
=
false
...
...
1Weather/UI/View controllers/Today/Cells/
CityConditions/Cit
yConditionsCell.swift
→
1Weather/UI/View controllers/Today/Cells/
TodayConditions/Toda
yConditionsCell.swift
View file @
5255d67c
//
//
Cit
yConditionsCell.swift
//
Toda
yConditionsCell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 12.02.2021.
...
...
@@ -8,7 +8,7 @@
import
UIKit
import
SnapKit
class
Cit
yConditionsCell
:
UITableViewCell
{
class
Toda
yConditionsCell
:
UITableViewCell
{
//Private
private
let
kIndicatorWidth
:
CGFloat
=
27
private
let
scrollView
=
UIScrollView
()
...
...
@@ -29,7 +29,7 @@ class CityConditionsCell: UITableViewCell {
public
func
configure
(
with
location
:
Location
)
{
stackView
.
arrangedSubviews
.
forEach
{
if
let
conditionButton
=
$0
as?
Cit
yConditionButton
{
if
let
conditionButton
=
$0
as?
Toda
yConditionButton
{
conditionButton
.
configure
(
with
:
location
)
}
}
...
...
@@ -41,7 +41,7 @@ class CityConditionsCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
Cit
yConditionsCell
{
private
extension
Toda
yConditionsCell
{
func
prepareCellStyle
()
{
selectionStyle
=
.
none
contentView
.
backgroundColor
=
ThemeManager
.
currentTheme
.
baseBackgroundColor
...
...
@@ -76,7 +76,7 @@ private extension CityConditionsCell {
}
for
conditionType
in
WeatherConditionType
.
allCases
{
let
button
=
Cit
yConditionButton
(
type
:
conditionType
)
let
button
=
Toda
yConditionButton
(
type
:
conditionType
)
stackView
.
addArrangedSubview
(
button
)
}
}
...
...
@@ -107,7 +107,7 @@ private extension CityConditionsCell {
}
}
extension
Cit
yConditionsCell
:
UIScrollViewDelegate
{
extension
Toda
yConditionsCell
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
let
totalContentWidth
=
scrollView
.
contentSize
.
width
+
scrollView
.
contentInset
.
left
+
scrollView
.
contentInset
.
right
let
scrollProgress
=
(
scrollView
.
contentOffset
.
x
+
scrollView
.
contentInset
.
left
)
...
...
1Weather/UI/View controllers/Today/Cells/
Cit
yDayTimesCell/DayTimeView.swift
→
1Weather/UI/View controllers/Today/Cells/
Toda
yDayTimesCell/DayTimeView.swift
View file @
5255d67c
File moved
1Weather/UI/View controllers/Today/Cells/
CityDayTimesCell/Cit
yDayTimesCell.swift
→
1Weather/UI/View controllers/Today/Cells/
TodayDayTimesCell/Toda
yDayTimesCell.swift
View file @
5255d67c
//
//
Cit
yDayTimesCell.swift
//
Toda
yDayTimesCell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 25.02.2021.
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
Cit
yDayTimesCell
:
UITableViewCell
{
class
Toda
yDayTimesCell
:
UITableViewCell
{
//Private
private
let
headingLabel
=
UILabel
()
private
let
headingButton
=
ArrowButton
()
...
...
@@ -75,7 +75,7 @@ class CityDayTimesCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
Cit
yDayTimesCell
{
private
extension
Toda
yDayTimesCell
{
func
prepareCell
()
{
selectionStyle
=
.
none
contentView
.
backgroundColor
=
ThemeManager
.
currentTheme
.
baseBackgroundColor
...
...
1Weather/UI/View controllers/Today/Cells/
Cit
yForecastCell.swift
→
1Weather/UI/View controllers/Today/Cells/
Toda
yForecastCell.swift
View file @
5255d67c
//
//
Cit
yForecastCell.swift
//
Toda
yForecastCell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 12.02.2021.
...
...
@@ -8,7 +8,7 @@
import
UIKit
import
SnapKit
class
Cit
yForecastCell
:
UITableViewCell
{
class
Toda
yForecastCell
:
UITableViewCell
{
//Private
private
let
container
=
UIView
()
private
let
cityImageView
=
UIImageView
()
...
...
@@ -75,7 +75,7 @@ class CityForecastCell: UITableViewCell {
}
//MARK:- Prepare
private
extension
Cit
yForecastCell
{
private
extension
Toda
yForecastCell
{
func
prepareCell
()
{
selectionStyle
=
.
none
}
...
...
1Weather/UI/View controllers/Today/Cells/
Cit
yForecastTimePeriodCell.swift
→
1Weather/UI/View controllers/Today/Cells/
Toda
yForecastTimePeriodCell.swift
View file @
5255d67c
//
//
Cit
yForecastTimePeriodCell.swift
//
Toda
yForecastTimePeriodCell.swift
// 1Weather
//
// Created by Dmitry Stepanets on 15.02.2021.
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
Cit
yForecastTimePeriodCell
:
UITableViewCell
{
class
Toda
yForecastTimePeriodCell
:
UITableViewCell
{
//Private
private
let
periodSegmentedControl
=
ForecastTimePeriodControl
(
items
:
[
"forecast.timePeriod.daily"
.
localized
(),
"forecast.timePeriod.hourly"
.
localized
()])
...
...
@@ -51,7 +51,7 @@ class CityForecastTimePeriodCell: UITableViewCell {
}
}
private
extension
Cit
yForecastTimePeriodCell
{
private
extension
Toda
yForecastTimePeriodCell
{
func
prepareCell
()
{
selectionStyle
=
.
none
contentView
.
backgroundColor
=
ThemeManager
.
currentTheme
.
baseBackgroundColor
...
...
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