diff --git a/LeadKit.podspec b/LeadKit.podspec index 98ea2c5f..9462fd5b 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.4.8" + s.version = "0.4.9" s.summary = "iOS framework with a bunch of tools for rapid development" s.homepage = "https://github.com/TouchInstinct/LeadKit" s.license = "Apache License, Version 2.0" diff --git a/LeadKit/LeadKit/Functions/Any+TypeName.swift b/LeadKit/LeadKit/Functions/Any+TypeName.swift index 6de9cb91..3654a72b 100644 --- a/LeadKit/LeadKit/Functions/Any+TypeName.swift +++ b/LeadKit/LeadKit/Functions/Any+TypeName.swift @@ -22,9 +22,9 @@ import Foundation -/// Function which returns string representation of type without ".Type" suffix +/// Function which returns string representation of object type without ".Type" suffix /// -/// - Parameter type: a type +/// - Parameter type: an object type /// - Returns: string representation of type without ".Type" suffix public func className(of type: T) -> String { let clsName = String(describing: type(of: type)) @@ -36,6 +36,10 @@ public func className(of type: T) -> String { } } +/// Function which returns string representation of class type without ".Type" suffix +/// +/// - Parameter type: an class type +/// - Returns: string representation of type without ".Type" suffix public func typeName(of type: T.Type) -> String { return String(describing: type) }