User can use constructors that pass URL when initializing a Template object. This constructor can generate a Template object from a string that exists not only locally, but also server-side.
Since this constructor calls NSString(contentsOf:encoding) internally, it could block the calling thread if the given URL is remote.
This change adds a constructor for a Template object that can be called in async for iOS 15 and above. This constructor allows remote resources to be used without blocking the calling thread.
User can use constructors that pass
URL
when initializing aTemplate
object. This constructor can generate aTemplate
object from a string that exists not only locally, but also server-side.Since this constructor calls
NSString(contentsOf:encoding)
internally, it could block the calling thread if the given URL is remote.This change adds a constructor for a
Template
object that can be called in async for iOS 15 and above. This constructor allows remote resources to be used without blocking the calling thread.