Examples
Shopping App
Add demo shopping rows.

import SwiftUI
import iGraphics
struct ContentView: View {
var body: some View {
ScrollView {
iGraphicsBox(.photo)
.stack(10)
}
}
}
Default Graphics
Use these graphics to quickly give your app personality.

import SwiftUI
import iGraphics
struct ContentView: View {
var body: some View {
ScrollView(.horizontal) {
HStack {
iGraphicsView(.first)
iGraphicsView(.second)
iGraphicsView(.third)
}
}
}
}
Customize
The iGraphics
package has several built-in View
structures. Each struct has a set of initializers that remain consistent across all structs.
Use our exhaustive input list to customize your colors.
Poperty, Initializer, or Modifier | Description |
---|---|
|
iGraphicsBox 's are light gray boxes meant to resemble common UI components π. The struct takes one of four style parameters: 1οΈβ£ photo , 2οΈβ£ caption , 3οΈβ£ paragraph , or 4οΈβ£ card .
|
|
Flips the of iGraphicsBox across its horizontal axis, ππ so the image is on the right and the text is on the left. Applies only to the Style.photo style, since the others are symmetrical.
|
|
Modifies the text size π that the boxes of words are meant to simulate. βͺοΈβΎοΈβΌοΈβ¬οΈ |
|
Modifies the photo size πΌ that the boxes are meant to simulate. β«οΈβ½οΈβ»οΈβ¬οΈ |
|
Modifies how many graphics boxes are stacked on top of each other π₯π. Allows you to easily stack simulated graphics without worrying about spacing and without creating your own VStack object. Will stack based on the style specificied in the constructor.
|
|
Modifies how many graphics boxes are stacked on top of each other π’π₯. Allows you to easily stack simulated graphics without worrying about spacing creating your own VStack object. Will stack based on the styles specificied in the styles parameter.
|
|
Creates great-looking dummy text ππ object to be used for placeholding with specified style. |
|
Creates a iGraphicsImage from a specified style of image. iGraphicsImage is a great-looking dummy image view πΌ that displays as a square, and can show a number of different images.
|
|
Creates a new iGraphicsView from a specified style of image. iGraphicsView is a great-looking dummy combined image π and text π view. Comes in several different styles created from a sequence. Ideal for display in a page view.
|
|
Easily access an array to all the iGraphicsView views, in order, to be used, for example, in a page view.
|
Community
Meet the developers behind iGraphics
.

@benjaminsage