the.bay.news

`ByteCountFormatStyle` with wide width. Possible?

Swift Forums
`ByteCountFormatStyle` with wide width. Possible?
Consider the following: let measurement = Measurement(value: 1000, unit: UnitInformationStorage.megabytes) I can format it in the following ways: measurement.formatted(.byteCount(style: .file)) // 1 GB measurement.formatted(.measurement(width: .wide)) // 1,000 megabytes I want the automatic scaling of .byteCount(style:) with the ability to control the width of the unit that .measurement(width:) provides. Is that possible? The final desired output I want for formatting measurement is 1 gigab...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.