Skip to content

Commit

Permalink
fix story tile. (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Livinglist authored Sep 17, 2023
1 parent 324937d commit 6452b57
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Shared/Views/Components/AuthButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension HomeView {
Button {
showLoginDialog = true
} label: {
Text("Log In")
Text("Log in")
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion Shared/Views/Components/ItemRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct ItemRow: View {
Image(systemName: "ellipsis")
.padding(.leading)
.padding(.bottom, 12)
.padding(.trailing)
.foregroundColor(.orange)
}
}
Expand Down Expand Up @@ -96,7 +97,7 @@ struct ItemRow: View {
Button {
onPin()
} label: {
Image(systemName: "pin.fill")
Label(String(), systemImage: "pin.fill")
.rotationEffect(Angle(degrees: 45))
.transformEffect(.init(translationX: 0, y: 5))
}
Expand Down
3 changes: 2 additions & 1 deletion Shared/Views/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,15 @@ struct HomeView: View {
Divider()
Button {
Task {
HapticFeedbackService.shared.light()
await OfflineRepository.shared.downloadAllStories()
}
} label: {
if offlineRepository.isDownloading {
Text("Download in progress")
Text("\(offlineRepository.completionCount) completed")
} else {
Label("Download All Stories", systemImage: "square.and.arrow.down")
Label("Download all stories", systemImage: "square.and.arrow.down")
}
}
.disabled(offlineRepository.isDownloading)
Expand Down
6 changes: 3 additions & 3 deletions Shared/Views/Search/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ struct SearchView: View {
.navigationBarTitleDisplayMode(.inline)
.navigationTitle("Search")
.withToast(actionPerformed: $actionPerformed)
.onChange(of: debounceObject.debouncedText) { text in
.onChange(of: debounceObject.debouncedText) { _, text in
if text.isEmpty { return }
searchStore.onQueryUpdate(text)
}
.onChange(of: startDate) { _ in
.onChange(of: startDate) { _, _ in
searchStore.onDateRangeUpdate(.dateRange(startDate, endDate))
}.onChange(of: endDate) { date in
}.onChange(of: endDate) { _, date in
searchStore.onDateRangeUpdate(.dateRange(startDate, endDate))
}
}
Expand Down
4 changes: 2 additions & 2 deletions ZCombinator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "ZCombinator (iOS).entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1119,7 +1119,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "ZCombinator (iOS).entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 10;
CURRENT_PROJECT_VERSION = 11;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down

0 comments on commit 6452b57

Please sign in to comment.