Skip to content

Instantly share code, notes, and snippets.

@MatrixSenpai
Created January 4, 2017 03:58
Show Gist options
  • Save MatrixSenpai/3ed183c4a73504deafc5f4561e40adc8 to your computer and use it in GitHub Desktop.
Save MatrixSenpai/3ed183c4a73504deafc5f4561e40adc8 to your computer and use it in GitHub Desktop.
Eureka Form Add Row Workaround
// Your form
Section("My Form") { $0.tag = "AddSection" }
<<< TextRow("rowOne")
<<< TextRow("rowTwo")
<<< ButtonRow("addRow") {
$0.title = "Add Row"
}.onCellSelection { (cell, row) in
self.form.sectionBy(tag: "AddSection")
<<< TextRow("newRowTag")
}
@MatrixSenpai
Copy link
Author

Adding sample code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment