Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

EmptyStateView is red after building with iOS 14 SDK #33

Open
jannemecek opened this issue Sep 17, 2020 · 2 comments
Open

EmptyStateView is red after building with iOS 14 SDK #33

jannemecek opened this issue Sep 17, 2020 · 2 comments

Comments

@jannemecek
Copy link

Apparently this line was left in

contentView.backgroundColor = UIColor.red

Previously the background color wouldn't be shown on UIStackView, which has changed now.

@RayanSaeed
Copy link

+1

@gereons
Copy link

gereons commented Oct 28, 2020

I don't think this bug will be fixed anytime soon, this repo appears to be abandoned.

For those with the same issue that do not want to maintain their own fork, an easy workaround is to add

func emptyStateViewWillShow(view: UIView) {
        if let emptyView = view as? UIEmptyStateView {
            emptyView.contentView.backgroundColor = .clear
        }
}

to your UIEmptyStateDelegate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants