localResources

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

Available in iOS SDK 4.13.0+.

Purpose

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

Signature

public var localResources: [String: URL]

Schema

Prop

Type

Returns / State

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

How is this guide?

On this page