{"action":"created","issue":{"url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/73","labels_url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/73/comments","events_url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/73/events","html_url":"https://github.com/sberrevoets/SDCAlertView/issues/73","id":53406586,"number":73,"title":"is SDCAlertViewWidth still useful when using SDCAlertController?","user":{"login":"skydivedan","id":217969,"avatar_url":"https://avatars.githubusercontent.com/u/217969?v=3","gravatar_id":"","url":"https://api.github.com/users/skydivedan","html_url":"https://github.com/skydivedan","followers_url":"https://api.github.com/users/skydivedan/followers","following_url":"https://api.github.com/users/skydivedan/following{/other_user}","gists_url":"https://api.github.com/users/skydivedan/gists{/gist_id}","starred_url":"https://api.github.com/users/skydivedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skydivedan/subscriptions","organizations_url":"https://api.github.com/users/skydivedan/orgs","repos_url":"https://api.github.com/users/skydivedan/repos","events_url":"https://api.github.com/users/skydivedan/events{/privacy}","received_events_url":"https://api.github.com/users/skydivedan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T15:23:08Z","updated_at":"2015-01-05T17:34:34Z","closed_at":"2015-01-05T17:34:34Z","body":"(I posted this question on StackOverflow awhile back, sorry to duplicate)\r\n\r\nI've been using SDCAlertView, and am very happy with it.\r\n\r\nI recently updated to the latest version, which now has SDCAlertController.\r\n\r\nIn the old way, I need to add some extra views onscreen, but one of them was an extra UILabel. I would create it with a frame that had the width as \"SDCAlertViewWidth\" minus about 20 points (10 pt margin on each side). This was a UILabel that could have as many lines as needed (0 lines), and I would call \"sizeToFit\" to force it to resize itself.\r\n\r\n\"SDCAlertViewWidth\" isn't available in SDCAlertController. What is the best way to do this (add in new view), under the new way of doing things?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/comments/68743744","html_url":"https://github.com/sberrevoets/SDCAlertView/issues/73#issuecomment-68743744","issue_url":"https://api.github.com/repos/sberrevoets/SDCAlertView/issues/73","id":68743744,"user":{"login":"sberrevoets","id":3839052,"avatar_url":"https://avatars.githubusercontent.com/u/3839052?v=3","gravatar_id":"","url":"https://api.github.com/users/sberrevoets","html_url":"https://github.com/sberrevoets","followers_url":"https://api.github.com/users/sberrevoets/followers","following_url":"https://api.github.com/users/sberrevoets/following{/other_user}","gists_url":"https://api.github.com/users/sberrevoets/gists{/gist_id}","starred_url":"https://api.github.com/users/sberrevoets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sberrevoets/subscriptions","organizations_url":"https://api.github.com/users/sberrevoets/orgs","repos_url":"https://api.github.com/users/sberrevoets/repos","events_url":"https://api.github.com/users/sberrevoets/events{/privacy}","received_events_url":"https://api.github.com/users/sberrevoets/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T17:34:34Z","updated_at":"2015-01-05T17:34:34Z","body":"Sorry, I usually keep pretty good track of anything that pops up on SO, but the holidays tend to mess with that.\r\n\r\n`SDCAlertViewWidth` is not something you need anymore. `SDCAlertController` instances have a `visualStyle` property, which has to conform to `SDCAlertControllerVisualStyle`. This protocol has a mandatory `width` property that you can use to get the width of an alert.\r\n\r\nHope this helps! I'll close this, but feel free to reopen if this doesn't answer your question."}}