Skip to content

Commit

Permalink
Bump Warp to 0.0.11 and deprecate spacing (#1357)
Browse files Browse the repository at this point in the history
* Bump Warp to 0.0.11

* Deprecate spacing in favor for Warp.Spacing

* Removed old deprecated spacing
  • Loading branch information
dinsen committed Jul 1, 2024
1 parent 6650d1a commit b0ec7e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/warp-ds/warp-ios.git",
"state" : {
"revision" : "f3b3c78db4d9cac6ad4aa20a33d11f9d80cb1e6e",
"version" : "0.0.9"
"revision" : "a7558552e9242afff6f18f9c9f67f6e8f723be39",
"version" : "0.0.11"
}
}
],
Expand Down
35 changes: 7 additions & 28 deletions FinniversKit/Sources/DNA/Spacing/Spacing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,30 @@ import Foundation

public extension CGFloat {
/// Separation of 2 points.
@available(*, deprecated, message: "Use spacingXXS instead.")
static let verySmallSpacing: CGFloat = 2

/// Separation of 4 points.
@available(*, deprecated, message: "Use spacingXS instead.")
static let smallSpacing: CGFloat = 4

/// Separation of 8 points.
@available(*, deprecated, message: "Use spacingS instead.")
static let mediumSpacing: CGFloat = 8

/// Separation of 16 points.
@available(*, deprecated, message: "Use spacingM instead.")
static let mediumLargeSpacing: CGFloat = 16

/// Separation of 24 points.
@available(*, deprecated, message: "Use spacingL instead.")
static let mediumPlusSpacing: CGFloat = 24

/// Separation of 32 points.
@available(*, deprecated, message: "Use spacingXL instead.")
static let largeSpacing: CGFloat = 32

/// Separation of 64 points.
@available(*, deprecated, message: "Use spacingXXL instead.")
static let veryLargeSpacing: CGFloat = 64

/// Separation of 2 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing25 instead.")
static let spacingXXS: CGFloat = 2

/// Separation of 4 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing50 instead.")
static let spacingXS: CGFloat = 4

/// Separation of 8 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing100 instead.")
static let spacingS: CGFloat = 8

/// Separation of 16 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing200 instead.")
static let spacingM: CGFloat = 16

/// Separation of 24 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing300 instead.")
static let spacingL: CGFloat = 24

/// Separation of 32 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing400 instead.")
static let spacingXL: CGFloat = 32

/// Separation of 64 points.
@available(*, deprecated, message: "Use Warp.Spacing.spacing800 instead.")
static let spacingXXL: CGFloat = 64
}

0 comments on commit b0ec7e9

Please sign in to comment.