Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: Remove isViewDidLoad, rework iPad corner info and detail view #1041

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wutschel
Copy link
Collaborator

@wutschel wutschel commented Apr 11, 2024

Description

This PR does some refactoring to simplify the state machine and logic.

  • Remove the need to use ivar isViewDidLoad in DetailViewController. Now iPad corner info only requires layout for iPad by adding a fixed space programmatically instead of adding it to xib and removing it for iPhone.
  • Remove the need to use ivar isViewDidLoad in ShowInfoViewController. Now a check is done inside createInfo to only run the layout once.

Summary for release notes

Maintenance: Remove isViewDidLoad, rework iPad corner info and detail view

@wutschel wutschel changed the title Maintenance: Remove isViewDidLoad and rework iPad corner info Maintenance: Remove isViewDidLoad, rework iPad corner info and detail view Apr 13, 2024
@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from 40345cb to 29eeded Compare April 21, 2024 12:15
@wutschel
Copy link
Collaborator Author

Causes trouble with collection view as "last mode" for a view. In this case the layout is not correctly done.

@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from 83dd487 to e90d3e7 Compare May 18, 2024 09:03
@wutschel wutschel force-pushed the rework_isviewdidload branch 3 times, most recently from 79a96ab to bc0d5ed Compare June 17, 2024 07:01
@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from f2e4c61 to 04d4445 Compare June 24, 2024 07:43
@wutschel wutschel force-pushed the rework_isviewdidload branch 3 times, most recently from 982503e to 6952e5e Compare August 14, 2024 18:04
@wutschel wutschel force-pushed the rework_isviewdidload branch 3 times, most recently from 63a25c0 to 36b484b Compare September 18, 2024 19:05
@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from 899ce33 to 95bb89b Compare September 25, 2024 19:01
@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from 127a0f8 to 74dc128 Compare October 13, 2024 14:26
@wutschel wutschel marked this pull request as ready for review October 26, 2024 13:11
Copy link
Collaborator

@kambala-decapitator kambala-decapitator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine in general

XBMC Remote/DetailViewController.m Outdated Show resolved Hide resolved
XBMC Remote/ShowInfoViewController.m Show resolved Hide resolved
@wutschel
Copy link
Collaborator Author

Found a layout issue with this now, obviously was kept open for too long. Cannot merge and mark it as draft again.

@wutschel wutschel marked this pull request as draft October 27, 2024 10:50
@wutschel wutschel force-pushed the rework_isviewdidload branch 2 times, most recently from a81f1be to c88a131 Compare October 27, 2024 21:04
@wutschel wutschel marked this pull request as ready for review November 1, 2024 18:28
Now iPad corner info only requires layout for iPad by adding a fixed space programmatically instead of adding it to xib and removing it for iPhone.
- Use descriptive ivar name
- Simplify code inside condition check
- Add detailed comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants