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
0d839b0e
Commit
0d839b0e
authored
Aug 10, 2021
by
Dmitriy Stepanets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added radar map placeholders
parent
17ffc184
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
3 deletions
+47
-3
1Weather-Icons.sketch
+0
-0
1Weather.xcodeproj/xcuserdata/dstepanets.xcuserdatad/xcschemes/xcschememanagement.plist
+2
-2
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-dark.imageset/Contents.json
+15
-0
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-dark.imageset/map-placeholder-dark.pdf
+0
-0
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-white.imageset/Contents.json
+15
-0
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-white.imageset/map-placeholder-white.pdf
+0
-0
OneWeatherUI/OneWeatherUI/Widgets/Radar/LargeRadarWidgetView.swift
+15
-1
No files found.
1Weather-Icons.sketch
View file @
0d839b0e
No preview for this file type
1Weather.xcodeproj/xcuserdata/dstepanets.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
0d839b0e
...
@@ -12,12 +12,12 @@
...
@@ -12,12 +12,12 @@
<
k
e
y
>
OneWeatherNotificationServiceExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
OneWeatherNotificationServiceExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
OneWeatherWidgetExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
OneWeatherWidgetExtension.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
4
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
PG
(
Playground
)
1.xcscheme
<
/k
e
y
>
<
k
e
y
>
PG
(
Playground
)
1.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
...
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-dark.imageset/Contents.json
0 → 100644
View file @
0d839b0e
{
"images"
:
[
{
"filename"
:
"map-placeholder-dark.pdf"
,
"idiom"
:
"universal"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
},
"properties"
:
{
"preserves-vector-representation"
:
true
}
}
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-dark.imageset/map-placeholder-dark.pdf
0 → 100644
View file @
0d839b0e
File added
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-white.imageset/Contents.json
0 → 100644
View file @
0d839b0e
{
"images"
:
[
{
"filename"
:
"map-placeholder-white.pdf"
,
"idiom"
:
"universal"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
},
"properties"
:
{
"preserves-vector-representation"
:
true
}
}
OneWeatherUI/OneWeatherUI/Assets.xcassets/map-placeholder-white.imageset/map-placeholder-white.pdf
0 → 100644
View file @
0d839b0e
File added
OneWeatherUI/OneWeatherUI/Widgets/Radar/LargeRadarWidgetView.swift
View file @
0d839b0e
...
@@ -11,6 +11,20 @@ import MapKit
...
@@ -11,6 +11,20 @@ import MapKit
@available(iOS 14, *)
@available(iOS 14, *)
public
struct
LargeRadarWidgetView
:
View
{
public
struct
LargeRadarWidgetView
:
View
{
//Private
//Private
private
var
mapPlaceholderImage
:
UIImage
?
{
switch
colorScheme
{
case
.
dark
:
return
UIImage
(
named
:
"map-placeholder-dark"
,
in
:
OneWeatherUI
.
frameworkBundle
,
compatibleWith
:
nil
)
case
.
light
:
return
UIImage
(
named
:
"map-placeholder-white"
,
in
:
OneWeatherUI
.
frameworkBundle
,
compatibleWith
:
nil
)
default
:
return
UIImage
()
}
}
@Environment(\.colorScheme)
private
var
colorScheme
@Environment(\.colorScheme)
private
var
colorScheme
//Public
//Public
...
@@ -32,7 +46,7 @@ public struct LargeRadarWidgetView: View {
...
@@ -32,7 +46,7 @@ public struct LargeRadarWidgetView: View {
}
}
.
padding
([
.
leading
,
.
trailing
],
10
)
.
padding
([
.
leading
,
.
trailing
],
10
)
let
image
=
widgetViewModel
.
radarImage
??
UIImage
()
let
image
=
widgetViewModel
.
radarImage
??
mapPlaceholderImage
!
Image
(
uiImage
:
image
)
Image
(
uiImage
:
image
)
.
resizable
()
.
resizable
()
.
background
(
Color
(
image
.
size
==
.
zero
?
UIColor
.
lightGray
:
UIColor
.
clear
))
.
background
(
Color
(
image
.
size
==
.
zero
?
UIColor
.
lightGray
:
UIColor
.
clear
))
...
...
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