nickoneill / PermissionScope

Intelligent iOS permissions UI and unified API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift 3 Errors

jesster2k10 opened this issue · comments

I updated the code with the current Swift3 code, but I still get the errors in PermissionScope.swift on line 283 and a bunch of others. It directs me to here frame.offsetInPlace

The full error is this

Value of type 'CGRect' has no member 'offsetInPlace'

And I tried searching the documentation to see if its deprecated but I can find it anywhere.

Also, I get another error on line 112 and other lines. The code causing the error is let result = results .first { $0.status != .authorized } .isNil completion(result)

Ambiguous use of first(where:)

This can be closed. I didn't realize the other files were changed too.

@jesster2k10 how did you solve this?

I'm not sure anymore. I can try look for the code I used if you wish?

Never mind, thanks. It was renamed to offsetBy I think, however I got past that.