Fix. Update version & add description

This commit is contained in:
Igor Kislyuk 2017-04-26 16:05:24 +03:00
parent 04a558b70f
commit fa069c422a
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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<T>(of type: T) -> String {
let clsName = String(describing: type(of: type))
@ -36,6 +36,10 @@ public func className<T>(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<T>(of type: T.Type) -> String {
return String(describing: type)
}