Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to render instance of RecordView #6

Open
benpixel opened this issue May 19, 2017 · 4 comments
Open

Failed to render instance of RecordView #6

benpixel opened this issue May 19, 2017 · 4 comments

Comments

@benpixel
Copy link

Hi guys!

I have installed KeyHolder via CocoaPods:

...
pod 'Magnet'
pod 'KeyHolder'

But there are some weird errors in Xcode:
screen shot 2017-05-19 at 13 02 27
screen shot 2017-05-19 at 13 02 18
screen shot 2017-05-19 at 13 01 53

What's especially confusing is this line:
screen shot 2017-05-19 at 13 04 34

What have I done wrong? :)

ps. is there an easy way to change components font size?

@Econa77
Copy link
Member

Econa77 commented May 23, 2017

@Benjam1n I could reproduce the problem that IBDesignable error. I will fix it. However, this error does not cause the application to crash.

Specifying com.clipy-app.KeyHolder is Carthage or special correspondence when manual installation.

Since the font size of the component depends on the height of the RecordView, it is not possible to change the font size.
Do you want to change the font size directly?

@benpixel
Copy link
Author

@Econa77 Yes, indeed it does not crash but it's still weird since in interface builder it shows for like 1s (as green button) and then disappears. So if you can fix it, it would be awesome. I mean this + magnet is like the best shortcut component for macOS. You guys already saved me a couple days of work. :)

About the font size, yeah I was thinking about how could I subclass it or something to make font size fixed and change the text, let's say when its focused and recording I want to just have "Recording..." and so on. Could you point me in some direction?

Thanks a lot!

@Econa77
Copy link
Member

Econa77 commented May 25, 2017

@Benjam1n Thanks :)
I checked the error of IBDesignable and found out that it is a link error of the framework using CocoaPods. ( ref: CocoaPods/CocoaPods#5334 )

The workaround is as follows, but the fundamental modification has to wait for modification of CocoaPods or Xcode.
CocoaPods/CocoaPods#5334 (comment)

In the current layout there is an arrangement of modifier keys, so changing the font size may be tough. However, I think that the display in the 「Recording...」 text is a good idea, so I will implement it.
In addition, I am trying to create a small view component (KeyHolder-mini) like ShortcutRecorder, so please wait implementation.

@jasonm23
Copy link

jasonm23 commented Apr 2, 2018

I also saw this error, the only reasonable workaround I can think of is to install KeyHolder as a git submodule until CocoaPods/CocoaPods#5334 (comment) is resolved

(FYI, I'm doing this and it works fine, just need to do a recursive submodule update to get the carthage checkout of Magnet.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants