-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Juanpe Catalán
committed
Aug 2, 2018
1 parent
804390e
commit 26da7e3
Showing
9 changed files
with
53 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright © 2017 SkeletonView. All rights reserved. | ||
|
||
import UIKit | ||
|
||
public protocol Appearance { | ||
var tintColor: UIColor { get set } | ||
var gradient: SkeletonGradient { get set } | ||
var multilineHeight: CGFloat { get set } | ||
var multilineSpacing: CGFloat { get set } | ||
var multilineLastLineFillPercent: Int { get set } | ||
var multilineCornerRadius: Int { get set } | ||
} | ||
|
||
public enum SkeletonAppearance { | ||
public static var `default`: Appearance = SkeletonViewAppearance.shared | ||
} | ||
|
||
class SkeletonViewAppearance: Appearance { | ||
|
||
static var shared = SkeletonViewAppearance() | ||
|
||
var tintColor: UIColor = .clouds | ||
|
||
var gradient: SkeletonGradient = SkeletonGradient(baseColor: .clouds) | ||
|
||
var multilineHeight: CGFloat = 15 | ||
|
||
var multilineSpacing: CGFloat = 10 | ||
|
||
var multilineLastLineFillPercent: Int = 70 | ||
|
||
var multilineCornerRadius: Int = 0 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters