twostraws / SwiftGD

A simple Swift wrapper for libgd
MIT License
457 stars 71 forks source link

'width' is inaccessible due to 'internal' protection level #3

Closed JohnKnust closed 6 years ago

JohnKnust commented 7 years ago

Hi!

When I use let size = Size(width: 500, height: 348) the properties width and height are inaccessible. Please make them public to:

public struct Size {
    public var width: Int
    public var height: Int

    public init(width: Int, height: Int) {
        self.width = width
        self.height = height
    }
}
mRs- commented 6 years ago

Just hand in a Pull Request.

twostraws commented 6 years ago

This is fixed.