Content

Setting up

Refreshing Content

You will need to instruct Unflow when to refresh the content on the device. You achieve using the sync function from the SDK but be mindful of calling it too often as it requires a network request. It is common to call it when the app re-enters the foreground.

.onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in
    UnflowSDK.client.sync()
}

Next up learn about how users access Unflow content and where content lives, known as Openers and Spacers respectively. You can learn how to use both below.

Openers

The entry point for an Unflow screen.

Spaces

A collection of openers.