Skip to content

Argument labels '(stringInterpolationSegment:)' do not match any available overloads #47

@1tan1

Description

@1tan1

Hi, I upgraded my application from Swift 4.2 to Swift 5 and I get an error. How do i fix this?

File: GMStepper.swift

Error: Argument labels '(stringInterpolationSegment:)' do not match any available overloads

Error is in 2 areas.

Area 1:

else if isInteger {
label.text = String(stringInterpolationSegment: "(Int(value))(self.suffixString)"/Int(value)/)
}
else {
label.text = String(stringInterpolationSegment: "(value)(self.suffixString)"/value/)
}

Area 2:

if self.showIntegerIfDoubleIsInteger && floor(self.value) == self.value {
label.text = String(stringInterpolationSegment: "(Int(self.value))(self.suffixString)")
} else {
label.text = String(stringInterpolationSegment: "(Int(self.value))(self.suffixString)")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions