usbong / UsbongKit

A framework for reading and displaying contents of Usbong Trees
www.usbong.ph
Apache License 2.0
2 stars 1 forks source link

Customize default background image #6

Open chrisamanse opened 7 years ago

chrisamanse commented 7 years ago

Change default background image if no image provided in utree file. Also default background image is visible while loading the utree. This noticeable especially when the utree file is large because it takes a longer time to decompress the utree and the background image can't be accessed when decompressing is not yet finished.

Initiated by usbong/LIKHA-Guide#11 (@masarapmabuhay).

chrisamanse commented 7 years ago

Possible resolution, create API such that:


let usbongViewer = UsbongViewer(url: treeURL)

usbongViewer.bundles = [] // Pass in In-App Purchase bundles
usbongViewer.defaultBackgroundImage = myImage

usbongViewer.present(on: self) // Present utree on top of current view controller