{"action":"created","issue":{"url":"https://api.github.com/repos/xmartlabs/XLForm/issues/375","labels_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/375/comments","events_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/375/events","html_url":"https://github.com/xmartlabs/XLForm/issues/375","id":83956068,"number":375,"title":"Predicated rows in Swift","user":{"login":"carlhunterroach","id":1036041,"avatar_url":"https://avatars.githubusercontent.com/u/1036041?v=3","gravatar_id":"","url":"https://api.github.com/users/carlhunterroach","html_url":"https://github.com/carlhunterroach","followers_url":"https://api.github.com/users/carlhunterroach/followers","following_url":"https://api.github.com/users/carlhunterroach/following{/other_user}","gists_url":"https://api.github.com/users/carlhunterroach/gists{/gist_id}","starred_url":"https://api.github.com/users/carlhunterroach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlhunterroach/subscriptions","organizations_url":"https://api.github.com/users/carlhunterroach/orgs","repos_url":"https://api.github.com/users/carlhunterroach/repos","events_url":"https://api.github.com/users/carlhunterroach/events{/privacy}","received_events_url":"https://api.github.com/users/carlhunterroach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xmartlabs/XLForm/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mats-claassen","id":8573865,"avatar_url":"https://avatars.githubusercontent.com/u/8573865?v=3","gravatar_id":"","url":"https://api.github.com/users/mats-claassen","html_url":"https://github.com/mats-claassen","followers_url":"https://api.github.com/users/mats-claassen/followers","following_url":"https://api.github.com/users/mats-claassen/following{/other_user}","gists_url":"https://api.github.com/users/mats-claassen/gists{/gist_id}","starred_url":"https://api.github.com/users/mats-claassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mats-claassen/subscriptions","organizations_url":"https://api.github.com/users/mats-claassen/orgs","repos_url":"https://api.github.com/users/mats-claassen/repos","events_url":"https://api.github.com/users/mats-claassen/events{/privacy}","received_events_url":"https://api.github.com/users/mats-claassen/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-02T10:23:46Z","updated_at":"2015-07-28T07:55:38Z","closed_at":null,"body":"I have a boolean row and a textview row.\r\nI'd like the textview to show/hide based on the boolean row value\r\n\r\nI have:\r\n\r\n    enum Tags:String {\r\n        case Switch = \"switch\"\r\n    }\r\n\r\n    var dpSection = XLFormSectionDescriptor.formSection() as XLFormSectionDescriptor\r\n    dpSection.title = \"Data Protection Agreement\"\r\n    form.addFormSection(dpSection)\r\n\r\n    row = XLFormRowDescriptor(tag:Tags.Switch.rawValue, rowType: XLFormRowDescriptorTypeTextView, title:\"\")\r\n    row.value = \"row text\"\r\n\r\n    row.hidden = NSPredicate(format:\"$\\(Tags.Switch.rawValue).value==0\")\r\n    row.disabled = true\r\n    dpSection.addFormRow(row)\r\n\r\n    row = XLFormRowDescriptor(tag:Tags.Switch.rawValue, rowType: XLFormRowDescriptorTypeBooleanSwitch, title:\"Show Agreement\")\r\n    row.value = true\r\n    dpSection.addFormRow(row)\r\n\r\nWhen I tap my Boolean row nothing changes.\r\nIf I swap the TextView for another Boolean row then all works as intended.\r\nIs TextView supported by this show/hide mechanism but needs a different set-up?\r\n\r\nI downloaded the latest XLForm, from master, yesterday (2nd June 2015)"},"comment":{"url":"https://api.github.com/repos/xmartlabs/XLForm/issues/comments/125489708","html_url":"https://github.com/xmartlabs/XLForm/issues/375#issuecomment-125489708","issue_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/375","id":125489708,"user":{"login":"carlhunterroach","id":1036041,"avatar_url":"https://avatars.githubusercontent.com/u/1036041?v=3","gravatar_id":"","url":"https://api.github.com/users/carlhunterroach","html_url":"https://github.com/carlhunterroach","followers_url":"https://api.github.com/users/carlhunterroach/followers","following_url":"https://api.github.com/users/carlhunterroach/following{/other_user}","gists_url":"https://api.github.com/users/carlhunterroach/gists{/gist_id}","starred_url":"https://api.github.com/users/carlhunterroach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlhunterroach/subscriptions","organizations_url":"https://api.github.com/users/carlhunterroach/orgs","repos_url":"https://api.github.com/users/carlhunterroach/repos","events_url":"https://api.github.com/users/carlhunterroach/events{/privacy}","received_events_url":"https://api.github.com/users/carlhunterroach/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T07:55:38Z","updated_at":"2015-07-28T07:55:38Z","body":"ah! thanks."}}