This PR fixes the "fix" I made in the previous PR. My aim way to simplify the logic of the ip_fromNib function, which looked pretty ungainly. Here I take this one step further and completely do away with the optionality of this function. The optionality was a bit of a false-friend to begin with, as Bundle.loadNibNamed(:owner:options:) actually throws a runtime error if it can't find a nib instead of returning an empty array. I've tested this in a sample app, and I'm reasonable sure that it works with all, some or none of the optional parameters, at least for the testing I did.
This PR fixes the "fix" I made in the previous PR. My aim way to simplify the logic of the
ip_fromNib
function, which looked pretty ungainly. Here I take this one step further and completely do away with the optionality of this function. The optionality was a bit of a false-friend to begin with, asBundle.loadNibNamed(:owner:options:)
actually throws a runtime error if it can't find a nib instead of returning an empty array. I've tested this in a sample app, and I'm reasonable sure that it works with all, some or none of the optional parameters, at least for the testing I did.