You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to find an answer to this anywhere on the internet or in the Eureka documentation. I know how to add an action to a cell, but how can I add an action to a LabelRow cell's accessory button? Currently when I select the row, the print statement executes. If I select the accessory button inside the row, however, nothing happens.
Here is my code:
for section in tags {
form
+++ Eureka.Section("\(section.category)")
for tag in section.tag {
form
+++ LabelRow("\(tag)") { row in
// actions
}.cellSetup({ cell, row in
var content = cell.defaultContentConfiguration()
content.text = tag
content.textProperties.alignment = .natural
cell.contentConfiguration = content
cell.accessoryType = .detailButton
}).onCellSelection({ cell, row in
guard !row.isDisabled else { return }
print("Cell selected (not accessory button)!")
})
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can't seem to find an answer to this anywhere on the internet or in the Eureka documentation. I know how to add an action to a cell, but how can I add an action to a LabelRow cell's accessory button? Currently when I select the row, the print statement executes. If I select the accessory button inside the row, however, nothing happens.
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions