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

Library refactor #28

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

Library refactor #28

wants to merge 4 commits into from

Conversation

skjiisa
Copy link
Contributor

@skjiisa skjiisa commented Mar 31, 2021

This pulls the different parts of the app out into their own files to reduce redundancy and to make it easier to add features in the future.

ImageViewer no longer depends on URLImage as it did not use it. ImageViewerRemote now depends on ImageViewer to reduce redundant code.

The image viewers now take details objects (ImageDetails and ImageDetailsRemote) to load images. This is to make it easier to implement a gallery mode in the future where each image can have its own unique caption and aspect ratio.

Many properties that were previously Binding or State properties were changed to be standard properties as there was no functional benefit to having their property wrapper.

These changes change the code interface and thus this pull request is not compatible with 2.0, so it would need to be made into a new major version.

@skjiisa
Copy link
Contributor Author

skjiisa commented Mar 31, 2021

This has some major changes in it that I made unprompted, so feel free to make further adjustments if it's something you'd want to move forward with. The readme would also need to be rewritten which I could help with if you wanted.

@Jake-Short Jake-Short assigned Jake-Short and unassigned Jake-Short Mar 31, 2021
@Jake-Short Jake-Short added the enhancement New feature or request label Mar 31, 2021
@Jake-Short
Copy link
Owner

Thank you for all of your work on this! This is all looking great so far. It will probably take me some time to go through all of the changes and everything before merging.

@Jake-Short Jake-Short added this to the v3.0.0 milestone Mar 31, 2021
@skjiisa
Copy link
Contributor Author

skjiisa commented Apr 1, 2021

I just realized ImageDetailsRemote could be moved to a file in the remote target so it isn't included in the regular image viewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants