eureka-forms

How to create custom inline rows with Eureka?

穿精又带淫゛_ 提交于 2019-11-29 08:53:04
I would like implement a custom inline cell with Eureka like described here . But I have some problems to make in compile in my concrete case. Swift compiler crashes when I try to run with the following error. ... Call parameter type does not match function signature! ... 1. Running pass 'Module Verifier' on function'@_TWaC7TonyPro22ServiceCheckInlineRow26Eureka13InlineRowTypeS_' ... My collapsable Row and Cell. public final class ServiceRow: Row<Service, ServiceCell>, RowType { ... } public class ServiceCell: Cell<Service>, CellType { ... } My inline row public class ServiceCheckInlineRow:

Custom Row in Eureka

寵の児 提交于 2019-11-28 10:24:21
问题 I am trying to create a custom row that shows an image. So I started by trying the basic custom row indicated in Eureka's page: https://github.com/xmartlabs/Eureka#basic-custom-rows Here's the code I am using: import Eureka public class CustomCell2: Cell<Bool>, CellType{ @IBOutlet weak var switchControl: UISwitch! @IBOutlet weak var label: UILabel! public override func setup() { super.setup() switchControl.addTarget(self, action: #selector(CustomCell2.switchValueChanged), forControlEvents:

Swift: How to get form values using Eureka form builder?

对着背影说爱祢 提交于 2019-11-28 06:46:37
问题 I'm building a form with the Eureka form builder but don't understand how I can get the values inside the form. They provide instructions in the docs here. The form results are passed to a dictionary: As you may have noticed the result dictionary key is the row tag value and the value is the row value. Only rows with a tag value will be added to the dictionary. My code: override func viewDidLoad() { super.viewDidLoad() form = Section() <<< NameRow() { // NameRow is dictionary key, right? $0