Closed hujunfeng closed 5 months ago
This method calls UIStoryboard.instantiateViewController(identifier:creator:) internally, which returns a non-optional view controller. Therefore, it is unnecessary to return optional value in the StoryboardViewControllerIdentifier method.
UIStoryboard.instantiateViewController(identifier:creator:)
StoryboardViewControllerIdentifier
See also: https://developer.apple.com/documentation/uikit/uistoryboard/3213989-instantiateviewcontroller
Thanks!
This method calls
UIStoryboard.instantiateViewController(identifier:creator:)
internally, which returns a non-optional view controller. Therefore, it is unnecessary to return optional value in theStoryboardViewControllerIdentifier
method.See also: https://developer.apple.com/documentation/uikit/uistoryboard/3213989-instantiateviewcontroller