Skip to content

Commit

Permalink
Merge pull request #836 from kiwicom/835-add-new-orbit-constants
Browse files Browse the repository at this point in the history
Add new borderRadius constants
  • Loading branch information
PavelHolec authored Sep 2, 2024
2 parents 11e42fd + 5825b81 commit ccc0d63
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Sources/Orbit/Foundation/Borders/BorderRadius.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@ import CoreGraphics
///
/// - Note: [Orbit.kiwi documentation](https://orbit.kiwi/foundation/border-radiuses/)
public enum BorderRadius {
/// 2 pts border radius.
public static let xxSmall: CGFloat = 2
/// 3 pts border radius.
///
/// - Important: Prefer `xxSmall` or `xSmall` variant.
public static let desktop: CGFloat = 3
/// 4 pts border radius.
public static let xSmall: CGFloat = 4
/// 6 pts border radius.
public static let `default`: CGFloat = 6
public static let small: CGFloat = 6
/// 8 pts border radius.
public static let medium: CGFloat = 8
/// 12 pts border radius.
public static let xMedium: CGFloat = 12
/// 16 pts border radius.
public static let large: CGFloat = 16
/// 100 pts border radius.
public static let full: CGFloat = 100

/// The default 6 pts border radius.
public static var `default`: CGFloat {
Self.small
}
}

0 comments on commit ccc0d63

Please sign in to comment.