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 Lorem ipsum extension to String! #318

Closed
omaralbeik opened this issue Nov 16, 2017 · 1 comment
Closed

Add Lorem ipsum extension to String! #318

omaralbeik opened this issue Nov 16, 2017 · 1 comment

Comments

@omaralbeik
Copy link
Member

Add loremIpsum(ofLength length: Int)

Example:

label.text = String.loremIpsum(ofLength: 39) -> "Lorem ipsum dolor sit amet, consectetur"

https://www.lipsum.com/

@omaralbeik
Copy link
Member Author

An initializer is also a good addition

let text = String(loremIpsumOfLength 39)
print(text) // prints "Lorem ipsum dolor sit amet, consectetur"

omaralbeik added a commit that referenced this issue Dec 8, 2017
omaralbeik added a commit that referenced this issue Dec 10, 2017
- Closes #328
- Closes #318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant