-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add uikit to experimental/examples/imageviewer #2571
Conversation
dima-avdeev-jb
commented
Dec 22, 2022
•
edited
Loading
edited
- Add miniatures for big images. It speeds up launch.
- Move most of the Desktop and Android code to commonMain.
- Add UIKit target. For now, bitmap filters don't work for UIKIt.
…it-to-imageviewer
@@ -0,0 +1,7 @@ | |||
package example.imageviewer.model | |||
|
|||
const val BASE_URL = "https://raw.githubusercontent.com/JetBrains/compose-jb/master/artwork/imageviewerrepo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, If you want to run sample, change the url to:
"https://raw.githubusercontent.com/JetBrains/compose-jb/dima-avdeev/add-uikit-to-imageviewer/artwork/imageviewerrepo"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change colors of the new components, the rest of the PR is good.
val imageSize = IntSize(imageWithFilter.width, imageWithFilter.height) | ||
val scalableState = remember(imageSize) { mutableStateOf(ScalableState(imageSize)) } | ||
val visiblePartOfImage: IntRect = scalableState.value.visiblePart | ||
Slider( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Igor Demin <[email protected]>