PlistStyleStrategyBase

public class PlistStyleStrategyBase

Base class for PlistStyleStrategy which holds static PlistStyleStrategyInfo since classes with generics cannot hold stored static variables

  • Retrieves and stores plist into memory

    Remark

    For now, bundles are loaded into memory on set, they are not reloaded dynamically. To update PlistStyleStrategyInfo, call this function when/if plist is changed

    Declaration

    Swift

    public static func setPlist(forType type: StylePlistType, plistName name: String, bundle: Bundle = Bundle.main)

    Parameters

    bundle

    Bundle that contains plist. Defaults to Bundle.main