With the code below I keep getting this error under return and cannot seem to find a solution.
Cannot convert value of type '[AnyHashable : Any]?' to expected argument type '[UINib.OptionsKey : Any]?'
//
// Created by Stevoo 10/17/2022
// From: https://github.com/mac-cain13/R.swift.Library
// License: MIT License
//
import Foundation
import UIKit
public extension NibResourceType {
/**
Instantiate the nib to get the top-level objects from this nib
- parameter ownerOrNil: The owner, if the owner parameter is nil, connections to File's Owner are not permitted.
- parameter options: Options are identical to the options specified with -[NSBundle loadNibNamed:owner:options:]
- returns: An array containing the top-level objects from the NIB
*/
public func instantiate(withOwner ownerOrNil: Any?, options optionsOrNil: [AnyHashable : Any]? = [:]) -> [Any] {
return UINib(resource: self).instantiate(withOwner: ownerOrNil, options: optionsOrNil)
}
}