Giter VIP home page Giter VIP logo

Comments (3)

OrlSan avatar OrlSan commented on May 18, 2024

I had a second view on the problem and I think the solution is actually add the init(frame:) initializer to the MSButton class. Maybe the second error I reported on this Issue was due to the build not being cleaned. What I just did is:

  • Take the demo project where the error is replicated https://github.com/OrlSan/officeuifabric-sb-demo
  • Clean the build on Xcode (Command + Shift + K) and close the project
  • Change the Podfile source to git to the fork I just did, pointing to the fix-ib-crash-msbutton branch:
    pod 'OfficeUIFabric', :git => 'https://github.com/OrlSan/ui-fabric-ios.git', :branch => 'fix-ib-crash-msbutton'
    This implementation is only adding the init(frame:) initializer. See: OrlSan@06193ae
  • Run pod update and open the project again.

After this the application is running as expected (just like before this changes) but the Interface Builder is not crashing and is actually showing the button with the expected MSButton style:

Captura de Pantalla 2019-05-22 a la(s) 19 46 53

I think this solution might work, so I'd be happy to know your opinion and maybe I can open a PR.

from ui-fabric-ios.

vladfilyakov avatar vladfilyakov commented on May 18, 2024

Hi Orlando

Thank you for reporting this issue and doing an investigation. Implementing init(frame:) might be a fix for it and then we will also have to convert init(style:) to a convenience initializer that should call a new init(frame:). You can create a PR for this change or we can fix it ourselves - you choice. Let me know what you decide.

Thanks,
Vlad

from ui-fabric-ios.

OrlSan avatar OrlSan commented on May 18, 2024

Hi Vlad.

I think I can implement the required init(frame:) and also the conversion for the init(style:) initializer. I'll work on this and then can open the PR.

Thank you!

from ui-fabric-ios.

Related Issues (10)

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.