Transaction Detail Component
.png)
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_buttonsave_button
🈯️ Localization Keys
lune_sdk_str_amountlune_sdk_str_date,lune_sdk_str_date_timelune_sdk_str_categorylune_sdk_str_suggested_categorylune_sdk_str_raw_transactionlune_sdk_str_noteslune_sdk_str_tap_to_add_noteslune_sdk_str_tagslune_sdk_str_tap_to_add_tagslune_sdk_str_report_transaction,lune_sdk_str_cancel_reportlune_sdk_str_save

📊 Analytics Tags
close_buttonincorrect_brand_tileincorrect_logo_tileincorrect_category_tilereport_button
🈯️ Localization Keys
lune_sdk_str_report_transaction__titlelune_sdk_str_incorrect_brand_namelune_sdk_str_suggested_brandlune_sdk_str_incorrect_logolune_sdk_str_incorrect_categorylune_sdk_str_reportlune_sdk_str_brand_name

📊 Analytics Tags
close_buttoncategory_filter_optioncustom_category_buttonsubmit_button
🈯️ Localization Keys
lune_sdk_str_report_categorylune_sdk_str_please_select_your_recommended_categorylune_sdk_str_searchlune_sdk_str_add_a_custom_categorylune_sdk_str_submit

📊 Analytics Tags
close_buttonsubmit_button
🈯️ Localization Keys
lune_sdk_str_add_a_custom_categorylune_sdk_str_category_field_labellune_sdk_str_category_namelune_sdk_str_submit

📊 Analytics Tags
close_button
🈯️ Localization Keys
lune_sdk_str_feedback_submitted_successfully