Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples to README #31

Merged
merged 6 commits into from Oct 19, 2016
Merged

Add examples to README #31

merged 6 commits into from Oct 19, 2016

Conversation

zenangst
Copy link
Contributor

@zenangst zenangst commented Oct 19, 2016

This PR adds a description and some code examples to show how Imaginary is used.

@mention-bot
Copy link

@zenangst, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vadymmarkov to be a potential reviewer.

```swift
let imageView: UIImageView()
let placeholder = UIImage(named: "PlaceholderImage")
let imageURL: NSURL(string: "https://avatars2.githubusercontent.com/u/1340892?v=3&s=200")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean imageURL = URL(string: ...) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for the 2.2 version.

### Set image with URL
```swift
let imageView: UIImageView()
let imageURL: NSURL(string: "https://avatars2.githubusercontent.com/u/1340892?v=3&s=200")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will go with URL 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous comment.

@onmyway133 onmyway133 merged commit e0582b6 into master Oct 19, 2016
@onmyway133 onmyway133 deleted the update/readme-with-examples branch October 19, 2016 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants