Easily use Ionicons in your Swift iOS projects
Currently using ionicons 1.4.1
This project is simply a port and slight reconfiguration of Sweetmandm/Ionicons-iOS
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 6.0
- (Support for embedded frameworks)
- Add Ionicons as a submodule by opening the Terminal,
cd-ing into your top-level project directory, and entering the commandgit submodule add https://github.com/DanielKoehler/Ionicons.git - Open the
Ioniconsfolder, and dragIonicons.xcodeprojinto the file navigator of your app project. - In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
- Ensure that the deployment target of Ionicons.framework matches that of the application target.
- In the tab bar at the top of that window, open the "Build Phases" panel.
- Expand the "Target Dependencies" group, and add
Ionicons.framework. - Click on the
+button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and addIonicons.framework.
For available icons, look at the Ionicon emumeration source or browse them on the IonIcons website.
import Ionicons
var ioniconicFont = Ionicons.fontWithSize(14);import Ionicons
var ioniconiclabel = Ionicons.labelWithIcon(
iconName: Ionicon.Icecream,
size: 14,
color: UIColor.blackColor()
);import Ionicons
var icon = Ionicons.imageWithIcon(
iconName: Ionicon.Icecream,
iconSize: 14,
iconColour: UIColor.redColor(),
imageSize: CGSizeMake(90, 90)
);