Transaction Detail Component
The TransactionDetailComponent
shows users information about a specific transaction and allows them to update its category or Brand, in case they are inaccurate.
To use this view in a SwiftUI project, just call the TransactionDetailComponent
method of your LuneSDKManager
instance as shown in the example below. The method takes the id
of the transaction as an argument.
// DetailView.Swift
import SwiftUI
import LuneSDK
struct DetailView: View {
// removed for simplicity...
var body: some View {
luneSDK.TransactionDetailComponent(
id: "<transaction.id>"
)
}
}
To use this view in an Objective-C project, just call the TransactionDetailComponent
method of your LuneSDKObjcManager
instance as shown in the example below. The method takes the id
of the transaction as an argument, along with a boolean
flag to enable notes.
// YourViewController.m
- (void)viewDidLoad {
[super viewDidLoad];
// transaction detail setup, after initilizing luneSDK
UIViewController *hostingController = [self.luneSDK
TransactionDetailComponentWithConfig:nil id:@"<transaction.id>" withNotes:true];
[self addChildViewController:hostingController];
[self.view addSubview:hostingController.view];
// constraints setup removed for simplicity...
}
Localization Keys and Analytics
📊 Analytics Tags
report_transaction_button
save_button
🈯️ Localization Keys
lune_sdk_str_amount
lune_sdk_str_date
,lune_sdk_str_date_time
lune_sdk_str_category
lune_sdk_str_suggested_category
lune_sdk_str_raw_transaction
lune_sdk_str_notes
lune_sdk_str_tap_to_add_notes
lune_sdk_str_tags
lune_sdk_str_tap_to_add_tags
lune_sdk_str_report_transaction
,lune_sdk_str_cancel_report
lune_sdk_str_save
📊 Analytics Tags
close_button
incorrect_brand_tile
incorrect_logo_tile
incorrect_category_tile
report_button
🈯️ Localization Keys
lune_sdk_str_report_transaction__title
lune_sdk_str_incorrect_brand_name
lune_sdk_str_suggested_brand
lune_sdk_str_incorrect_logo
lune_sdk_str_incorrect_category
lune_sdk_str_report
lune_sdk_str_brand_name
📊 Analytics Tags
close_button
category_filter_option
custom_category_button
submit_button
🈯️ Localization Keys
lune_sdk_str_report_category
lune_sdk_str_please_select_your_recommended_category
lune_sdk_str_search
lune_sdk_str_add_a_custom_category
lune_sdk_str_submit
📊 Analytics Tags
close_button
submit_button
🈯️ Localization Keys
lune_sdk_str_add_a_custom_category
lune_sdk_str_category_field_label
lune_sdk_str_category_name
lune_sdk_str_submit
📊 Analytics Tags
close_button
🈯️ Localization Keys
lune_sdk_str_feedback_submitted_successfully