{"action":"created","issue":{"url":"https://api.github.com/repos/mamaral/Onboard/issues/65","labels_url":"https://api.github.com/repos/mamaral/Onboard/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/mamaral/Onboard/issues/65/comments","events_url":"https://api.github.com/repos/mamaral/Onboard/issues/65/events","html_url":"https://github.com/mamaral/Onboard/issues/65","id":97353062,"number":65,"title":"Font sizes not \"sticking\"","user":{"login":"SteveNewhouse","id":1760211,"avatar_url":"https://avatars.githubusercontent.com/u/1760211?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveNewhouse","html_url":"https://github.com/SteveNewhouse","followers_url":"https://api.github.com/users/SteveNewhouse/followers","following_url":"https://api.github.com/users/SteveNewhouse/following{/other_user}","gists_url":"https://api.github.com/users/SteveNewhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveNewhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveNewhouse/subscriptions","organizations_url":"https://api.github.com/users/SteveNewhouse/orgs","repos_url":"https://api.github.com/users/SteveNewhouse/repos","events_url":"https://api.github.com/users/SteveNewhouse/events{/privacy}","received_events_url":"https://api.github.com/users/SteveNewhouse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mamaral/Onboard/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-26T21:51:06Z","updated_at":"2015-07-27T00:12:59Z","closed_at":"2015-07-27T00:12:59Z","body":"Hello.\r\n\r\nI'm trying to get a tutorial working in Swift.  I'm very close, however it does not seem to retain the global font name and size settings I'm providing.  The default font and font size are what is being shown.  In debugger I can see that the setters are being called in the OnboardingContentViewController classes, but it still isn't looking right and view debugger shows defaults.\r\n\r\nAny ideas?\r\n\r\n```swift\r\nclass func generateOnboardingViewController(completion: () -> ()) -> OnboardingViewController {\t\t\r\n\t\tvar pages = [OnboardingContentViewController]()\r\n\r\n\t\tpages.append(\r\n\t\t\tOnboardingContentViewController(\r\n\t\t\ttitle: \"Welcome!\",\r\n\t\t\tbody: \"test test test test\",\r\n\t\t\timage: UIImage(named: \"sj-logo\"),\r\n\t\t\tbuttonText: nil) {\r\n\t\t})\r\n\t\t\r\n\t\tpages.append(OnboardingContentViewController(\r\n\t\t\ttitle: \"Page 2\",\r\n\t\t\tbody: \"test test test test\",\r\n\t\t\timage: UIImage(named:\"onboarding_2\"),\r\n\t\t\tbuttonText: \"OK - Let's Play\") {\r\n\t\t\t\tNSUserDefaults.standardUserDefaults().setBool(true, forKey: self.kUserHasOnboarded)\r\n\t\t\t\tcompletion()\r\n\t\t})\r\n\t\t\t\t\r\n\t\t// Kill NUI style stuff here... this appears to be only way to do so...\r\n\t\tfor vc: OnboardingContentViewController in pages {\r\n\t\t\tfor view: UIView in vc.view.subviews as! [UIView] {\r\n\t\t\t\tview.nuiClass = \"none\"\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Create the onboarding controller with the pages and return it.\r\n\t\tlet onboardingVC: OnboardingViewController = OnboardingViewController(\r\n\t\t\tbackgroundImage: UIImage(named: \"Gradient\"),\r\n\t\t\tcontents: pages\r\n\t\t)\r\n\t\t\r\n\t\tonboardingVC.fontName = \"AvenirNext-Regular\"\r\n\t\tonboardingVC.shouldMaskBackground = false\r\n\t\tonboardingVC.titleTextColor = UIColor.whiteColor()\r\n\t\tonboardingVC.bodyTextColor = UIColor.whiteColor()\r\n\t\tonboardingVC.titleFontSize = 20\r\n\t\tonboardingVC.bodyFontSize = 13\r\n\t\tonboardingVC.underIconPadding = 10\r\n\t\tonboardingVC.underTitlePadding = 15\r\n\t\tonboardingVC.bottomPadding = 20\r\n\t\t\r\n\t\treturn onboardingVC\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/mamaral/Onboard/issues/comments/125051061","html_url":"https://github.com/mamaral/Onboard/issues/65#issuecomment-125051061","issue_url":"https://api.github.com/repos/mamaral/Onboard/issues/65","id":125051061,"user":{"login":"SteveNewhouse","id":1760211,"avatar_url":"https://avatars.githubusercontent.com/u/1760211?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveNewhouse","html_url":"https://github.com/SteveNewhouse","followers_url":"https://api.github.com/users/SteveNewhouse/followers","following_url":"https://api.github.com/users/SteveNewhouse/following{/other_user}","gists_url":"https://api.github.com/users/SteveNewhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveNewhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveNewhouse/subscriptions","organizations_url":"https://api.github.com/users/SteveNewhouse/orgs","repos_url":"https://api.github.com/users/SteveNewhouse/repos","events_url":"https://api.github.com/users/SteveNewhouse/events{/privacy}","received_events_url":"https://api.github.com/users/SteveNewhouse/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T00:12:59Z","updated_at":"2015-07-27T00:12:59Z","body":"Problem solved.  It appears the \"Kill NUI\" loop was causing generateView to be called prior to the convenience font size setters, so the default was used."}}