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
e19cd9cb
Commit
e19cd9cb
authored
Nov 24, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue-980: Added @objc to extension properties in Material+UIView.
parent
0223578f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CHANGELOG.md
+1
-0
Sources/iOS/Material+UIView.swift
+9
-3
No files found.
CHANGELOG.md
View file @
e19cd9cb
...
...
@@ -2,6 +2,7 @@
*
[
pr-979
](
https://github.com/CosmicMind/Material/pull/979
)
: Added
`visibilityOff`
icon and updated
`TextField`
to utilize it.
*
[
issue-982
](
https://github.com/CosmicMind/Material/issues/982
)
: Updated Icon let declarations to var declarations to allow custom icon sets.
*
[
issue-980
](
https://github.com/CosmicMind/Material/issues/980
)
: Added
`@objc`
to extension properties in Material+UIView.
## 2.12.16
...
...
Sources/iOS/Material+UIView.swift
View file @
e19cd9cb
...
...
@@ -32,6 +32,7 @@ import UIKit
extension
UIView
{
/// A property that accesses the backing layer's shadow
@objc
open
var
shadowColor
:
UIColor
?
{
get
{
guard
let
v
=
layer
.
shadowColor
else
{
...
...
@@ -46,6 +47,7 @@ extension UIView {
}
/// A property that accesses the layer.borderColor property.
@objc
open
var
borderColor
:
UIColor
?
{
get
{
guard
let
v
=
layer
.
borderColor
else
{
...
...
@@ -59,6 +61,7 @@ extension UIView {
}
/// HeightPreset value.
@objc
open
var
heightPreset
:
HeightPreset
{
get
{
return
layer
.
heightPreset
...
...
@@ -84,6 +87,7 @@ extension UIView {
}
/// A preset value for Depth.
@objc
open
var
depthPreset
:
DepthPreset
{
get
{
return
layer
.
depthPreset
...
...
@@ -105,6 +109,7 @@ extension UIView {
/// Enables automatic shadowPath sizing.
@IBInspectable
@objc
open
var
isShadowPathAutoSizing
:
Bool
{
get
{
return
layer
.
isShadowPathAutoSizing
...
...
@@ -126,6 +131,7 @@ extension UIView {
}
/// A preset property to set the borderWidth.
@objc
open
var
borderWidthPreset
:
BorderWidthPreset
{
get
{
return
layer
.
borderWidthPreset
...
...
@@ -136,14 +142,14 @@ extension UIView {
}
}
extension
UIView
{
internal
extension
UIView
{
/// Manages the layout for the shape of the view instance.
internal
func
layoutShape
()
{
func
layoutShape
()
{
layer
.
layoutShape
()
}
/// Sets the shadow path.
internal
func
layoutShadowPath
()
{
func
layoutShadowPath
()
{
layer
.
layoutShadowPath
()
}
}
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