Skip to content

anhar/DynamicForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages