1

On the right top side there is disabled post button. How can I change its text or enable it manually?

    navigationBar.rightBarButtonItem?.enabled = true 

doesnt work

enter image description here

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358

1 Answers1

6
  1. It is impossible to change its text.
  2. It is possible to enable or disable it at any time by call validateContent():

    override func isContentValid() -> Bool {
        super.isContentValid()
    
        //valdate your SLComposeViewController here
    }
    

isContentValid() is called by validateContent().

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358