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

How do we use @IBDesinable to extend certain view controllers? #165

Open
rlam3 opened this issue Dec 17, 2016 · 0 comments
Open

How do we use @IBDesinable to extend certain view controllers? #165

rlam3 opened this issue Dec 17, 2016 · 0 comments

Comments

@rlam3
Copy link

rlam3 commented Dec 17, 2016

I'm trying to extend the OnboardingContentViewController to later be controlled via the storyboard. Is there a way to do this?

I'm trying to do this because I want to rearrange the order of the icons after the title etc...Or is there another way around this? Thanks!

Or is there a way to preview the onboardingcontentviews in a storyboard without having the run/build the project? Thanks!

extension OnboardingContentViewController {
    
    @IBInspectable var iconWidth: CGFloat{
        get{
            return iconWidth
        }
        set(newWidth){
            iconWidth = newWidth
        }
    }
    
}

Reference:
http://nshipster.com/ibinspectable-ibdesignable/

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

1 participant