How to fix overload issue?

Smple_V

Am trying to fix few bugs in UX when implementing the pod from folding cell from RAMotion github link for pod

However looked into few resources here and here was unable to understand the issue.

in FileA in the given function shows an error saying:

Argument labels '(rawValue:)' do not match any available overloads

fileprivate func convertToCAMediaTimingFunctionName(_ input: String) -> CAMediaTimingFunctionName {
    return CAMediaTimingFunctionName(rawValue: input as String)
}

while looking in the CAMediaTimingFunctionName it has following code

/* CoreAnimation - CAMediaTimingFunction.h

   Copyright (c) 2006-2018, Apple Inc.
   All rights reserved. */

public struct CAMediaTimingFunctionName : Hashable, Equatable, RawRepresentable {

    public init(rawValue: String)
}

the actual error location Any guidance would be helpful.

user10648164

There has been some issues with the said RAmotion project as it was orginally designed for swift 3 later few updates were made.

However, with the limited information would suggest in saying to try something like this

fileprivate func convertToCAMediaTimingFunctionName(_ input: String) -> CAMediaTimingFunctionName {
    return CAMediaTimingFunctionName(string:input )

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related