luispadron / UIEmptyState

An empty state control to give visually appealing context when building iOS applications.
MIT License
178 stars 34 forks source link

Button is at wrong position when no image is used #26

Open aloysiusan opened 6 years ago

aloysiusan commented 6 years ago

Hello,

When the title, detail, and button are set but no image is set the displayed order of the views is wrong.

Expected behavior: Title at position 0, detail at position 1 and button at position 2 Current behavior: Title at position 0, button at position 1 and detail at position 2

Issue can be solved by adding the following var emptyStateImage: UIImage? { return UIImage() }

but I think is a bug