Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #78 from inloop/bugfix/text_decoration_solid_pattern
Browse files Browse the repository at this point in the history
FIX: Add missing text decoration pattern
  • Loading branch information
jakubpetrik authored Jul 25, 2018
2 parents 4478777 + a2e8649 commit a4b3cb2
Show file tree
Hide file tree
Showing 10 changed files with 260 additions and 36 deletions.
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Styles (0.24.15)
- Styles/Tests (0.24.15)
- Styles (0.24.16)
- Styles/Tests (0.24.16)

DEPENDENCIES:
- Styles (from `../`)
Expand All @@ -11,8 +11,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Styles: 418a756e202ad77bcf2d9556d744037ab31d84f2
Styles: 3fc440dfcecb82a37a6c6d887915b04a605d6ff3

PODFILE CHECKSUM: f5341d1bc44d76e5ca1e0d50940004053970d8dc

COCOAPODS: 1.5.0
COCOAPODS: 1.5.3
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/Styles.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

264 changes: 242 additions & 22 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Target Support Files/Styles/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extension TextDecoration {
extension TextDecoration.Pattern {
var codeDescription: String {
switch self {
case .solid: return ".solid"
case .dot: return ".dot"
case .dash: return ".dash"
case .dashDot: return ".dashDot"
Expand Down
2 changes: 1 addition & 1 deletion Styles.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Styles'
s.version = '0.24.15'
s.version = '0.24.16'
s.summary = 'UI Elements rapid styling'
s.description = <<-DESC
UIElements styling made easy, declarative and rapid.
Expand Down
3 changes: 3 additions & 0 deletions Styles/Classes/TextDecoration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public struct TextDecoration {
* .dashDotDot
*/
public enum Pattern: Int {
/// Solid pattern
case solid
/// Dotted pattern
case dot
/// Dashed pattern
Expand All @@ -57,6 +59,7 @@ public struct TextDecoration {
*/
public var rawValue: Int {
switch self {
case .solid: return NSUnderlineStyle.patternSolid.rawValue
case .dot: return NSUnderlineStyle.patternDot.rawValue
case .dash: return NSUnderlineStyle.patternDash.rawValue
case .dashDot: return NSUnderlineStyle.patternDashDot.rawValue
Expand Down

0 comments on commit a4b3cb2

Please sign in to comment.