Comments (3)
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 theinit(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:
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.
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.
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)
- ERROR ITMS-90535: "Unexpected CFBundleExecutable Key HOT 5
- Roadmap HOT 1
- [Question] MSPopupMenuItem always shows checkmark on press HOT 5
- Keyboard covers up MSDrawer content
- Swift Packages HOT 1
- Constants equal Macros
- [Question] Are you guys open to adding screenshots of the elements in the demo to the readme page? HOT 1
- Binary size increase question HOT 1
- UI-Fabric for macOS? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-fabric-ios.