{"id":18409986,"url":"https://github.com/snowdogapps/sdforms","last_synced_at":"2025-04-07T09:34:26.323Z","repository":{"id":19694744,"uuid":"22949365","full_name":"SnowdogApps/SDForms","owner":"SnowdogApps","description":"iOS","archived":false,"fork":false,"pushed_at":"2016-06-16T22:10:21.000Z","size":809,"stargazers_count":17,"open_issues_count":4,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-28T11:51:07.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SnowdogApps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-14T09:59:31.000Z","updated_at":"2018-06-29T18:40:35.000Z","dependencies_parsed_at":"2022-07-13T06:30:33.986Z","dependency_job_id":null,"html_url":"https://github.com/SnowdogApps/SDForms","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnowdogApps%2FSDForms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnowdogApps%2FSDForms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnowdogApps%2FSDForms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnowdogApps%2FSDForms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SnowdogApps","download_url":"https://codeload.github.com/SnowdogApps/SDForms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277062,"owners_count":17118464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:28:24.857Z","updated_at":"2024-11-06T03:28:27.628Z","avatar_url":"https://github.com/SnowdogApps.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"SDForms\n=======\n\n\nSDForms is an open source iOS forms library that allows to create dynamic UITableView-based forms. It offers different types of fields like text fields, picker fields, date picker fields, switch fields, slider fields etc. It also enables to automatically map fields' values to object properties.\n\n## Installation:\n1. Drag and drop SDForms.xcodeproj to your project/workspace\n2. Add Appriopriate path in Header Search Paths option in Build Settings of your project\n3. In Other Linker Flags add \"-all_load -ObjC\"\n4. In Target Dependencies of Build Phases tab add SDForms\n5. In Link Binary With Libraries add libSDForms.a\n6. In Copy Bundle Resources add SDFormsResourcesBundle.bundle\n\n## CocoaPods\n\n```\npod 'SDForms', :git =\u003e 'https://github.com/SnowdogApps/SDForms.git'\n```\n\n## Usage\n\nThis is only simple example. For more advanced usage please check the sample project.\n\n#### Initializing a form:\n\n```objective-c\nself.form = [[SDForm alloc] initWithTableView:self.tableView];\nself.form.delegate = self;\nself.form.dataSource = self;\n```\n\n#### Creating a field:\n\n```objective-c\nSDTextFormField *name = [[SDTextFormField alloc] initWithObject:self.person relatedPropertyKey:@\"name\"];\nname.title = @\"Name\";\nname.placeholder = @\"Name\";\nname.cellType = SDTextFormFieldCellTypeTextAndLabel;\n```\n\n#### Implementing data source methods;\n\n```objective-c\n- (NSInteger)numberOfSectionsForForm:(SDForm *)form\n{\nreturn self.sections.count;\n}\n\n- (NSInteger)form:(SDForm *)form numberOfFieldsInSection:(NSInteger)section\n{\nNSMutableArray *fields = [self.sections objectAtIndex:section];\nreturn fields.count;\n}\n\n- (SDFormField *)form:(SDForm *)form fieldForRow:(NSInteger)row inSection:(NSInteger)section\n{\nNSArray *fields = [self.sections objectAtIndex:section];\nreturn [fields objectAtIndex:row];\n}\n```\n\n## Screenshots:\n![Screenshot1](images/1.png)\n\n![Screenshot2](images/2.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdogapps%2Fsdforms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdogapps%2Fsdforms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdogapps%2Fsdforms/lists"}