Frame setters don't work right on iPad modal views
- Dominant language
- HTML
- Stars
- 305
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
I've got a view that I'm applying this style to:
``` ruby
def container(st)
st.frame = {
l: 10,
fr: 10,
h: 320,
}
st.background_color = color.green
end
end
```
When I run it in a fullscreen modal on iPhone, it works great. But when I run it as a `UIModalPresentationFormSheet` modal on iPad it doesn't calculate the parent view size correctly and things get all wonky. I tried rotating the device to get it to reapply the styles, but to no avail.

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the container(st) method and its st.frame assignment, then reproduce the fullscreen iPhone and UIModalPresentationFormSheet iPad cases described in the report. Done means frame setters calculate the parent view size correctly for the iPad modal instead of producing the reported layout errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, ruby
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100