Skip to content

Commit

Permalink
Add circular stop and gap to Determinant Progress View.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607765268
  • Loading branch information
CGRect authored and material-automation committed Feb 16, 2024
1 parent 91ff4bf commit 16ee2b4
Show file tree
Hide file tree
Showing 3 changed files with 428 additions and 30 deletions.
18 changes: 18 additions & 0 deletions components/ProgressView/src/MDCProgressView.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,24 @@ IB_DESIGNABLE
@property(nonatomic, copy, nullable) void (^traitCollectionDidChangeBlock)
(MDCProgressView *_Nonnull progressView, UITraitCollection *_Nullable previousTraitCollection);

/**
The property that gates the NTC Determinate progress view changes. This enables the stop mark,
rounded corners, and gap.
For accessibility, this should be enabled for most determinate progress indicators. However, it may
be disabled when the determinate track extends the full width of the screen.
The default value is NO.
*/
@property(nonatomic, assign) BOOL enableDeterminateStopMark;

/**
The color shown for the gap(s) between the progress bar(s) and the track.
The default is clearColor, which results in an appearance with no visible gaps.
*/
@property(nonatomic, strong, nullable) UIColor *gapColor UI_APPEARANCE_SELECTOR;

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit 16ee2b4

Please sign in to comment.