Closed asadkazmi-mset closed 3 months ago
Hi @asadkazmi-mset, the useWebView
property should live inside the ClickAction enum property of that Braze.ContentCard
. So you can access it like this:
if case let .url(url, useWebView) = contentCard.clickAction {
print(useWebView)
}
Thank you @jerielng
No problem @asadkazmi-mset! I'll close out this issue now, but feel free to reach back out if you have any additional questions. Thanks!
Platform
iOS
Platform Version
17.2
Braze SDK Version
7.7.0
Xcode Version
15.2
Computer Processor
Apple (M1)
Repro Rate
100%
Steps To Reproduce
Example:
Expected Behavior
this must suggest to use of alternate variables instead of this
Actual Incorrect Behavior
It is not suggesting the alternate variable, and when I jump to SDK code there are no any webview related variable there in the
Braze.ContentCard
But I can see the alternate of"openWebView"
in Braze.NewsFeed that is"useWebView"
, so there should be something forBraze.ContentCard
Verbose Logs
No response
Additional Information
This is the error when I'm trying to access the
"openUrlInWebView"
in the case of content cardBut able to see the alternat of
"openUrlInWebView"
in the case of NewsFeed that is"useWebView"
Please suggest me the alternate of openURLInWebView (Bool) for content card.
Thanks.