{"action":"opened","issue":{"url":"https://api.github.com/repos/huri000/SwiftEntryKit/issues/143","repository_url":"https://api.github.com/repos/huri000/SwiftEntryKit","labels_url":"https://api.github.com/repos/huri000/SwiftEntryKit/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/huri000/SwiftEntryKit/issues/143/comments","events_url":"https://api.github.com/repos/huri000/SwiftEntryKit/issues/143/events","html_url":"https://github.com/huri000/SwiftEntryKit/issues/143","id":393168073,"node_id":"MDU6SXNzdWUzOTMxNjgwNzM=","number":143,"title":"Orientation incorrect when set to .portraitUpsideDown on iPhone","user":{"login":"cerupcat","id":204151,"node_id":"MDQ6VXNlcjIwNDE1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/204151?v=4","gravatar_id":"","url":"https://api.github.com/users/cerupcat","html_url":"https://github.com/cerupcat","followers_url":"https://api.github.com/users/cerupcat/followers","following_url":"https://api.github.com/users/cerupcat/following{/other_user}","gists_url":"https://api.github.com/users/cerupcat/gists{/gist_id}","starred_url":"https://api.github.com/users/cerupcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerupcat/subscriptions","organizations_url":"https://api.github.com/users/cerupcat/orgs","repos_url":"https://api.github.com/users/cerupcat/repos","events_url":"https://api.github.com/users/cerupcat/events{/privacy}","received_events_url":"https://api.github.com/users/cerupcat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-20T18:47:15Z","updated_at":"2018-12-20T18:47:15Z","closed_at":null,"author_association":"NONE","body":"I have an iPhone app that supports UIInterfaceOrientationMask.portrait and UIInterfaceOrientationMask.portraitUpsideDown (no landscape. When orientation is .portraitUpsideDown and present a SwiftEntryKit, it is displayed upside down (as if the phone was in portrait and not upside down). I've tried setting the `isRotationEnabled` to false, but it still occurs. My guess is the SwiftEntryKit `EKRootViewController` needs to have the `supportedInterfaceOrientations` set on it so it knows what orientations to support, but it doesn't appear its possible to extend the `EKRootViewController` in order to do so.\r\n\r\nHere's the code I'm using:\r\n\r\n` // Generate top floating entry and set some properties\r\nvar attributes = EKAttributes.centerFloat\r\n\r\n    attributes.entryBackground = .color(color: backgroundColor)\r\n    attributes.shadow = .active(with: .init(color: .black, opacity: 0.3, radius: 10, offset: .zero))\r\n    attributes.entranceAnimation = .init(scale: .init(from: 0.9, to: 1, duration: 0.4, spring: .init(damping: 1, initialVelocity: 0)), fade: .init(from: 0, to: 1, duration: 0.3))\r\n    attributes.exitAnimation = .init(fade: .init(from: 1, to: 0, duration: 0.2))\r\n    attributes.positionConstraints.maxSize = .init(width: .constant(value: UIScreen.main.bounds.width), height: .intrinsic)\r\n    attributes.positionConstraints.isRotationEnabled = false\r\n\r\n    let title = EKProperty.LabelContent(text: text, style: .init(font: UIFont.systemFont(ofSize: 16, weight: .regular), color: textColor, alignment: .center))\r\n    let description = EKProperty.LabelContent(text: detailText, style: .init(font: UIFont.systemFont(ofSize: 14, weight: .bold), color: textColor, alignment: .center))\r\n\r\n    let simpleMessage: EKSimpleMessage\r\n    if let image = image {\r\n        let image = EKProperty.ImageContent(image: image, size: CGSize(width: 35, height: 35))\r\n        simpleMessage = EKSimpleMessage(image: image, title: title, description: description)\r\n    } else {\r\n        simpleMessage = EKSimpleMessage(image: nil, title: title, description: description)\r\n    }\r\n\r\n    let notificationMessage = EKNotificationMessage(simpleMessage: simpleMessage)\r\n\r\n    let contentView = EKNotificationMessageView(with: notificationMessage)\r\n\r\n    SwiftEntryKit.display(entry: contentView, using: attributes)\r\n\r\n\r\n![simulator screen shot - iphone 6 plus - 2018-12-18 at 11 23 24](https://user-images.githubusercontent.com/204151/50304174-13eb8480-0444-11e9-85be-677eb9056840.png)\r\n"}}
{"actor":{"display_login":"cerupcat"}}