Giter Club home page Giter Club logo

orbit-camera's People

Contributors

lidatheod avatar tobyspark avatar

Watchers

 avatar  avatar  avatar

Forkers

orbit-a11y

orbit-camera's Issues

Duplicate elements of type 'WeakRef<PreviewMetalView>' were found in a Set

Uh-oh. After flawless operation for weeks, this –

Fatal error: Duplicate elements of type 'WeakRef<PreviewMetalView>' were found in a Set.
This usually means either that the type violates Hashable's requirements, or
that members of such a set were mutated after insertion.
class Camera {
    /// Attach a preview view to this camera. Holds a weak reference.
    /// This previews the video coming from the device. A `PreviewMetalView` will fill the view's frame while maintaining the aspect ratio.
    /// As currently set, the frames sent to the preview are 1920x1080. The view renders this onto whatever the size frame is, for a square frame this will visually match the 1080x1080 recorded output.
    func attachPreview(to view: PreviewMetalView) {
        #if !targetEnvironment(simulator)
        videoDataDelegate.queue.async {
            view.rotation = .rotate180Degrees
            // Holding a weak ref should allow 'detach' of the views.
            let result = self.previewViews.insert(WeakRef(object: view))
            if result.inserted {
                os_log("Camera adding preview", type: .debug)
            }
        }
        start()
        #endif
    }

Thing scene: video kind popover dismissal in voiceover

You can dismiss the popover using voiceover as per sighted method, i.e. select elsewhere and action. However this isn’t obvious as a) that we’re in a modal popover is not advertised and b) the popover has some kind of accessibility action that is doing nothing, but should dismiss the popover (the selection is implicit).

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.