{"action":"closed","issue":{"url":"https://api.github.com/repos/wistia/WistiaKit/issues/71","repository_url":"https://api.github.com/repos/wistia/WistiaKit","labels_url":"https://api.github.com/repos/wistia/WistiaKit/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/wistia/WistiaKit/issues/71/comments","events_url":"https://api.github.com/repos/wistia/WistiaKit/issues/71/events","html_url":"https://github.com/wistia/WistiaKit/issues/71","id":259433915,"number":71,"title":"Constraints break after embedded WistiaPlayerViewController exits full screen","user":{"login":"MrAlek","id":1496135,"avatar_url":"https://avatars3.githubusercontent.com/u/1496135?v=4","gravatar_id":"","url":"https://api.github.com/users/MrAlek","html_url":"https://github.com/MrAlek","followers_url":"https://api.github.com/users/MrAlek/followers","following_url":"https://api.github.com/users/MrAlek/following{/other_user}","gists_url":"https://api.github.com/users/MrAlek/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAlek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAlek/subscriptions","organizations_url":"https://api.github.com/users/MrAlek/orgs","repos_url":"https://api.github.com/users/MrAlek/repos","events_url":"https://api.github.com/users/MrAlek/events{/privacy}","received_events_url":"https://api.github.com/users/MrAlek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-21T09:34:08Z","updated_at":"2017-09-28T15:40:39Z","closed_at":"2017-09-28T15:40:39Z","author_association":"NONE","body":"Using WistiaKit 0.30.2\r\n\r\n# Steps to reproduce\r\n1. Embed `WistiaPlayerViewController` inside a view with the following setup:\r\n\r\n```\r\nlet vc = WistiaPlayerViewController(referrer: \"X\", requireHLS: true)\r\nvc.view.translatesAutoresizingMaskIntoConstraints = false\r\n\r\nsomeContainerView.addSubview(vc.view)\r\nvc.view.widthAnchor.constraint(equalTo: vc.view.heightAnchor, multiplier: 16.0/9.0).isActive = true\r\n\r\nlet margins = vc.view.superview.layoutMarginsGuide\r\nvc.view.topAnchor.constraint(equalTo: margins.topAnchor).isActive = true\r\nvc.view.leftAnchor.constraint(equalTo: margins.leftAnchor).isActive = true\r\nvc.view.rightAnchor.constraint(equalTo: margins.rightAnchor).isActive = true\r\nvc.view.bottomAnchor.constraint(equalTo: margins.bottomAnchor).isActive = true\r\n```\r\n\r\n2. Run app, enter full screen by tapping button in player, exit full screen.\r\n\r\n# Expected\r\n\r\nConstraints are just like before entering full screen.\r\n\r\n# Actual \r\n\r\nThe trailing margins constraint is removed, thus making the player view's position undefined.\r\n\r\n# Workaround\r\n\r\nRe-activate constraints in `WistiaPlayerViewControllerDelegate.didExitFullscreen(_:)`"}}
{"actor":{"display_login":"spinosa"}}