[swift-users] Creating a NSAttributedString from HTML

2016-09-15 Thread Félix Cloutier via swift-users
I'm trying to create a NSAttributedString from its HTML representation in Swift 3 (from the Xcode 8 GM build). However, this doesn't work: > import Foundation > import AppKit > > let html = "hello world" > let data = html.data(using: .utf8, allowLossyConversion: true)! > let attributed =

[swift-users] SPM: Subfolders in a Module

2016-09-15 Thread Toni Suter via swift-users
Hi everyone, Let's assume there's a Swift package with the following Layout: MyPackage/ ├── Package.swift └── Sources └── MyModule ├── SubFolder │ └── MyClass.swift └── main.swift As far as I can tell, there's still just one module called MyModule and the

Re: [swift-users] SPM: Subfolders in a Module

2016-09-15 Thread Ankit Agarwal via swift-users
On Fri, Sep 16, 2016 at 12:21 AM, Toni Suter via swift-users < swift-users@swift.org> wrote: > Hi everyone, > > Let's assume there's a Swift package with the following Layout: > > MyPackage/ > ├── Package.swift > └── Sources > └── MyModule > ├── SubFolder > │ └──

[swift-users] Problem calling a C function passing a void** from Swift 3

2016-09-15 Thread Lane Schwartz via swift-users
Hi, I just moved to Xcode 8 (actually, it upgraded itself without me realizing it, but anyway), and some previously working Swift 2.2 code now doesn't work. I'm having trouble migrating. The code in question is supposed to declare, but not allocate, a block of memory. A void** to that block of