Skip to content

Support Swift 3 and Xcode 8.#6

Merged
yoichitgy merged 9 commits into
Swinject:masterfrom
yoichitgy:master
Oct 24, 2016
Merged

Support Swift 3 and Xcode 8.#6
yoichitgy merged 9 commits into
Swinject:masterfrom
yoichitgy:master

Conversation

@yoichitgy

Copy link
Copy Markdown
Member

Migrated the project to support Swift 3 and Xcode 8.

This pull request consists of

@yoichitgy yoichitgy added this to the v1.0.0-beta.2 milestone Oct 14, 2016
@yoichitgy

Copy link
Copy Markdown
Member Author

Need to fix .travis.yml.

get {
guard let obj = self as? AnyObject else {
fatalError("Property feature is not supported unless self is AnyObject.")
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check this part can be removed completely.

private func setProperties(newProperties: [String: AnyObject]) {
guard let obj = self as? AnyObject else {
fatalError("Property feature is not supported unless self is AnyObject.")
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check this part can be removed completely.

@yoichitgy

Copy link
Copy Markdown
Member Author

Thanks @jakubvano, I guess I added the AnyObject check by my misunderstanding to use an objc associated object. I'll check.

The type check was misunderstanding about AnyObject, NSObject and requirement of objc_get/setAssociatedObject.
@yoichitgy

Copy link
Copy Markdown
Member Author

Removed the commented out code by be48d02 because the type check was just misunderstanding about AnyObject, NSObject and requirement of objc_get/setAssociatedObject.

@yoichitgy yoichitgy merged commit 5b43fb6 into Swinject:master Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant