GithubHelp home page GithubHelp logo

crelies / remoteimage Goto Github PK

View Code? Open in Web Editor NEW
79.0 3.0 15.0 341 KB

Swift package for a SwiftUI remote image view

License: MIT License

Swift 100.00%
swiftui-components swiftui-example swift-ui ios swift-package swift remoteimage-swiftui macos mac-os catalyst

remoteimage's Introduction

Hi there, I'm Christian πŸ‘‹

Buy me a β˜• coffee if you want to support me 😎

remoteimage's People

Contributors

celies-e avatar nmandica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

remoteimage's Issues

Exposing fetchImage to prefetch image

Hi,
My app need to prefetch image and store it in cache.
After that we display the image later.

I tried to

let url:String = "https://..../image.jpg"
let imageType = RemoteImageType.url(URL(string: url)!)
let service = RemoteImageServiceFactory.makeRemoteImageService()
service.fetchImage(ofType: imageType)

But xCode notice me:

'fetchImage' is inaccessible due to 'internal' protection level

Can we expose the fetchImage func without leading to any issue?

Message from debugger: Terminated due to memory issue

Version 2.0.3

So I am using your image plugin to load JSON images from a number of URLs all at the same time. It seems your plugin might not like that.

Because it might also not be your plugin causing this issue I have uploaded the latest copy of the app to GitHub if you could take a look and let me know if I need to do some memory cleaning that would be great.

The issue only seems to happen when changing views after clicking on images.
You will also notice that for some reason the Main View seems to reload the images - that causes it to crash too.

Also each image is 3000x3000 (min for Apple iTunes Podcast directory)

Screen Shot 2020-08-24 at 3 19 54 pm

Update

So I am still getting memory leaks, however I coded a small script to resize the images to the size the images are in the app (100x100) The app has not crashed, however still got the warnings.

https://github.com/redimongo/Radio-Podcast-SwiftUI-app

Termination due to memory usage issue

Hey there!

Using RemoteImage in a project of mine in which I'm using the ListΒ view and RemoteImage together and getting Message from debugger: Terminated due to memory issue.

Do you have any suggestion on how to mitigate this issue?

Thanks!

Doesn't load the image when in a Button

Screen Shot 2019-09-23 at 3 43 26 PM

I've got an image in a button I'm trying to present to my users (their avatar). I want it to be in a button (specifically the navigation bar items, like in the App Store, but this bug applies to all buttons), but the image doesn't seem to load while in a button. It works absolutely as-expected when outside of a button.

Any ideas? I'm still pretty new to SwiftUI, and I can't seem to work it out.

Would you consider an open source license for the package?

I'm working on an app for the norwegian java user group. It has so far 4 dependencies via swift package manager - 3 have MIT license and RemoteImage I can't see what licence if any applies.

Wondering if you'd consider adding an open source license? Personal preference for me (as it would fit with both the other dependencies and also with other things we do in the group) would be MIT - but of course that would be your choice :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.