GithubHelp home page GithubHelp logo

Comments (12)

timelessg avatar timelessg commented on July 28, 2024 2

you can try doing it,but don't have close button for the moment.i will support it on the next commit

        let vc = TLStoryViewController()
        self.present(vc, animated: true) {
            vc.resumeCamera(open: true)
        }

from tlstorycamera.

chinhndse03483 avatar chinhndse03483 commented on July 28, 2024

Thanks, I will try ๐Ÿ‘

from tlstorycamera.

chinhndse03483 avatar chinhndse03483 commented on July 28, 2024

"Value of type 'TLStoryViewController' has no member 'resumeCamera'"
I try to add your code, but error.

from tlstorycamera.

GitMAM avatar GitMAM commented on July 28, 2024

Hi there, Is the cancel button is not supported yet :) would you be able to do soon? Thank you @timelessg

from tlstorycamera.

timelessg avatar timelessg commented on July 28, 2024

Iโ€™m sorry, i canโ€™t understand cancelButton what you say.could you give me more tip about this? and you can try doing something on storyViewClose() after tap closeButton @GitMAM

from tlstorycamera.

GitMAM avatar GitMAM commented on July 28, 2024

ah okay i got it thanks :)

from tlstorycamera.

GitMAM avatar GitMAM commented on July 28, 2024

when i try to launch the camera from a button with this : let vc = TLStoryViewController()
self.present(vc, animated: true) {
vc.resumeCamera(open: true)
}

it takes 2 seconds for it to launch? is that normal?

from tlstorycamera.

timelessg avatar timelessg commented on July 28, 2024

cameraStart() is a time-consuming operation.I suggest you keep an instance of the TLStoryViewController,like demo.@GitMAM

from tlstorycamera.

wanglouin1990925 avatar wanglouin1990925 commented on July 28, 2024

Hello This opensource is great. I am using TLStoryCamera on my app btw it is taking about 2 seconds to launch camera.
Is there any way to speed up for it?

from tlstorycamera.

wanglouin1990925 avatar wanglouin1990925 commented on July 28, 2024

as you mentioned above, in case i save instance of TLStoryViewController as Globally while app opening then it will not occur memory issue?

from tlstorycamera.

timelessg avatar timelessg commented on July 28, 2024

@wanglouin1990925 thanks for your issue, and you can try this code,but the singleton will use 20MB memory

class share {
        static let sharedInstance = TLStoryViewController()
    }

I haven't thought of a better way now,if you have any idea,please tell me

from tlstorycamera.

wanglouin1990925 avatar wanglouin1990925 commented on July 28, 2024

yeah I think usage of singleton is good way for now. I will let you know if i find out better way
Thanks

from tlstorycamera.

Related Issues (20)

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.