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

[ImageViewer/iOS] The function of sharing a picture ends with an infinite loop. #4970

Closed
issamux opened this issue Jun 14, 2024 · 0 comments · Fixed by #4973
Closed

[ImageViewer/iOS] The function of sharing a picture ends with an infinite loop. #4970

issamux opened this issue Jun 14, 2024 · 0 comments · Fixed by #4973
Assignees
Labels
bug Something isn't working examples Example applications ios

Comments

@issamux
Copy link
Contributor

issamux commented Jun 14, 2024

Describe the bug
compose-multiplatform: examples: ImageViewer: The function of sharing a picture in iOS ends with an infinite loop.

Affected platforms

  • compose-multiplatform: examples: ImageViewer : iOS

Affected code
iosMain/example.imageviewer.storage.FileExtensions.kt

suspend fun NSURL.readData(): NSData {
   while (true) {
    val data = NSData.dataWithContentsOfURL(this)
    if (data != null)
        return data
    yield()
}

}

Versions

  • Libraries:
    kotlin.version=2.0.0
    agp.version=8.0.2
    compose.version=1.6.10
    Xcode = 15.4
    Simulator = Iphone 15 pro

To Reproduce
Steps to reproduce the behavior:

  1. Open and Build iOS project
  2. Click on Picture
  3. Scroll down to Share Button
  4. Click Share Button.
  5. No Response no result ( see video)

Expected behavior
New Ui open to share selected picture

Screenshots/ Video

ios-imageviewer-share-button-bug-.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working examples Example applications ios
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants