Skip to content

Commit

Permalink
Mark deprecated methods as disfavored
Browse files Browse the repository at this point in the history
  • Loading branch information
emorydunn committed Dec 31, 2024
1 parent d219443 commit c689ca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SDPlusLayout/Elements/Bar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public struct Bar: BarLayoutItem {
public var bar_border_c: Color?
public var bar_fill_c: Color?

@_disfavoredOverload
@available(*, deprecated, message: "Use a closed range instead.")
public init(key: LayoutItemKey, value: Int, range: Range<Int> = 0..<100) {
self.key = key
Expand Down
1 change: 1 addition & 0 deletions Sources/SDPlusLayout/Elements/Slider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public struct Slider: BarLayoutItem {

public var bar_h: Int?

@_disfavoredOverload
@available(*, deprecated, message: "Use a closed range instead.")
public init(key: LayoutItemKey, value: Int, range: Range<Int> = 0..<100) {
self.key = key
Expand Down

0 comments on commit c689ca0

Please sign in to comment.