Consider this piece of code:
if !track.formatDescriptions.isEmpty
{
let firstFormatDescription = (track.formatDescriptions as!
[CMFormatDescription])[0]
let asbd =
CMAudioFormatDescriptionGetStreamBasicDescription
(firstFormatDescription)
numSndChannels += Int( asbd.memory.mChannelsPerFrame )
}
If I click on the first curly brace the editor beeps (the code
compiles).
If I remove "as! [CMFormatDescription]" the closing curly brace *is*
selected.
Look like a minor bug.
Xcode 6.3, Swift 1.2
Jan E.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]