remove old featre flags

This commit is contained in:
Satindar Dhillon 2022-04-27 11:20:02 -07:00
parent 090c1acbfd
commit 45a6bca1bb
4 changed files with 11 additions and 21 deletions

View file

@ -140,10 +140,8 @@ struct LinkItemDetailView: View {
#if os(iOS)
if viewModel.item.isPDF {
fixedNavBarReader
} else if FeatureFlag.useLocalWebView {
WebReaderContainerView(item: viewModel.item, homeFeedViewModel: viewModel.homeFeedViewModel)
} else {
hidingNavBarReader
WebReaderContainerView(item: viewModel.item, homeFeedViewModel: viewModel.homeFeedViewModel)
}
#else
fixedNavBarReader

View file

@ -72,10 +72,8 @@ struct ProfileView: View {
}
Section {
if FeatureFlag.enableLabels {
NavigationLink(destination: LabelsView()) {
Text("Labels")
}
NavigationLink(destination: LabelsView()) {
Text("Labels")
}
NavigationLink(destination: NewsletterEmailsView()) {

View file

@ -14,6 +14,4 @@ public enum FeatureFlag {
public static let enablePushNotifications = false
public static let enableShareButton = false
public static let enableSnooze = false
public static let enableLabels = true
public static let useLocalWebView = true
}

View file

@ -149,20 +149,16 @@ public struct GridCard: View {
.onTapGesture { tapHandler() }
// Category Labels
if FeatureFlag.enableLabels {
ScrollView(.horizontal, showsIndicators: false) {
HStack {
ForEach(item.labels.asArray(of: LinkedItemLabel.self), id: \.self) {
TextChip(feedItemLabel: $0)
}
Spacer()
ScrollView(.horizontal, showsIndicators: false) {
HStack {
ForEach(item.labels.asArray(of: LinkedItemLabel.self), id: \.self) {
TextChip(feedItemLabel: $0)
}
.frame(height: 30)
.padding(.horizontal)
.padding(.bottom, 8)
Spacer()
}
} else {
Spacer(minLength: 8)
.frame(height: 30)
.padding(.horizontal)
.padding(.bottom, 8)
}
}
.background(