Closed vitobellini closed 7 years ago
I'm going to need more information than that. What version are you using and if you could upload an example of the app that would be best.
full code here https://pastebin.com/EXjDzTdD
iOS 11 on iPhone 6 Plus (actual device)
You have a typo in your type. emptyStateDetailMessage
is optional, since you declared it as non-optional UIEmptstate used the default implementation found here which returns a nil message thus why you're not seeing your detail message.
You don't get a compiler warning for this since you are technically fully conformed to UIEmpstateDataSource
but your emptyStateDetailMessage
getter will never be called. This is a bit of an issue with Swift itself since it doesn't warn you for obvious typos such as this one. Make emptyStateDetailMessage
optional and your code will work just fine!
Also, please read the docs as it has all the correct names for methods/variables.
emptyStateTitle works fine, but not the detailed one (with or without image)
emptyStateDetailMessage is never shown