Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TransactionView.swift and TransactionCategoryPicker.swift #61

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dime/Components/Transactions/TransactionCategoryPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ struct NewCategoryPickerView: View {
.font(.system(.body, design: .rounded).weight(.semibold))
.lineLimit(1)
}
.accessibilityLabel("\(item.wrappedName) category")
.accessibilityHint("Double tap to select the \(item.wrappedName) category.")
.id(item.id)
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 11)
Expand Down
2 changes: 1 addition & 1 deletion dime/Views/InsightsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import Foundation
import Introspect
import SwiftUIIntrospect
import Popovers
import SwiftUI

Expand Down
2 changes: 1 addition & 1 deletion dime/Views/LogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import CloudKitSyncMonitor
import CoreData
import Foundation
import Introspect
import SwiftUIIntrospect
import Popovers
import SwiftUI

Expand Down
3 changes: 3 additions & 0 deletions dime/Views/TransactionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -908,16 +908,19 @@ struct TransactionView: View {
}
.sheet(isPresented: $showCategorySheet) {
CategoryView(mode: .transaction, income: income)
.accessibilityLabel("Category Selection")
}
.sheet(isPresented: $showPicker) {
if #available(iOS 16.0, *) {
CustomRecurringView(
repeatType: $repeatType, repeatCoefficient: $repeatCoefficient, showPicker: $showPicker
)
.presentationDetents([.height(230)])
.accessibilityLabel("Recurring Transaction Settings")
} else {
CustomRecurringView(
repeatType: $repeatType, repeatCoefficient: $repeatCoefficient, showPicker: $showPicker)
.accessibilityLabel("Recurring Transaction Settings")
}
}
.onChange(of: dynamicTypeSize) { _ in
Expand Down