Skip to content

Conversation

@MarcHidalgo5
Copy link
Contributor

No description provided.

Refactor PhotoView to add Android support and apply platform-specific
layouts. Introduce `applyPhotoLayout` to handle conditional layout
logic for different platforms. Create `iosPhotoView` and `androidPhotoView`
functions to streamline image loading methods dependent on the OS.
These changes enable better flexibility and performance on both
iOS and Android, ensuring a consistent user experience across
platforms.
Indent preprocessor directives inside ViewBuilder functions
to improve code readability. This change ensures consistent
indenting across platform-specific View implementations
and maintains uniformity in formatting. This refactoring
does not alter any functionality but enhances maintainability.
Change the function name from `iosPhotoView` to `iOSPhotoView` to
maintain consistency with Swift naming conventions and improve code
readability. This change ensures that the case of 'iOS' follows
standard practices, reflecting platform-specific coding style.
@MarcHidalgo5 MarcHidalgo5 changed the title Improve PhotoView for android Improve PhotoView for Android Jan 22, 2026
Update the `skip` package dependency to version 1.7.0 for
additional features and improvements. Refactor the
`PhotoView.swift` file to remove platform-specific
function implementations (`iOSPhotoView` and
`androidPhotoView`), consolidating loading logic.
Enhance the use of AsyncImage for Android and streamline
the aspect ratio application by removing the
`applyPhotoLayout` extension method in favor of directly
using `.aspectRatio`.
@MarcHidalgo5 MarcHidalgo5 merged commit 7fe1c4a into develop Jan 26, 2026
3 checks passed
@MarcHidalgo5 MarcHidalgo5 deleted the improve-for-android branch January 26, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants