Skip to content

Commit addd0e3

Browse files
authored
Updated Readme
1 parent 2cf2392 commit addd0e3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ self.view.addSubview(ptEventView!)
3636
```
3737

3838
### Data Model
39-
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>
39+
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>
4040
The Event Object should have:
4141
- Start Time (12 hour or 24 hour)
4242
- End Time (12 hour or 24 hour)
@@ -67,9 +67,21 @@ for event in dataModel12hour{
6767

6868

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

73+
### Customization
74+
You can customize the view parameters for designing your own view:
75+
76+
`borderColor` **- Border Color** *Default is Black*
77+
78+
`borderWidth` **- Border Width** *Default is 1.0*
79+
80+
`cornerRadius` **- Corner Radius** *Default is 6.0*
81+
82+
`eventColor` **- Event Color** *Default is as given in Demo Gif*
83+
84+
`eventTextColor` **- Event Text Color** *Default is white. Try to make it contrasting with eventColor*
7385

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

0 commit comments

Comments
 (0)