-
Notifications
You must be signed in to change notification settings - Fork 206
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
warning: 'ExpressibleByStringInterpolation' is deprecated #47
Comments
This also appears in Issue Navigator when using Cocoapods. And in this case it is annoying - I don't like having warnings in my project. |
String bridging fixed For ExpressibleByStringInterpolation I do not known how to convert the code and keep the functionality |
Is there any update for this issue? |
The warning is not the same
https://nshipster.com/expressiblebystringinterpolation/ maybe something like that extension Path: ExpressibleByStringInterpolation {
public init(stringInterpolation: StringInterpolation) {
self.init(stringInterpolation.value)
}
public struct StringInterpolation: StringInterpolationProtocol {
var value: String = ""
public init(literalCapacity: Int, interpolationCount: Int) {
self.value.reserveCapacity(literalCapacity)
}
public mutating func appendLiteral(_ literal: String) {
self.value.append(literal)
}
public mutating func appendInterpolation<T>(_ value: T) where T: CustomStringConvertible {
self.value.append(value.description)
}
}
} |
Hi,
When I build your component with carthage I have these warnings:
The text was updated successfully, but these errors were encountered: