Closed Narayane closed 1 year ago
Hey, thanks for the heads up. There is no error here - API for Alert
view supports arbitrary view types as its message
, not just Text
. You can see it in the tests.
ActionSheet
on the other hand doesn't offer API that accepts custom views, and its message
is always Text
.
InspectableView<ViewType.ClassifiedView>
still allows you to access Text
, if that's the view type stored in the Alert
, you just need to unwrap it: alert.message().text()
Perfect, thanks !
Hi,
I think there is a mistake in
InspectableView
extension whereView
is anAlert
. I can not get the string value of this attribute because returned type is notViewType.Text
butViewType.ClassifiedView
.I can do this with an
ActionSheet
so I guess is really a mistake.