Skip to content

Commit

Permalink
Update to 2.9
Browse files Browse the repository at this point in the history
Now func `isAuthorized` change to `var`. New permission `Motion`.  Add icon for permission `Motion`. For customize colors you don't need pass `colorSource`, pass `DataSource`.
  • Loading branch information
ivanvorobei committed Jan 18, 2019
1 parent 073432c commit d0cb414
Show file tree
Hide file tree
Showing 53 changed files with 5,769 additions and 1,212 deletions.
1,384 changes: 698 additions & 686 deletions Example/request-permission.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ extension SPPermissionDialogController {
return "App will can check your location"
case .locationWhenInUse:
return "App will can check your location"
case .locationWithBackground:
return "App will can check your location"
case .motion:
return "Allow reports motion and environment-related data"
case .mediaLibrary:
return "Allow check your media"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// The MIT License (MIT)
// Copyright © 2017 Ivan Vorobei (hello@ivanvorobei.by)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import UIKit

struct SPPermissionDraw { private init(){} }
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import UIKit

struct SPPermissionDraw { private init(){} }

extension SPPermissionDraw {

public class IconPack : NSObject {
Expand Down

0 comments on commit d0cb414

Please sign in to comment.