Skip to content

Put up some Wallpaper! Placeholder images, text, and colors for your apps.

License

Notifications You must be signed in to change notification settings

enmiller/Wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallpaper.swift

Swift

Building something? Building something and need content? Building something and need some fast content that will make your designer work much faster?? Put up some Wallpaper! Quick placeholder images, text, and colors for your apps.

Prefer the native Objective-C version? We've got you covered with PlaceKit.

Content

Placeholders

ProTip: Brisket and bacon wallpaper appear to have the greatest effect on that special visual designer in your life.

Text

Colors

Sometimes you don't care or don't want to think about the color of something. Sometimes you just want to differentiate different views. Create new colors to give you bland UI some dimension, give new views a random color to tell them apart or generate a new random color matching the hue of another:

  • Random UIColor
  • Random UIColor with specific hue
  • Random UIColor with same hue as another UIColor
  • Random greyscale color
  • More

Usage

Images

Wallpaper.placeKittenImage(imageView.size) { image in
  imageView.image = image
}

Colors

let initialColor = Wallpaper.placeRandomColor()
view1.backgroundColor = initialColor
view2.backgroundColor = Wallpaper.placeRandomColorWithHueOfColor(initialColor)

Text

Wallpaper.placeHipsterIpsum(numberOfParagraphs: 3, shotOfLatin: true) { hipsterText in
  textView.text = hipsterText
}

Installation

The Wallpaper core was built dependency-free to make it as easy as possible to drop into your project. Simply drop Wallpaper.swift and away you go!

License

Standard MIT license

About

Put up some Wallpaper! Placeholder images, text, and colors for your apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages