-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help please #22
Comments
@KBMatveev did you add "import SwifterSwift" to the top of the file? |
No. But And then I write |
@KBMatveev some time some extensions don't work without import, please import SwifterSwift at every file you want to use it in, and let me know if you still have the problem |
"Manually |
@KBMatveev and if you didn't clean and rebuild the project from the "Product" menu after installing the pod, it's also preferred to do that |
@KBMatveev Then please make sure to check "Copy items if needed" and "Add to targets" checkboxes when adding the files to your xcode project |
@KBMatveev I think the code should be trimmed is a String extension not a String? extension |
@KBMatveev 🤔, are you using xcode 8 with swift 3? |
DateExtensions work good, UITableViewExtensions too, trouble only with StringExtensions |
@KBMatveev Then I assume the StringExtensions.swift file is not added to the target, could you please delete it, and re-add it to project while making sure to add it to target and copy if needed |
@KBMatveev weird!! , the StringExtensions.swift file follows the same structure of all other extensions files, and it is public is this code working for you? |
@KBMatveev I'm trying to understand what is causing the problem in your end, I've tested this with multiple projects, as I see in the first picture you sent the autocompletion is completing the trimmed for you, which means xcode can see the file! |
@KBMatveev is the problem solved ? |
@KBMatveev I don't know what is happening in your end, everything is working correctly for me, I'd be glad to check it myself with teamviewer if you want |
I replaced trimmed on trimmingCharacters. It worked, but hardly a solution to the problem. You want to connect via TeamViewer? |
@KBMatveev I'll try to check what is causing the problem if you want via teamviewer |
Send password via eMail |
@KBMatveev Glad your problem is fixed, I think the problem is when adding files from the file menu, they didn't get added to target for some reason, dragging the files to the project, always shows you the confirmation menu, where you can double check that files are added to your target |
Then use -
let someString = String(" 123 ").trimmed
have error -
Value of type "String?" has no member 'trimmed'
Why?
The text was updated successfully, but these errors were encountered: