You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try this in your podfile
post_install do |installer|
tTargets = ['GMStepper']
installer.pods_project.targets.each do |target|
if tTargets.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end
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)")
}
The text was updated successfully, but these errors were encountered: