Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
amantaneja committed Sep 6, 2017
1 parent 2cf2392 commit addd0e3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ self.view.addSubview(ptEventView!)
```

### Data Model
PTEventView supports both 12 hour and 24 hour format as data model. The input can be received from the API or Database(Core Data, Realm, SQLite) in the form of Array of Event Object.<br>
PTEventView supports both 12 hour and 24 hour format as data model. The input can be received from the API or Database(Core Data, Realm, SQLite) in the form of Array of `Event Object`.<br>
The Event Object should have:
- Start Time (12 hour or 24 hour)
- End Time (12 hour or 24 hour)
Expand Down Expand Up @@ -67,9 +67,21 @@ for event in dataModel12hour{


# StoryBoard
Supports IBDesignable to alter Border Width, Corner Radius and Border Color
Supports IBDesignable to alter `Border Width`, `Corner Radius` and `Border Color`
<img src="https://github.com/amantaneja/PTEventView/blob/master/Images/IBDesignable.png" height="220" width="370">

### Customization
You can customize the view parameters for designing your own view:

`borderColor` **- Border Color** *Default is Black*

`borderWidth` **- Border Width** *Default is 1.0*

`cornerRadius` **- Corner Radius** *Default is 6.0*

`eventColor` **- Event Color** *Default is as given in Demo Gif*

`eventTextColor` **- Event Text Color** *Default is white. Try to make it contrasting with eventColor*

# ToDo[s]
- [x] Add support for PM and AM via 24 hour format
Expand Down

0 comments on commit addd0e3

Please sign in to comment.