Skip to content

Commit 5598c01

Browse files
committed
0.1.4
1 parent 712be54 commit 5598c01

5 files changed

Lines changed: 40 additions & 14 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Placeholder.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "Placeholder@2x.png",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "Placeholder@3x.png",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
2.98 KB
Loading
7.78 KB
Loading
12.6 KB
Loading

UILabel_Typography_Extensions/Menu/Planet/Styles.swift

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,25 @@ import UIKit
1111

1212
struct UI {
1313

14-
static let padding = UIEdgeInsets(top: 25, left: 25, bottom: 25, right: 25)
14+
static let padding = UIEdgeInsets(top: 15, left: 25, bottom: 25, right: 25)
1515

1616
struct StackView {
1717

1818
static let spacing = CGFloat(5)
1919
static let spacer = CGFloat(20)
2020
}
21-
}
22-
23-
24-
extension UIColor {
2521

26-
static let background = UIColor(named: "Background") ?? UIColor.clear
27-
static let label = UIColor(named: "Label") ?? UIColor.clear
28-
static let mars = UIColor(named: "Mars") ?? UIColor.clear
22+
struct Color {
23+
24+
static let background = UIColor(named: "Background") ?? UIColor.clear
25+
static let label = UIColor(named: "Label") ?? UIColor.clear
26+
static let mars = UIColor(named: "Mars") ?? UIColor.clear
27+
}
28+
29+
struct Asset {
30+
31+
static let mars = UIImage(named: "Mars")
32+
}
2933
}
3034

3135

@@ -34,18 +38,17 @@ extension UILabel {
3438
var withHeroStyle: Self {
3539
self
3640
.with {
37-
$0.textColor = .label
41+
$0.textColor = UI.Color.label
3842
$0.font = UIFont(name: "HelveticaNeue-CondensedBlack", size: 100)
3943
$0.lineHeight = 80
4044
$0.letterSpacing = 100 * -0.02
41-
$0.showGrid = true
4245
}
4346
}
4447

4548
var withSubtitleStyle: Self {
4649
self
4750
.with {
48-
$0.textColor = .label
51+
$0.textColor = UI.Color.label
4952
$0.font = UIFont(name: "HelveticaNeue", size: 20)
5053
$0.adjustsFontSizeToFitWidth = false
5154
$0.lineHeight = 30
@@ -56,7 +59,7 @@ extension UILabel {
5659
var withIntroStyle: Self {
5760
self
5861
.with {
59-
$0.textColor = .label
62+
$0.textColor = UI.Color.label
6063
$0.font = UIFont(name: "HelveticaNeue-Medium", size: 12)
6164
$0.numberOfLines = 0
6265
$0.lineHeight = 20
@@ -67,7 +70,7 @@ extension UILabel {
6770
var withTitleStyle: Self {
6871
self
6972
.with {
70-
$0.textColor = .label
73+
$0.textColor = UI.Color.label
7174
$0.font = UIFont(name: "HelveticaNeue-Medium", size: 21)
7275
$0.numberOfLines = 0
7376
$0.lineHeight = 30
@@ -79,7 +82,7 @@ extension UILabel {
7982
var withParagraphStyle: Self {
8083
self
8184
.with {
82-
$0.textColor = UIColor.label.withAlphaComponent(0.5)
85+
$0.textColor = UI.Color.label.withAlphaComponent(0.5)
8386
$0.font = UIFont(name: "HelveticaNeue-Medium", size: 13)
8487
$0.numberOfLines = 0
8588
$0.lineHeight = 20

0 commit comments

Comments
 (0)