<commit_before>![EZClockView](https://raw.githubusercontent.com/notbenoit/notbenoit.github.io/master/images/ezclockview/ezclockview.png)

[![Build Status](https://travis-ci.org/notbenoit/EZClockView.svg?branch=master)](https://travis-ci.org/notbenoit/EZClockView)

# EZClockView
EZClockView is an iOS framework (MacOS soon) which provides a ClockView to display time. It could be used directly in nib files or in code.


## Requirements

- iOS 7.0+
- Xcode 6.1

## Installation

### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.

CocoaPods 0.36 beta adds supports for Swift and embedded frameworks. You can install it with the following command:

```bash
$ gem install cocoapods --pre
```

To add `EZClockView` to your project, add this line to your  `Podfile` (WIP on develop branch) :

```ruby
pod 'EZClockView', :git => 'https://github.com/notbenoit/EZClockView.git', :branch => 'develop'
```

### Manual
- Simply add the `EZClockView.xcodeproj` to your workspace and add its framework output as a dependency of your project.
- You can also build the framework and directly link it to your target.

## Usage
To use the EZClockView, instantiate it as you would instantiate a UIView. Then modify it as you like (colors, thickness, hand length...)

### By code

Create a new instance of the EZClockView class, and add it as a subview of any view. A sample worth a thousand words :

```swift
let clock = EZClockView(frame: view.bounds)

// Setup time
clock.hours = 7
clock.minutes = 12
clock.seconds = 47

// Customize face with border thickness and background color
clock.faceBorderWidth = 3
clock.faceBackgroundColor = UIColor(white: 0.9, alpha: 1)

// Set the thickness of any needle<commit_msg>Updated README file.<commit_after>![EZClockView](https://raw.githubusercontent.com/notbenoit/notbenoit.github.io/master/images/ezclockview/ezclockview.png)

[![Build Status](https://travis-ci.org/notbenoit/EZClockView.svg?branch=master)](https://travis-ci.org/notbenoit/EZClockView)

# EZClockView
EZClockView is an iOS framework (MacOS soon) which provides a ClockView to display time. It could be used directly in nib files or in code.


## Requirements

- iOS 7.0+
- Xcode 6.1

## Installation

### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

```bash
$ gem install cocoapods
```

To add `EZClockView` to your project, add this line to your  `Podfile` :

```ruby
pod 'EZClockView', '~> 1.1.0'
```

### Manual
- Simply add the `EZClockView.xcodeproj` to your workspace and add its framework output as a dependency of your project.
- You can also build the framework and directly link it to your target.

## Usage
To use the EZClockView, instantiate it as you would instantiate a UIView. Then modify it as you like (colors, thickness, hand length...)

### By code

Create a new instance of the EZClockView class, and add it as a subview of any view. A sample worth a thousand words :

```swift
let clock = EZClockView(frame: view.bounds)

// Setup time
clock.hours = 7
clock.minutes = 12
clock.seconds = 47

// Customize face with border thickness and background color
clock.faceBorderWidth = 3
clock.faceBackgroundColor = UIColor(white: 0.9, alpha: 1)

// Set the thickness of any needle
{'fraction_non_alphanumeric': 0.10076832151300237, 'fraction_numerical': 0.010342789598108746, 'mean_word_length': 4.407348242811501, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6104225', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1051, 'n_words': 400}