localResources

Register local resources so paywalls can load bundled media by resource ID.

Purpose

localResources maps resource IDs to local resources so paywalls can request bundled media with swlocal://resource-id instead of downloading them from a remote URL. Values can be file URLs or UIImages from asset catalogs.

Signature

public var localResources: [String: AssetResource]

Schema

Prop

Type

Returns / State

This is a mutable property on SuperwallOptions. Set it before calling configure().

How is this guide?

On this page