Some crash reports indicate that we sometimes crash when setting the preview constraint. The only way to reproduce this is using non-finite values, e.g. CGFloat.nan. Therefore we make sure that we got a finite value for the preview size, which hopefully fixes the crashes.
Some crash reports indicate that we sometimes crash when setting the preview constraint. The only way to reproduce this is using non-finite values, e.g.
CGFloat.nan
. Therefore we make sure that we got a finite value for the preview size, which hopefully fixes the crashes.