0

I need to create Copywrite label which is starting from the bottom and ending at the top, It's easy to do the same with transformation if the text is not facing towards the right, But how to do the below-attached

[its the image 1

Ideally,enter image description here it should look like above

Dipesh Pokhrel
  • 386
  • 5
  • 20
  • 1
    Could you give another example of how this is supposed to look? Especially in the context of other surrounding views. – Parth Feb 16 '21 at 07:04
  • I added @ParthTamane – Dipesh Pokhrel Feb 16 '21 at 07:05
  • 1
    What happens if you do this: https://stackoverflow.com/questions/28717634/how-can-you-rotate-text-for-uibutton-and-uilabel-in-swift and pass -90 to answer by @drees – Parth Feb 16 '21 at 07:06
  • @ParthTamane , it worked with let copywriteText = "Meditec- Copyright 2018 All rits reserved" let copyWriteLabel = UILabel(frame: CGRect(x: 100, y: 300, width: 300, height: 17)) copyWriteLabel.transform = CGAffineTransform(rotationAngle: -CGFloat.pi / 2) copyWriteLabel.text = copywriteText copyWriteLabel.numberOfLines = 0 self.view.addSubview(copyWriteLabel) – Dipesh Pokhrel Feb 16 '21 at 07:19
  • 1
    Thought so. If you want to do such transformations often then you should use the extension method in the link I sent. – Parth Feb 16 '21 at 07:28

0 Answers0