badoo / badoo/Chatto

Question: Error on layoutConstants

Open
#326 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.6k
Forks
588
PR merge metrics
No merged PRs in 30d

Description

I'm having problems when I embed the demoApp to my project, I use another view controller to present the DemoChatViewController, I'm having an error in layoutConstants when its calling calculateLayout, however it just crashes and presents no error since it said that ChattoAdditions is compiled with optimizations.

Note: I'm using SnapKit for constraints, is it related to that?

Contributor guide

Open the contributing guide

Research direction

Use DemoChatViewController and calculateLayout as entry points, then inspect layoutConstants and whether SnapKit constraints affect the call. Reproduce the crash in a non-optimized build and capture the actual failure; done means a confirmed cause and a verified fix or clear reproduction details.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.