Skip to content

Commit 16ee2b4

Browse files
CGRectmaterial-automation
authored andcommitted
Add circular stop and gap to Determinant Progress View.
PiperOrigin-RevId: 607765268
1 parent 91ff4bf commit 16ee2b4

File tree

3 files changed

+428
-30
lines changed

3 files changed

+428
-30
lines changed

components/ProgressView/src/MDCProgressView.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,24 @@ IB_DESIGNABLE
151151
@property(nonatomic, copy, nullable) void (^traitCollectionDidChangeBlock)
152152
(MDCProgressView *_Nonnull progressView, UITraitCollection *_Nullable previousTraitCollection);
153153

154+
/**
155+
The property that gates the NTC Determinate progress view changes. This enables the stop mark,
156+
rounded corners, and gap.
157+
158+
For accessibility, this should be enabled for most determinate progress indicators. However, it may
159+
be disabled when the determinate track extends the full width of the screen.
160+
161+
The default value is NO.
162+
*/
163+
@property(nonatomic, assign) BOOL enableDeterminateStopMark;
164+
165+
/**
166+
The color shown for the gap(s) between the progress bar(s) and the track.
167+
168+
The default is clearColor, which results in an appearance with no visible gaps.
169+
*/
170+
@property(nonatomic, strong, nullable) UIColor *gapColor UI_APPEARANCE_SELECTOR;
171+
154172
@end
155173

156174
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)