-
Notifications
You must be signed in to change notification settings - Fork 106
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
Storyboard support #53
Comments
Hi, you can use a few different approaches to use Notepad with a Storyboard:
|
This doesn't seem to work. |
Thanks for letting me know, @rivera-ernesto. Are you getting any errors or just no result? |
No results. I've been fighting with it yesterday. Is seems that I've been trying to set the theme in |
Yeah, you're right: when you use Storyboards/Xibs, the I would hide the knowledge, tbh, and change public class Notepad: UITextView {
var storage: Storage = Storage()
public var theme: Theme {
get { return storage.theme }
set { storage.theme = newValue }
}
// ...
} That would be a more stable API that exposes theme configuration on the base object, while hiding knowledge about the implementation in Storage. |
@DivineDominion is correct, Looks like this is addressed in your PR #57. |
I was trying to "add" functionality to an existing That may be the same reason why |
I can't find one way using Notepad in storyboard.
The text was updated successfully, but these errors were encountered: