Skip to content

Commit

Permalink
Merge branch 'master' of github.com:evgenyneu/Cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyneu committed Sep 23, 2017
2 parents dfc30b7 + 6dc6704 commit e51cb68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Setup a [previous version](https://github.com/evgenyneu/Cosmos/wiki/Legacy-Swift

*Note*: Carthage setup method does not allow to customize Cosmos view from the storyboard, please do it from code instead.

## Positioning the Cosmos view

One can position the Cosmos view using Auto Layout constaints. The width and height of the view is determined automatically based on the size of its content - stars and text. Therefore, there is no need to set width/height constaints on the Cosmos view.

## Using Cosmos in code

Expand Down Expand Up @@ -146,7 +149,7 @@ cosmosView.settings.filledImage = UIImage(named: "GoldStarFilled")
// Set image for the empty star
cosmosView.settings.emptyImage = UIImage(named: "GoldStarEmpty")
```

Note: you need to have the images for the filled and empty star in your project for this code to work.

#### Download star image files

Expand Down

0 comments on commit e51cb68

Please sign in to comment.