Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
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
Material
Commits
1f5c1c00
Commit
1f5c1c00
authored
Mar 26, 2016
by
GilthonweApps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with bundle not found in MaterialIcon
parent
0303208c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
Sources/MaterialIcon.swift
+12
-10
No files found.
Sources/MaterialIcon.swift
View file @
1f5c1c00
...
...
@@ -31,14 +31,16 @@
import
UIKit
public
struct
MaterialIcon
{
public
static
let
add
:
UIImage
?
=
UIImage
(
named
:
"ic_add_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
arrowBack
:
UIImage
?
=
UIImage
(
named
:
"ic_arrow_back_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
arrowDownward
:
UIImage
?
=
UIImage
(
named
:
"ic_arrow_downward_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
clear
:
UIImage
?
=
UIImage
(
named
:
"ic_close_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
close
:
UIImage
?
=
UIImage
(
named
:
"ic_close_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
menu
:
UIImage
?
=
UIImage
(
named
:
"ic_menu_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
moreHorizontal
:
UIImage
?
=
UIImage
(
named
:
"ic_more_horiz_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
moreVertical
:
UIImage
?
=
UIImage
(
named
:
"ic_more_vert_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
search
:
UIImage
?
=
UIImage
(
named
:
"ic_search_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
share
:
UIImage
?
=
UIImage
(
named
:
"ic_share_white"
,
inBundle
:
NSBundle
(
identifier
:
"io.cosmicmind.Material"
),
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
private
static
let
bundle
=
NSBundle
(
URL
:
NSBundle
(
forClass
:
MaterialView
.
self
)
.
resourceURL
!.
URLByAppendingPathComponent
(
"io.cosmicmind.Material.bundle"
))
!
public
static
let
add
:
UIImage
?
=
UIImage
(
named
:
"ic_add_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
arrowBack
:
UIImage
?
=
UIImage
(
named
:
"ic_arrow_back_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
arrowDownward
:
UIImage
?
=
UIImage
(
named
:
"ic_arrow_downward_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
clear
:
UIImage
?
=
UIImage
(
named
:
"ic_close_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
close
:
UIImage
?
=
UIImage
(
named
:
"ic_close_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
menu
:
UIImage
?
=
UIImage
(
named
:
"ic_menu_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
moreHorizontal
:
UIImage
?
=
UIImage
(
named
:
"ic_more_horiz_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
moreVertical
:
UIImage
?
=
UIImage
(
named
:
"ic_more_vert_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
search
:
UIImage
?
=
UIImage
(
named
:
"ic_search_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
public
static
let
share
:
UIImage
?
=
UIImage
(
named
:
"ic_share_white"
,
inBundle
:
bundle
,
compatibleWithTraitCollection
:
nil
)?
.
imageWithRenderingMode
(
.
AlwaysTemplate
)
}
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