This seems to only happen on iOS. Replacing let _: () = msg_send![obj, setMaximumNumberOfLines: num]; with let _: () = msg_send![obj, setNumberOfLines: num]; seems to resolve the issue on iOS and causes a crash on macOS.
With this pull commit using the feature flags, the label works as expected on iOS and macOS.
Upon calling
set_max_number_of_lines
on a Label it crashes an iOS application at runtime.Crash output:
This seems to only happen on iOS. Replacing
let _: () = msg_send![obj, setMaximumNumberOfLines: num];
withlet _: () = msg_send![obj, setNumberOfLines: num];
seems to resolve the issue on iOS and causes a crash on macOS. With this pull commit using the feature flags, the label works as expected on iOS and macOS.