vikmis007 / SurveyBeats

MIT License
0 stars 0 forks source link

Using Dependencies #20

Open dekablade01 opened 5 years ago

dekablade01 commented 5 years ago
let angle = CGFloat.pi / 2.0
pageControl.transform = CGAffineTransform(rotationAngle: angle)
vikmis007 commented 5 years ago

@Dekablade01 I already tried this approach of transforming UIPageControl by 90°, but considering the UI which was needed as per the challenge (hollow bordered circular dots => no default property on UIPageControl), it was hard to achieve this. In this case, I had two options,

  1. Provide extension on UIPageControl and customize it by iterating through its subviews.
  2. Create or use custom page control.

So I preferred to choose the second option.

vikmis007 commented 5 years ago

For displaying the loading indicator, there wasn't any such preference about showing UIActivityIndicatorView or MBProgressHud. I have just used that in previous projects, so was inclined to it.