Skip to content

Commit

Permalink
• Device names updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tryWabbit committed Apr 15, 2020
1 parent 5992756 commit 0263673
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion LayoutHelper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'LayoutHelper'
s.version = '0.1.3'
s.version = '0.1.4'
s.summary = 'A beautiful library used create different device based UI'
s.swift_version = '5.0'

Expand Down
12 changes: 6 additions & 6 deletions LayoutHelper/Classes/NSLayoutHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import UIKit
@IBInspectable var iPhone8Plus: CGFloat = 0.0 {
didSet { deviceConstant(.i5_5Inch,value:iPhone8Plus) }
}
@IBInspectable var iPhoneXS: CGFloat = 0.0 {
didSet { deviceConstant(.i5_8Inch,value:iPhoneXS) }
@IBInspectable var iPhone11Pro: CGFloat = 0.0 {
didSet { deviceConstant(.i5_8Inch,value:iPhone11Pro) }
}
@IBInspectable var iPhoneXR: CGFloat = 0.0 {
didSet { deviceConstant(.i6_1Inch,value:iPhoneXR) }
@IBInspectable var iPhone11: CGFloat = 0.0 {
didSet { deviceConstant(.i6_1Inch,value:iPhone11) }
}
@IBInspectable var iPhoneXMax: CGFloat = 0.0 {
didSet { deviceConstant(.i6_5Inch,value:iPhoneXMax) }
@IBInspectable var iPhone11Max: CGFloat = 0.0 {
didSet { deviceConstant(.i6_5Inch,value:iPhone11Max) }
}
@IBInspectable var iPadMini: CGFloat = 0.0 {
didSet { deviceConstant(.i7_9Inch,value:iPadMini) }
Expand Down
12 changes: 6 additions & 6 deletions LayoutHelper/Classes/UIButtonHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import UIKit
@IBInspectable var iPhone8Plus: CGFloat = 0.0 {
didSet { deviceFont(.i5_5Inch,value:iPhone8Plus) }
}
@IBInspectable var iPhoneXS: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhoneXS) }
@IBInspectable var iPhone11Pro: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhone11Pro) }
}
@IBInspectable var iPhoneXR: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhoneXR) }
@IBInspectable var iPhone11: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhone11) }
}
@IBInspectable var iPhoneXMax: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhoneXMax) }
@IBInspectable var iPhone11Max: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhone11Max) }
}
@IBInspectable var iPadMini: CGFloat = 0.0 {
didSet { deviceFont(.i7_9Inch,value:iPadMini) }
Expand Down
14 changes: 7 additions & 7 deletions LayoutHelper/Classes/UILabelHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit

@IBDesignable class UILabelHelper : UILabel {
@IBInspectable var iPhone4s: CGFloat = 0.0 {
@IBInspectable var iPhone4s: CGFloat = 0.0 {
didSet { deviceFont(.i3_5Inch,value:iPhone4s) }
}
@IBInspectable var iPhoneSE: CGFloat = 0.0 {
Expand All @@ -21,14 +21,14 @@ import UIKit
@IBInspectable var iPhone8Plus: CGFloat = 0.0 {
didSet { deviceFont(.i5_5Inch,value:iPhone8Plus) }
}
@IBInspectable var iPhoneXS: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhoneXS) }
@IBInspectable var iPhone11Pro: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhone11Pro) }
}
@IBInspectable var iPhoneXR: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhoneXR) }
@IBInspectable var iPhone11: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhone11) }
}
@IBInspectable var iPhoneXMax: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhoneXMax) }
@IBInspectable var iPhone11Max: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhone11Max) }
}
@IBInspectable var iPadMini: CGFloat = 0.0 {
didSet { deviceFont(.i7_9Inch,value:iPadMini) }
Expand Down
12 changes: 6 additions & 6 deletions LayoutHelper/Classes/UITextFieldHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ import UIKit
@IBInspectable var iPhone8Plus: CGFloat = 0.0 {
didSet { deviceFont(.i5_5Inch,value:iPhone8Plus) }
}
@IBInspectable var iPhoneXS: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhoneXS) }
@IBInspectable var iPhone11Pro: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhone11Pro) }
}
@IBInspectable var iPhoneXR: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhoneXR) }
@IBInspectable var iPhone11: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhone11) }
}
@IBInspectable var iPhoneXMax: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhoneXMax) }
@IBInspectable var iPhone11Max: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhone11Max) }
}
@IBInspectable var iPadMini: CGFloat = 0.0 {
didSet { deviceFont(.i7_9Inch,value:iPadMini) }
Expand Down
12 changes: 6 additions & 6 deletions LayoutHelper/Classes/UITextViewHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import UIKit
@IBInspectable var iPhone8Plus: CGFloat = 0.0 {
didSet { deviceFont(.i5_5Inch,value:iPhone8Plus) }
}
@IBInspectable var iPhoneXS: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhoneXS) }
@IBInspectable var iPhone11Pro: CGFloat = 0.0 {
didSet { deviceFont(.i5_8Inch,value:iPhone11Pro) }
}
@IBInspectable var iPhoneXR: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhoneXR) }
@IBInspectable var iPhone11: CGFloat = 0.0 {
didSet { deviceFont(.i6_1Inch,value:iPhone11) }
}
@IBInspectable var iPhoneXMax: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhoneXMax) }
@IBInspectable var iPhone11Max: CGFloat = 0.0 {
didSet { deviceFont(.i6_5Inch,value:iPhone11Max) }
}
@IBInspectable var iPadMini: CGFloat = 0.0 {
didSet { deviceFont(.i7_9Inch,value:iPadMini) }
Expand Down

0 comments on commit 0263673

Please sign in to comment.