TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by SRKRequestManager.
An icon picker view which will show list of icons from Font Awesome.
With the help of Icon Picker View, Icon picker funcationality can be achieved easily.
You can use CocoaPods to install SKFontAwesomeIconPickerView
by adding it to your Podfile
:
platform :ios, '9.0'
use_frameworks!
pod 'SKFontAwesomeIconPickerView', :git => 'https://github.com/sag333ar/SKFontAwesomeIconPickerView.git', :branch => 'master'
To get the full benefits import SKRadioButton
wherever you import UIKit
import UIKit
import SKFontAwesomeIconPickerView
Step 1: Download FontAwesome
from here or here
Step 2: Drag & drop font into your Xcode project.
Step 3: Open Info.plist
and add an entry as indicated below.
Step 4: Open your project's Storyboard. Drag & drop a view. Select it & change Class name to SKFontAwesomePickerView
as indicated below from Identity Inspector.
Step 5: Change your view controller's code as indicated below. Also apply necessary connections to Storyboard.
import UIKit
import SKFontAwesomeIconPickerView
class ViewController: UIViewController {
@IBOutlet var iconPicker: SKFontAwesomePickerView!
@IBOutlet var label: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
iconPicker.didSelectClosure = { icon in
DispatchQueue.main.async {
self.label.text = icon
}
}
}
}
Hope that helps.
If it does not, download sample project from here for more reference.
We would love you for the contribution to SKFontAwesomeIconPickerView, check the LICENSE
file for more info.
Sagar R. Kothari – @sag333ar – [email protected]
Cheers.