Skip to content

Commit

Permalink
IOS-1733 Delete superNewButtonLoadingState toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mgolovko committed Sep 18, 2023
1 parent a9fff2d commit b456716
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,10 @@ struct StandardButton: View {

@ViewBuilder
private func progressView(config: StandardButtonConfig.Style) -> some View {
if FeatureFlags.superNewButtonLoadingState {
if inProgress {
DotsView()
.foregroundColor(config.textColor)
.frame(width: style.config.loadingIndicatorSize.width, height: style.config.loadingIndicatorSize.height)
}
} else {
if inProgress {
ProgressView()
.progressViewStyle(CircularProgressViewStyle(tint: config.textColor ?? .black))
}
if inProgress {
DotsView()
.foregroundColor(config.textColor)
.frame(width: style.config.loadingIndicatorSize.width, height: style.config.loadingIndicatorSize.height)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ public extension FeatureDescription {
type: .feature(author: "m@anytype.io", releaseVersion: "0.22.0"),
defaultValue: true
)

static let superNewButtonLoadingState = FeatureDescription(
title: "New Button loading state - IOS-1185",
type: .feature(author: "m@anytype.io", releaseVersion: "0.24.0"),
defaultValue: true
)

static let openBinObject = FeatureDescription(
title: "Open bin object - IOS-1605",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public extension FeatureFlags {
value(for: .migrationGuide)
}

static var superNewButtonLoadingState: Bool {
value(for: .superNewButtonLoadingState)
}

static var openBinObject: Bool {
value(for: .openBinObject)
}
Expand Down Expand Up @@ -77,7 +73,6 @@ public extension FeatureFlags {
.fullInlineSetImpl,
.dndOnCollectionsAndSets,
.migrationGuide,
.superNewButtonLoadingState,
.openBinObject,
.recentEditWidget,
.widgetTaskDone,
Expand Down

0 comments on commit b456716

Please sign in to comment.