[swift-users] Why does this leak?

Alex Blewitt alblue at apple.com
Tue Mar 28 04:14:52 CDT 2017


> On 28 Mar 2017, at 05:41, Rick Aurbach <rlaurb at icloud.com> wrote:
> 
> That wouldn’t work directly. The “leak” occurs when processing a segue called in response to a user button push. (I suppose I could attempt to wire up a UI Test, but would rather not go down that route.)
> 
> What I can try is to see if I can create a simple, artificial example. If it also reports a leak, then I could try looping it. I’ll look into it in the morning.

You could try doing something like:

static let choser:ColorChoser = ColorChoser()
choser.textChoserType = .text

Run that in Xcode and see if it shows a leak.

Alex


More information about the swift-users mailing list