//
//  ViewController.swift
//  Sample
//
//  Created by tichise on 2015年5月10日 15/05/10.
//  Copyright (c) 2015年 tichise. All rights reserved.
//

import UIKit
import MaterialDesignSymbol

class ViewController: UIViewController {
    
    @IBOutlet var sampleImageView:UIImageView!
    @IBOutlet var sampleLabel:UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:MaterialDesignIcon.viewHeadline48px, size:30)
        let iconImage:UIImage = symbol.image(size: CGSize(width: 30, height: 30))
        self.sampleImageView.image = iconImage

        sampleLabel.font = MaterialDesignFont.fontOfSize(20)
        sampleLabel.text = MaterialDesignIcon.clear48px
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}


//
//  ViewController.swift
//  Sample
//
//  Created by tichise on 2015年5月10日 15/05/10.
//  Copyright (c) 2015年 tichise. All rights reserved.
//

import UIKit
import MaterialDesignSymbol

class ViewController: UIViewController {
    
    @IBOutlet var sampleImageView:UIImageView!
    @IBOutlet var sampleLabel:UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:MaterialDesignIcon.viewHeadline48px as NSString, size:30)
        let iconImage:UIImage = symbol.image(size: CGSize(width: 30, height: 30))
        self.sampleImageView.image = iconImage

        sampleLabel.font = MaterialDesignFont.fontOfSize(20)
        sampleLabel.text = MaterialDesignIcon.clear48px
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}


--- 
+++ 
@@ -17,7 +17,7 @@
     override func viewDidLoad() {
         super.viewDidLoad()
         
-        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:MaterialDesignIcon.viewHeadline48px as NSString, size:30)
+        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:MaterialDesignIcon.viewHeadline48px, size:30)
         let iconImage:UIImage = symbol.image(size: CGSize(width: 30, height: 30))
         self.sampleImageView.image = iconImage
 
Change the type of text
