Post

Replies

Boosts

Views

Activity

Reply to Promo Code and Offers
oh ok I have an hybrid setup now for testing. Products inApp and subscriptions defined in applestoreconnectm- would that be possible for testing special offer codes ?
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
6d
Reply to Promo Code and Offers
I did that but Promo code and Oferrs never show as an option when testing on a device. Does it require special conditions?
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
6d
Reply to SwiftUI as a cell inside a TableView Controller
Okay thanks and emphasising how the cell is being configured: cell.contentConfiguration = UIHostingConfiguration { CheckBoxUIView(showContent: ShowContent(false, buttons: buttons[indexPath.row], oferta: offers[indexPath.row] )) .swipeActions(edge: .trailing, allowsFullSwipe: false) { ...} ... } I can't ask for another lab session now that I've got my security settings for screen sharing fixed they are closed now but I will test your suggestion asap and let you guys know how it goes.
Topic: UI Frameworks SubTopic: SwiftUI
Jun ’24
Reply to SwiftUI as a cell inside a TableView Controller
Okay now when the data being presented by the ObservableObject model was deleted by the Accept Alert action using the ObservedObject property, the cell was updated and I could leave a message to the user: About the cell to need to grow or shrink it was already working great using in UITableView, heightForRowAt indexPath if indexPath.section == 2 { return UITableView.automaticDimension }
Topic: UI Frameworks SubTopic: SwiftUI
Jun ’24
Reply to SwiftUI as a cell inside a TableView Controller
Thanks for the reply Rico. I watched the talk Use SwiftUI with UIKit several times and tried the sample too. Maybe with an image I can make myself clear: After a selection the user can click the button which means Accept Bid then an Alert is displayed If Aceito! is chosen it means that the equipment is no longer for sale and the row must be removed from the LancesTableView. CheckBoxUIView(showContent: ShowContent(false, buttons: buttons[indexPath.row], oferta: offers[indexPath.row] )) // accepted .swipeActions(edge: .trailing, allowsFullSwipe: false) { Button(role: .destructive) { [weak self] in guard let indexPath = self?.tableView.indexPath(for: cell) else { return} self!.buttons.remove(at: indexPath.row) self?.offers.remove(at: indexPath.row) self!.tableView.deleteRows(at: [indexPath], with: .automatic) self!.showAlert(title: "Deleted", message: "***** ", row: indexPath.row) } label: { Label("Delete", systemImage: "trash") } If swipeAction is used like the code above shows I can get the UI effect I need but the Alert is inside the cell. How can I make a trigger action coming from the SwiftUI cell's Alert to call a function from the tableView controller so that the tableview's row can be updated/deleted?
Topic: UI Frameworks SubTopic: SwiftUI
Jun ’24
Reply to Promo Code and Offers
oh ok I have an hybrid setup now for testing. Products inApp and subscriptions defined in applestoreconnectm- would that be possible for testing special offer codes ?
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
Replies
Boosts
Views
Activity
6d
Reply to Promo Code and Offers
I did that but Promo code and Oferrs never show as an option when testing on a device. Does it require special conditions?
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
Replies
Boosts
Views
Activity
6d
Reply to SwiftUI as a cell inside a TableView Controller
Okay thanks and emphasising how the cell is being configured: cell.contentConfiguration = UIHostingConfiguration { CheckBoxUIView(showContent: ShowContent(false, buttons: buttons[indexPath.row], oferta: offers[indexPath.row] )) .swipeActions(edge: .trailing, allowsFullSwipe: false) { ...} ... } I can't ask for another lab session now that I've got my security settings for screen sharing fixed they are closed now but I will test your suggestion asap and let you guys know how it goes.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’24
Reply to SwiftUI as a cell inside a TableView Controller
Okay now when the data being presented by the ObservableObject model was deleted by the Accept Alert action using the ObservedObject property, the cell was updated and I could leave a message to the user: About the cell to need to grow or shrink it was already working great using in UITableView, heightForRowAt indexPath if indexPath.section == 2 { return UITableView.automaticDimension }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’24
Reply to SwiftUI as a cell inside a TableView Controller
Thanks for the reply Rico. I watched the talk Use SwiftUI with UIKit several times and tried the sample too. Maybe with an image I can make myself clear: After a selection the user can click the button which means Accept Bid then an Alert is displayed If Aceito! is chosen it means that the equipment is no longer for sale and the row must be removed from the LancesTableView. CheckBoxUIView(showContent: ShowContent(false, buttons: buttons[indexPath.row], oferta: offers[indexPath.row] )) // accepted .swipeActions(edge: .trailing, allowsFullSwipe: false) { Button(role: .destructive) { [weak self] in guard let indexPath = self?.tableView.indexPath(for: cell) else { return} self!.buttons.remove(at: indexPath.row) self?.offers.remove(at: indexPath.row) self!.tableView.deleteRows(at: [indexPath], with: .automatic) self!.showAlert(title: "Deleted", message: "***** ", row: indexPath.row) } label: { Label("Delete", systemImage: "trash") } If swipeAction is used like the code above shows I can get the UI effect I need but the Alert is inside the cell. How can I make a trigger action coming from the SwiftUI cell's Alert to call a function from the tableView controller so that the tableview's row can be updated/deleted?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’24