{"action":"closed","issue":{"url":"https://api.github.com/repos/warrenm/AHEasing/issues/21","repository_url":"https://api.github.com/repos/warrenm/AHEasing","labels_url":"https://api.github.com/repos/warrenm/AHEasing/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/warrenm/AHEasing/issues/21/comments","events_url":"https://api.github.com/repos/warrenm/AHEasing/issues/21/events","html_url":"https://github.com/warrenm/AHEasing/issues/21","id":165457728,"number":21,"title":"Swift - Cannot convert value of type 'Double' to expected argument type 'Float'","user":{"login":"nickvelloff","id":885369,"avatar_url":"https://avatars.githubusercontent.com/u/885369?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvelloff","html_url":"https://github.com/nickvelloff","followers_url":"https://api.github.com/users/nickvelloff/followers","following_url":"https://api.github.com/users/nickvelloff/following{/other_user}","gists_url":"https://api.github.com/users/nickvelloff/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvelloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvelloff/subscriptions","organizations_url":"https://api.github.com/users/nickvelloff/orgs","repos_url":"https://api.github.com/users/nickvelloff/repos","events_url":"https://api.github.com/users/nickvelloff/events{/privacy}","received_events_url":"https://api.github.com/users/nickvelloff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-14T01:36:34Z","updated_at":"2016-07-27T04:25:37Z","closed_at":"2016-07-27T04:25:37Z","body":"I'm keenly aware it's stated this library is for `C, C++, and Objective-C`. \r\n\r\nThat said, I'm using it in Swift, and I believe an update here https://github.com/warrenm/AHEasing/blob/master/AHEasing/easing.h#L13-L28 would fix the issue. \r\n\r\nI would be happy to try to fix it and submit a PR, but I'm not completely certain how to address this. \r\n\r\niPhone 6+ Simulator or Device\r\n``` Swift\r\n// Circular easing; sqrt(1 - p^2)\r\npublic func CircularEaseIn(p: Double) -> Double\r\npublic func CircularEaseOut(p: Double) -> Double\r\npublic func CircularEaseInOut(p: Double) -> Double\r\n```\r\n\r\niPhone 5 Simulator or Device\r\n``` Swift\r\n// Circular easing; sqrt(1 - p^2)\r\npublic func CircularEaseIn(p: Float) -> Float\r\npublic func CircularEaseOut(p: Float) -> Float\r\npublic func CircularEaseInOut(p: Float) -> Float\r\n```\r\n\r\nIf you point me in the right direction I would be happy to do the legwork. "}}
{"actor":{"display_login":"nickvelloff"}}