You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Fastis is added to an application via SPM it crashes after opening the calendar view.
In FastisConfig.CurrentValueView there is a definition of an image:
public var clearButtonImage: UIImage = UIImage(named: "icon_clear")!
This line will crash after opening the calendar view since in UIImage + BundleInit.swift extension, bundle is accessed in an incorrect way. For example, if an application MyApp links Fastis via SPM this extension, this extension will attempt to check if there is an image named "icon_clear" in the MyApp bundle, not in Fastis package.
After some research I have found that most likely instead of using Bundle(for: BundleId.self), Bundle.module should be used. It is suggested in Apple Documentation and in this StackOverflow post and also in this thread.
The text was updated successfully, but these errors were encountered:
If Fastis is added to an application via SPM it crashes after opening the calendar view.
In
FastisConfig.CurrentValueView
there is a definition of an image:This line will crash after opening the calendar view since in
UIImage + BundleInit.swift
extension, bundle is accessed in an incorrect way. For example, if an application MyApp links Fastis via SPM this extension, this extension will attempt to check if there is an image named"icon_clear"
in the MyApp bundle, not in Fastis package.After some research I have found that most likely instead of using
Bundle(for: BundleId.self)
,Bundle.module
should be used. It is suggested in Apple Documentation and in this StackOverflow post and also in this thread.The text was updated successfully, but these errors were encountered: