Skip to content

Commit 27c061c

Browse files
authored
Merge pull request #890 from screeningeagledreamlab/remove-optional
`StoryboardViewControllerIdentifier.callAsFunction(creator:)` should return non-optional value
2 parents 8d26021 + ec771bd commit 27c061c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RswiftResources/Integrations/StoryboardReference+Integrations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension StoryboardViewControllerIdentifier {
5252
- returns: The view controller corresponding to the specified resource (`R.storyboard.*.*`).
5353
*/
5454
@available(iOS 13.0, tvOS 13.0, visionOS 1, *)
55-
public func callAsFunction(creator: @escaping (NSCoder) -> ViewController?) -> ViewController? where ViewController: UIViewController {
55+
public func callAsFunction(creator: @escaping (NSCoder) -> ViewController?) -> ViewController where ViewController: UIViewController {
5656
UIStoryboard(name: storyboard, bundle: bundle).instantiateViewController(identifier: identifier, creator: creator)
5757
}
5858
}

0 commit comments

Comments
 (0)