Skip to content

Commit

Permalink
Swift 1.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
katunch committed Apr 11, 2015
1 parent 5b755c3 commit 4972f69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/FontAwesome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ private class FontLoader {
var error: Unmanaged<CFError>?
if !CTFontManagerRegisterGraphicsFont(font, &error) {
let errorDescription: CFStringRef = CFErrorCopyDescription(error!.takeUnretainedValue())
let nsError = error!.takeUnretainedValue() as AnyObject as NSError
NSException(name: NSInternalInconsistencyException, reason: errorDescription, userInfo: [NSUnderlyingErrorKey: nsError]).raise()
let nsError = error!.takeUnretainedValue() as AnyObject as! NSError
NSException(name: NSInternalInconsistencyException, reason: errorDescription as String, userInfo: [NSUnderlyingErrorKey: nsError]).raise()
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion FontAwesome.swift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "FontAwesome.swift"
s.version = "0.3.0"
s.version = "0.3.1"
s.summary = "Use Font Awesome in your Swift projects"
s.homepage = "https://github.com/thii/FontAwesome.swift"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down

0 comments on commit 4972f69

Please sign in to comment.