anhar / DynamicForm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Form

A proof of concept demo project on how to build a dynamic form using JSON and SwiftUI.

Components

The components are only intended to work in a vertical list similar to UIKits UITableView. Below you'll find the current components and their completion state:

  • TextField row
  • URLImage row
  • Button row

TextField row

  • Text from JSON response
  • Placeholder text from JSON response
  • Background color
  • Textcolor
  • Placeholder textcolor (currently no API for this yet, see this StackOverflow post)
  • Corner radius
  • Text alignment
  • Custom fonts

URLImage row

  • Load image from URL
  • Default fallback image
  • Caching loaded images from network
  • Loading indicator/loading image
  • Support multiple aspect ratios
    • Right now only 16:9 works "good"

Button row

  • Text from JSON response
  • Background color
  • Textcolor
  • Corner radius
  • Custom fonts

About

License:MIT License


Languages

Language:Swift 100.0%