Skip to content

Dynamic height for custom view using stack view. Custom view is made programatically.

Notifications You must be signed in to change notification settings

satyadevchauhan/DynamicHeightCustomView

Repository files navigation

DynamicHeightCustomView

Dynamic height for custom view using stack view. Custom view is made programatically.

DynamicHeightCustomView-Demo

Getting Started

  • Create a custom view and add desired views and mark the class IBDesignable.
  • Embedd all views in stackview.
  • Add all constraints accordingly.
  • Now open your view controller in Storyboard, add a normal UIView. Add Leading, Trailing, Top constraints.
  • With the view selected, go to the Identity Inspector and change the Class to CustomView.
  • You should see the customview changes here with taking desired height.

About

Dynamic height for custom view using stack view. Custom view is made programatically.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages