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
On Swift side, the signature of +[YYTextLayout layoutWithContainer:text:] and +[YYTextLayout layoutWithContainers:text:] would both be YYTextLayout.layout(with:text:) automatically.
We need some manually NS_SWIFT_NAME to fix it.
Saying it, it is now will call the +[YYTextLayout layoutWithContainers:text:] API and we should workaround it by using YYTextLayout.layout(with:[container], text: text)[0].
But it will bring out to the issue 2
layoutWithContainers empty array issue
I'll always get an empty array for a valid input. Debugging the source code, it looks like YYTextLayout forgot to add layout into the layouts array.
On Swift side, the signature of
+[YYTextLayout layoutWithContainer:text:]
and+[YYTextLayout layoutWithContainers:text:]
would both beYYTextLayout.layout(with:text:)
automatically.We need some manually
NS_SWIFT_NAME
to fix it.Saying it, it is now will call the
+[YYTextLayout layoutWithContainers:text:]
API and we should workaround it by usingYYTextLayout.layout(with:[container], text: text)[0]
.But it will bring out to the issue 2
I'll always get an empty array for a valid input. Debugging the source code, it looks like YYTextLayout forgot to add
layout
into thelayouts
array.The text was updated successfully, but these errors were encountered: