Skip to content

Commit

Permalink
Add hairline width to CGFloat extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelHolec committed Mar 21, 2022
1 parent 814b47e commit beff6b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Orbit/Foundation/Borders/BorderWidth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ public enum BorderWidth {
/// 2 pts border width used for actively selected component.
public static let selection: CGFloat = 2.0
}

public extension CGFloat {
/// 1 pixel
static let hairline: CGFloat = BorderWidth.hairline
}

0 comments on commit beff6b0

Please sign in to comment.