Why are some Core Graphics APIs "hidden" from Swift?
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=d91pWfBtbn7uJ5NX9Z aO0VgEIon5xTSinF0d83nenbk=; b=LQ32ClRpVRYoDbSu4hNHQODOj8SSr4SzHP N8E0MsjPZdD3mJusiwkvOB/ZW9Y6F58FkbQDolYzQ7iiV3otmu/vuJ7Ej9jGV5eJ wLEDmBFXHVmSy0K1dSIwtXxJEI8x/y7rPcViK+2N7UfJmDoD5aoYiOwUlJBix2Oi fBzBs1ejQ40jlpLQ2GaiVqmWh6+EsIjatdcl8AJ0WqYelbOZunamth7BZsvsWoAQ eauiF+MNVVsZXBdnF4lqEt3pEStrWO0YuiosCTia1ZEhQf8DKz/RELrmJERNUVgH +wHuLU8L/Fp6l1sN/HDpahYBil435ojqZRUjrUKtAqv199dSkP/w== I notice the CGPoint version of APIs map to nice Swift method calls: CGContext.addArc(tangent1End: CGPoint, tangent2End: CGPoint, radius: CGFloat) But the X, Y versions have a double underscore: CGContext.__addArc(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, radius: CGFloat) Why is this? -- Rick Mann rmann@latencyzero.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Mann