Practice writing functions on your own, through a hands-on challenge.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3535-programming-in-swift/lessons/20
Practice writing functions on your own, through a hands-on challenge.
Everything is exactly the same as you have written but that warning comes up. Also when I am typing it out character portion has a red line threw it.
The characters
property for String
has been deprecated. That’s why you get that warning. Simply writing the code as fullName.count
will get rid of the warning for you. For Swift 4, anytime you see a reference to the characers
property of a string, simply omitting the characters
part from the code should work.
Thank you Fahim…your on top of things haha
This topic was automatically closed after 166 days. New replies are no longer allowed.