Как так же реализовать в swift 3 HELP


#1
public interface IMath<T>
{
double GetValue(T item);
}

#2
protocol IMath {
    associatedtype ValueType
    func getValue(item: ValueType) -> Double
}

class Class: IMath {
    func getValue(item: Int) -> Double {
        return 0
    }
}