-3

I want to display "created by" before displaying username.

Can anyone help ????

Code:

if let user = DataService.dataService.currentUser {
  username.text = user.displayName
}
Ozgur Vatansever
  • 49,246
  • 17
  • 84
  • 119
  • 2
    Possible duplicate of [How do I concatenate strings in Swift?](http://stackoverflow.com/questions/24034174/how-do-i-concatenate-strings-in-swift) – rmaddy Oct 05 '16 at 20:17
  • You should read [The Swift Programming Language](https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11) book before posting any more questions about Swift. – rmaddy Oct 05 '16 at 20:18
  • nope,never, not gonna happen – Carsten Høvsgaard Oct 06 '16 at 16:00
  • 1
    Really? Apple provides a free book on their Swift language and you have no interest in actually learning the language? – rmaddy Oct 06 '16 at 16:03

1 Answers1

1
if let user = DataService.dataService.currentUser {
username.text = "created by \(user.displayName)"
}
Sam
  • 1,101
  • 2
  • 13
  • 26