SwiftInitializerGenerator icon indicating copy to clipboard operation
SwiftInitializerGenerator copied to clipboard

Initialization appears outside of struct for some reason

Open o-zaporozhchenko opened this issue 7 years ago • 1 comments


public struct Some: Codable {
	public var count: Int!
	public var tag: String!
}

    public init(count: Int!, tag: String!) {
        self.count = count
        self.tag = tag
    }

As i understand, it should be like on animation, created inside struct.

o-zaporozhchenko avatar Jan 30 '19 14:01 o-zaporozhchenko

It could be due to your selection; are you selecting only this part? (> < denote the start and end of the selection):

        >public var count: Int!
	public var tag: String!<

Bouke avatar Jul 07 '19 07:07 Bouke