rehatkathuria / SnappingSlider

A beautiful slider control for iOS built purely upon Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

changing position of slider.

keji96 opened this issue · comments

Hi: thanks for the great slider. I am using it in my app. I have one slight issue. I cant seem to change the code to move it to the top of my app. No matter which CGrect I change the slider is always in the center vertically and horizontally. Any help would be greatly appreciated.

Can you please post a gist of the class implementing the slider?

Attachment available until Aug 6, 2015
Thank you for your response I am relatively new to swift. I have attached my code here . the snapped slider is included in the ReviewViewController.swift file. It is in the view did load method.

regards.

kevin

On Jul 7, 2015, at 2:57 PM, Rehat Kathuria <notifications@github.com mailto:notifications@github.com> wrote:

Can you please post a gist of the class implementing the slider?Click to Download
https://www.icloud.com/attachment/?u=https%3A%2F%2Fcvws.icloud-content.com%2FB%2FARj86xZfAXIHP7A26rCmsWs-TFl1AZo-_byH6oeMVaGQoelR3KT8aYDb%2F%24%7Bf%7D%3Fo%3DArqe-VEuGQNmPfxlmf2Dod1dksEhD7CCvuABQ5ZGvNIV%26v%3D1%26x%3D3%26a%3DBRyvtn3tvz60A3XoLAEA_wHIAP8AzXEO%26e%3D1438889533%26k%3D%24%7Buk%7D%26fl%3D%26r%3D92B8EEBB-69A1-4731-BDE6-4DB7A2AD09AD-1%26ckc%3Dcom.apple.largeattachment%26ckz%3D8A0C9EC4-723C-4FA8-8B76-7CD01BFC1C50%26z%3Dhttps%253A%252F%252Fp05-content.icloud.com%253A443%26s%3DkJWLL5bAhohdLqI1j4q4BdzOt10&uk=1umyndlITsL0ILCDnaU3OQ&f=snap%20slider%20test.zip&sz=25119728snap slider test.zip
25.1 MB


Reply to this email directly or view it on GitHub #7 (comment).

The class you're implementing the slider on has two instances of the slider. Remove the local initialiser inside the viewDidLoad and set the frame and centre inside of the viewDidLayoutSubviews() function of the viewController.

thank you.

On Jul 7, 2015, at 3:48 PM, Rehat Kathuria notifications@github.com wrote:

Closed #7 #7.


Reply to this email directly or view it on GitHub #7 (comment).