Skip to content

Commit 0ff440d

Browse files
committed
Deprecate resetLabel [Common].
1 parent 9c09342 commit 0ff440d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Sources/ObjC/MarqueeLabel.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ IB_DESIGNABLE
296296

297297
/** Immediately resets the label to the home position, cancelling any in-flight scroll animation, and restarts the scroll animation if the appropriate conditions are met.
298298
299-
@see resetLabel
300299
@see triggerScrollStart
301300
*/
302301

@@ -317,16 +316,11 @@ IB_DESIGNABLE
317316
- (void)shutdownLabel;
318317

319318

320-
/** Resets the label text, recalculating the scroll animation.
321-
322-
The text is immediately returned to the home position, and the scroll animation positions are cleared. Scrolling will not resume automatically after
323-
a call to this method. To re-initiate scrolling, use either a call to `restartLabel` or make a change to a UILabel property such as text, bounds/frame,
324-
font, font size, etc.
325-
326-
@see restartLabel
319+
/**
320+
@deprecated Use `resetLabel:` instead.
327321
*/
328322

329-
- (void)resetLabel;
323+
- (void)resetLabel __deprecated_msg("Use resetLabel instead");
330324

331325

332326
/** Pauses the text scrolling animation, at any point during an in-progress animation.

Sources/Swift/MarqueeLabel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
12501250

12511251
- SeeAlso: restartLabel
12521252
*/
1253+
@available(*, deprecated : 3.1.6, message : "Use the shutdownLabel function instead")
12531254
public func resetLabel() {
12541255
returnLabelToHome()
12551256
homeLabelFrame = CGRect.null

0 commit comments

Comments
 (0)