CCMRadarView 1.0.2

CCMRadarView 1.0.2

TestsTested
LangLanguage SwiftSwift
License Apache 2
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Carlos Compean.




  • By
  • Carlos Compean

CCMRadarView

CCMRadarView is a simple to use view that uses the new IBDesignable and IBInspectable features of XCode6 to easily configure the icon in the center, the width of the waves of the radar, as well as the color, the number of waves,etc.

Here is a sample views of the radar:

Normal Radar

CCMRadarView

Reversed Radar

CCMRadarReversedView

Usage

In the storyboard draw a view to your controller and assign it the CCMRadarView class, then customize it as you want in the Attributes inspector.

CCMRadarViewUsage

To start and stop animations in the radar, you should call the startAnimation() or the stopAnimation() methods. Don’t forget to import your framework first.

Importing Framework

Swift

If you added the CCMRadarView.swift file to your project there is no need to import.

If you are using cocoapods use import CCMRadarView

Objective-C

If you added the CCMRadarView.swift file to your project you will need to import the header with the following format #import "YourProjectName-Swift.h". For more information on this follow the Importing Swift into Objective-C guide.

If you added the CCMRadarView through cocoapods use: #import <CCMRadarView/CCMRadarView-Swift.h>

Requirements

Xcode version 6.0 or later.

iOS version 7.0 or later (8.0 or later for use with Cocoapods)

Installation

Files

Download or clone the repository, and copy the CCMRadarView.swift file to your project.

Author

Carlos Compean, [email protected]

License

CCMRadarView is available under the Apache License, Version 2.0. See the LICENSE file for more info.