{"action":"created","issue":{"url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/8","repository_url":"https://api.github.com/repos/jriosdev/iOSDropDown","labels_url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/8/comments","events_url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/8/events","html_url":"https://github.com/jriosdev/iOSDropDown/issues/8","id":357910770,"node_id":"MDU6SXNzdWUzNTc5MTA3NzA=","number":8,"title":"Drop Down Arrow not visible","user":{"login":"ravivlb","id":3625118,"node_id":"MDQ6VXNlcjM2MjUxMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/3625118?v=4","gravatar_id":"","url":"https://api.github.com/users/ravivlb","html_url":"https://github.com/ravivlb","followers_url":"https://api.github.com/users/ravivlb/followers","following_url":"https://api.github.com/users/ravivlb/following{/other_user}","gists_url":"https://api.github.com/users/ravivlb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivlb/subscriptions","organizations_url":"https://api.github.com/users/ravivlb/orgs","repos_url":"https://api.github.com/users/ravivlb/repos","events_url":"https://api.github.com/users/ravivlb/events{/privacy}","received_events_url":"https://api.github.com/users/ravivlb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-07T03:56:31Z","updated_at":"2018-09-25T22:41:45Z","closed_at":null,"author_association":"NONE","body":"#4 \r\n\r\nI am still facing issue in iOS 12. \r\n\r\nCan you share way to show arrow in 12."},"comment":{"url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/comments/424525876","html_url":"https://github.com/jriosdev/iOSDropDown/issues/8#issuecomment-424525876","issue_url":"https://api.github.com/repos/jriosdev/iOSDropDown/issues/8","id":424525876,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDUyNTg3Ng==","user":{"login":"tmrbaset","id":7121373,"node_id":"MDQ6VXNlcjcxMjEzNzM=","avatar_url":"https://avatars3.githubusercontent.com/u/7121373?v=4","gravatar_id":"","url":"https://api.github.com/users/tmrbaset","html_url":"https://github.com/tmrbaset","followers_url":"https://api.github.com/users/tmrbaset/followers","following_url":"https://api.github.com/users/tmrbaset/following{/other_user}","gists_url":"https://api.github.com/users/tmrbaset/gists{/gist_id}","starred_url":"https://api.github.com/users/tmrbaset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmrbaset/subscriptions","organizations_url":"https://api.github.com/users/tmrbaset/orgs","repos_url":"https://api.github.com/users/tmrbaset/repos","events_url":"https://api.github.com/users/tmrbaset/events{/privacy}","received_events_url":"https://api.github.com/users/tmrbaset/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T22:41:45Z","updated_at":"2018-09-25T22:41:45Z","author_association":"NONE","body":"You need to change the self.layer.mask method and better make it self.layer.addSublayer in the Arrow draw function\r\n\r\n\r\n```\r\noverride func draw(_ rect: CGRect) {\r\n        \r\n        // Get size\r\n        let size = self.layer.frame.width\r\n        \r\n        // Create path\r\n        let bezierPath = UIBezierPath()\r\n        \r\n        // Draw points\r\n        let qSize = size/4\r\n        \r\n        bezierPath.move(to: CGPoint(x: 0, y: qSize))\r\n        bezierPath.addLine(to: CGPoint(x: size, y: qSize))\r\n        bezierPath.addLine(to: CGPoint(x: size/2, y: qSize*3))\r\n        bezierPath.addLine(to: CGPoint(x: 0, y: qSize))\r\n        bezierPath.close()\r\n        \r\n        // Mask to path\r\n        let shapeLayer = CAShapeLayer()\r\n        shapeLayer.path = bezierPath.cgPath\r\n\r\n       // Add a color, can be added as property\r\n       shapeLayer.fillColor = UIColor.white.cgColor\r\n\r\n     // Make the change here\r\n     self.layer.addSublayer (shapeLayer)\r\n\r\n\r\n    }\r\n```"}}
{"actor":{"display_login":"tmrbaset"}}