In tutorial IOS & Swift UI for Beginners, when adding Slider this message comes up. Build successful, Simulator ok just preview stops and slider does not appear in preview.
initializer ‘init(value:in:onEditingChanged:)’ requires that ‘Int’ conform to ‘BinaryFloatingPoint’
hi Corneilus! that’s very interesting. Xcode 12 has been surprisingly relaxed about constant numbers, accepting CGFloat values without the decimal point. 12.5 still accepts padding(1) instead of requiring padding(1.0).
Assuming this is the line you added, just add .0 to 50: