Created
May 30, 2019 21:21
-
-
Save madnotdead/2de355a3560755807f9a66b704fb8cd7 to your computer and use it in GitHub Desktop.
Using guard properly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard let contentSubs = serie.season[0].content[0].subtitle, contentSubs.count > 0 else { | |
langsContainer.isHidden = true; | |
//Aca no se deberia esconder skeleton? | |
return | |
} | |
langs.text = contentSubs.map { LanguageHelper.getName(from: $0.lang).get(orSet: "") }.joined(separator: ", ") | |
langs.hideSkeleton() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment