Code Monkey home page Code Monkey logo

ccmradarview's Introduction

CCMRadarView

License APACHE Release Version License Platform

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.

With CocoaPods

Requires CocoaPods v0.36.0 and iOS v8.0 or later

CCMRadarView is available through CocoaPods. To install it, simply add use_frameworks! line in your Podfile and the following line:

pod "CCMRadarView"

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Carlos Compean, [email protected]

License

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

ccmradarview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccmradarview's Issues

Animation doesn't repeat

Hi there,

I am trying to use the CCMRadarView with swift 3. I have made quite some modifications so that it could work. However, the problem now is that the animation is not working repeatedly. Any tips?

Question: Use without Storyboard

I'm currently not using story board for my project. Would the CCMRadarView work the same way ?
I have added it to my project but The animating circles don't fade out as the example given. Please help.

Question

how to run in Objective C project? It is not working in Objective C code even if setting the bridge file.

Not working with Objective C code

I tried to implement swift code with my objective C code as per apple documentation how to integrate swift file in objective C code. I am using latest Xcode 6.3. Swift code is also trigger but not able to see the animation. I debug the code and found that in "override func animationDidStop(anim: CAAnimation!, finished flag: Bool)" the value of flag is always comes 'false' so that animation is not working with objective C code. Can you please look into this why I am not able to see the animation in objective C Code.

Objective C implementation

I see that your other IBDesigner class has both a Swift and ObjC implementation. I was wondering/hoping if you were going to also convert this to ObjC? I could really use it in an app right about now.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.