Snippet

Snippet

Cocoapods class reference view on Github

Landscape (default)

Day Night

Square

Day Night

Portrait

Day Night

Usage

Snippet with image only

All text fields are optional, which means by default BPKSnippet only has an image. If you don't specify an imageOrientation parameter it will use the .landscape type


                                                
                                                BPKSnippet(
                                                    image: Image("dialog_image", bundle: TestsBundle.bundle)
                                                )

Snippet with all text fields

```swift BPKSnippet( image: Image("dialog_image", bundle: TestsBundle.bundle), headline: "Headline Text", subheading: "Description", bodyText: "Body Text" )


                                                
                                                ### Snippet with action to be performed on tap
                                                Optionally, Snippet can also perform an action on tap, passing in the `onClick` closure argument:

swift BPKSnippet( image: Image("dialog_image", bundle: TestsBundle.bundle), onClick: { print("Do some action here") } ) ```