Code Monkey home page Code Monkey logo

Comments (3)

johnno1962 avatar johnno1962 commented on June 1, 2024

Hi, are you using .eraseToAnyView() on all View properties?

from hotreloading.

clementprem avatar clementprem commented on June 1, 2024

Hey yes, I used to work for some time, after I started adding complicated structures to the view it started to crash. I am closing this for now, because I am unable to test this beginning of the week.

from hotreloading.

johnno1962 avatar johnno1962 commented on June 1, 2024

This seems strange to me and I'm interested in perusing this further to see what the problem is. I've never had an injection of SwiftUI fail for a reason I didn't eventually work out what the problem was. Are you adding .eraseToAnyView to everything that returns "some View"? The Opaque type changeing due to adding an element this is the only thing I can think of that would cause a crash. Or perhaps you added new properties to a struct though this should have given you a warning. If you have the time I'd like to teamview this to get to the bottom of it!

from hotreloading.

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.