├── Untitled.gif
├── 抽屉效果
├── 抽屉效果
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── qq.imageset
│ │ │ ├── qq@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_bg.imageset
│ │ │ ├── sidebar_bg.jpg
│ │ │ └── Contents.json
│ │ ├── sidebar_file.imageset
│ │ │ ├── sidebar_file@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_album.imageset
│ │ │ ├── sidebar_album@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_purse.imageset
│ │ │ ├── sidebar_purse@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_business.imageset
│ │ │ ├── sidebar_business@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_favorit.imageset
│ │ │ ├── sidebar_favorit@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_setting.imageset
│ │ │ ├── sidebar_setting@2x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_decoration.imageset
│ │ │ ├── sidebar_decoration@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_nightmode_on.imageset
│ │ │ ├── sidebar_nightmode_on@3x.png
│ │ │ └── Contents.json
│ │ ├── sidebar_nightmode_loading.imageset
│ │ │ ├── sidebar_nightmode_loading@3x.png
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Info.plist
│ ├── PopViewController.swift
│ ├── MessageViewController.swift
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── LeftMenuViewController.swift
│ └── DrawerViewController.swift
└── 抽屉效果.xcodeproj
│ ├── project.xcworkspace
│ └── contents.xcworkspacedata
│ └── project.pbxproj
├── README.md
├── LICENSE
└── .gitignore
/Untitled.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/Untitled.gif
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/qq.imageset/qq@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/qq.imageset/qq@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_bg.imageset/sidebar_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_bg.imageset/sidebar_bg.jpg
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_file.imageset/sidebar_file@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_file.imageset/sidebar_file@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_album.imageset/sidebar_album@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_album.imageset/sidebar_album@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_purse.imageset/sidebar_purse@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_purse.imageset/sidebar_purse@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_business.imageset/sidebar_business@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_business.imageset/sidebar_business@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_favorit.imageset/sidebar_favorit@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_favorit.imageset/sidebar_favorit@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_setting.imageset/sidebar_setting@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_setting.imageset/sidebar_setting@2x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_decoration.imageset/sidebar_decoration@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_decoration.imageset/sidebar_decoration@3x.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Swift-WLDrawerView
2 | Swift-QQ最新版侧滑菜单以及弹框视图
3 |
4 | 原理解析博文地址:
5 | http://www.jianshu.com/p/679b94639765
6 |
7 | 
8 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_on.imageset/sidebar_nightmode_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_on.imageset/sidebar_nightmode_on@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_loading.imageset/sidebar_nightmode_loading@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coderLiuW/WLDrawerView/HEAD/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_loading.imageset/sidebar_nightmode_loading@3x.png
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/qq.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "qq@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_bg.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "sidebar_bg.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_album.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_album@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_file.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_file@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_purse.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_purse@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_business.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_business@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_favorit.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_favorit@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_setting.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "sidebar_setting@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_decoration.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_decoration@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_on.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_nightmode_on@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/sidebar_nightmode_loading.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "sidebar_nightmode_loading@3x.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // 抽屉效果
4 | //
5 | // Created by administrator on 2017/3/10.
6 | // Copyright © 2017年 WL. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18 |
19 | window = UIWindow(frame: UIScreen.main.bounds)
20 | window?.backgroundColor = UIColor.white
21 |
22 | let leftVC = LeftMenuViewController()
23 | let tabBarVC = UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController()
24 | window?.rootViewController = DrawerViewController(mainVC: tabBarVC!, leftMenuVC: leftVC, leftWidth: 300)
25 | window?.makeKeyAndVisible()
26 |
27 | return true
28 | }
29 |
30 |
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | }
43 | ],
44 | "info" : {
45 | "version" : 1,
46 | "author" : "xcode"
47 | }
48 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIRequiredDeviceCapabilities
26 |
27 | armv7
28 |
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/PopViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // PopViewController.swift
3 | // 抽屉效果
4 | //
5 | // Created by administrator on 2017/3/13.
6 | // Copyright © 2017年 WL. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class PopViewController: UITableViewController {
12 |
13 | var dataArray = ["创建群聊","加好友/群", "扫一扫","面对面快传","付款","拍摄", "面对面红包"]
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 |
18 | tableView.register(UITableViewCell.self, forCellReuseIdentifier: "cellID")
19 | preferredContentSize = CGSize(width: 150, height: 245)
20 | tableView.rowHeight = 35
21 | }
22 |
23 | //MARK: - Delegate
24 |
25 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
26 | return dataArray.count
27 | }
28 |
29 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
30 |
31 | let cell = tableView.dequeueReusableCell(withIdentifier: "cellID", for: indexPath)
32 |
33 | cell.textLabel?.text = dataArray[indexPath.row]
34 | return cell
35 |
36 | }
37 |
38 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
39 | tableView.deselectRow(at: indexPath, animated: true)
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/MessageViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MessageViewController.swift
3 | // 抽屉效果
4 | //
5 | // Created by administrator on 2017/3/10.
6 | // Copyright © 2017年 WL. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class MessageViewController: UIViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 |
16 | }
17 |
18 | //MARK: - 打开左边菜单
19 | @IBAction func buttonClick(_ sender: UIBarButtonItem) {
20 |
21 | DrawerViewController.shareDrawer?.openLeftMenu()
22 | }
23 | //MARK: - 更多功能
24 | @IBAction func showAlert(_ sender: UIBarButtonItem) {
25 |
26 | let popVC = PopViewController()
27 | popVC.modalPresentationStyle = UIModalPresentationStyle.popover
28 | popVC.popoverPresentationController?.barButtonItem = sender
29 | popVC.popoverPresentationController?.delegate = self
30 | popVC.popoverPresentationController?.backgroundColor = UIColor.white
31 | present(popVC, animated: true, completion: nil)
32 |
33 | }
34 |
35 | }
36 |
37 | extension MessageViewController: UIPopoverPresentationControllerDelegate {
38 |
39 | func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {
40 | return UIModalPresentationStyle.none
41 | }
42 |
43 | func popoverPresentationControllerShouldDismissPopover(_ popoverPresentationController: UIPopoverPresentationController) -> Bool {
44 | return true
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | # Pods/
47 |
48 | # Carthage
49 | #
50 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
51 | # Carthage/Checkouts
52 |
53 | Carthage/Build
54 |
55 | # fastlane
56 | #
57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58 | # screenshots whenever they are needed.
59 | # For more information about the recommended setup visit:
60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
61 |
62 | fastlane/report.xml
63 | fastlane/Preview.html
64 | fastlane/screenshots
65 | fastlane/test_output
66 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/LeftMenuViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // LeftMenuViewController.swift
3 | // 抽屉效果
4 | //
5 | // Created by administrator on 2017/3/10.
6 | // Copyright © 2017年 WL. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | //protocol LeftMenuViewControllerDelegate: NSObjectProtocol {
12 | //
13 | // func LeftViewController(didSelectRowAt indexPath: IndexPath)
14 | //
15 | //}
16 |
17 | class LeftMenuViewController: UIViewController {
18 |
19 | fileprivate let cellIdentifier = "WLCellIdentifier"
20 | // weak var delegate: LeftMenuViewControllerDelegate?
21 | let headerViewH: CGFloat = 200
22 |
23 | var dataArray = [["我的商城","sidebar_business"],["QQ钱包","sidebar_purse"],["个性装扮","sidebar_decoration"],["我的收藏","sidebar_favorit"],["我的相册","sidebar_album"],["我的文件","sidebar_file"]]
24 |
25 | override func viewDidLoad() {
26 | super.viewDidLoad()
27 |
28 | view.addSubview(headerView)
29 | view.addSubview(tableView)
30 |
31 |
32 | }
33 |
34 | private lazy var tableView: UITableView = {
35 |
36 | let tab = UITableView(frame: CGRect(x: 0, y: self.headerViewH, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height - self.headerViewH), style: .plain)
37 | tab.backgroundColor = UIColor(colorLiteralRed: 13.0 / 255.0, green: 184.0 / 255.0, blue: 246.0 / 255.0, alpha: 1.0)
38 | tab.separatorStyle = UITableViewCellSeparatorStyle.none
39 | tab.contentInset = UIEdgeInsets(top: 20, left: 0, bottom: 0, right: 0)
40 | tab.delegate = self
41 | tab.dataSource = self
42 | tab.register(UITableViewCell.self, forCellReuseIdentifier: self.cellIdentifier)
43 | return tab
44 | }()
45 |
46 |
47 | private lazy var headerView: UIView = {
48 |
49 |
50 | let view = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: self.headerViewH))
51 | let bgImageView = UIImageView(frame: view.frame)
52 | bgImageView.image = UIImage(named: "sidebar_bg")
53 | bgImageView.contentMode = UIViewContentMode.scaleAspectFill
54 | bgImageView.clipsToBounds = true
55 | view.addSubview(bgImageView)
56 | return view
57 |
58 | }()
59 |
60 | }
61 |
62 | extension LeftMenuViewController: UITableViewDelegate, UITableViewDataSource {
63 |
64 |
65 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
66 | return dataArray.count
67 | }
68 |
69 |
70 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
71 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier, for: indexPath)
72 | cell.backgroundColor = UIColor.clear
73 | cell.textLabel?.text = dataArray[indexPath.row][0]
74 | cell.imageView?.image = UIImage(named: dataArray[indexPath.row][1])
75 | cell.textLabel?.textColor = UIColor.white
76 | return cell
77 | }
78 |
79 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
80 | tableView.deselectRow(at: indexPath, animated: true)
81 |
82 | let vc = UIViewController()
83 | vc.view.backgroundColor = UIColor.white
84 | vc.title = dataArray[indexPath.row][0]
85 | DrawerViewController.shareDrawer?.LeftViewController(didSelectController: vc)
86 |
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/DrawerViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DrawerViewController.swift
3 | // 抽屉效果
4 | //
5 | // Created by administrator on 2017/3/10.
6 | // Copyright © 2017年 WL. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class DrawerViewController: UIViewController {
12 |
13 | let screenW = UIScreen.main.bounds.width
14 |
15 | var mainVC: UIViewController?
16 | var leftVC: UIViewController?
17 | var maxWidth: CGFloat = 300
18 | //MARK: - 单例
19 | static let shareDrawer = UIApplication.shared.keyWindow?.rootViewController as? DrawerViewController
20 |
21 | init(mainVC: UIViewController, leftMenuVC: UIViewController, leftWidth: CGFloat) {
22 |
23 | super.init(nibName: nil, bundle: nil)
24 |
25 | self.mainVC = mainVC
26 | self.leftVC = leftMenuVC
27 | self.maxWidth = leftWidth
28 |
29 | view.addSubview(leftMenuVC.view)
30 | view.addSubview(mainVC.view)
31 |
32 | addChildViewController(leftMenuVC)
33 | addChildViewController(mainVC)
34 |
35 | }
36 |
37 |
38 | override func viewDidLoad() {
39 | super.viewDidLoad()
40 |
41 |
42 | leftVC?.view.transform = CGAffineTransform(translationX: -maxWidth , y: 0)
43 |
44 | for childViewController in (mainVC?.childViewControllers)! {
45 |
46 | addScreenEdgePanGestureRecognizerToView(view: childViewController.view)
47 |
48 | }
49 |
50 | }
51 |
52 | //MARK: - 侧边栏跳转功能
53 | func LeftViewController(didSelectController view: UIViewController) {
54 |
55 | let tabbarVC = mainVC as? UITabBarController
56 | let nav = tabbarVC?.selectedViewController as? UINavigationController
57 | view.hidesBottomBarWhenPushed = true
58 | nav?.pushViewController(view, animated: false)
59 | closeLeftMenu()
60 | }
61 |
62 | //MARK: - 添加屏幕边缘手势
63 | private func addScreenEdgePanGestureRecognizerToView(view: UIView) {
64 |
65 | let pan = UIScreenEdgePanGestureRecognizer(target: self, action: #selector(edgPanGesture(_:)))
66 | pan.edges = UIRectEdge.left
67 | view.addGestureRecognizer(pan)
68 |
69 | }
70 |
71 | //MARK: - 屏幕左边缘手势
72 | func edgPanGesture(_ pan: UIScreenEdgePanGestureRecognizer) {
73 |
74 | let offsetX = pan.translation(in: pan.view).x
75 | print(offsetX)
76 | if pan.state == UIGestureRecognizerState.changed && offsetX <= maxWidth {
77 |
78 | mainVC?.view.transform = CGAffineTransform(translationX: max(offsetX, 0), y: 0)
79 | leftVC?.view.transform = CGAffineTransform(translationX: -maxWidth + offsetX, y: 0)
80 |
81 | } else if pan.state == UIGestureRecognizerState.ended || pan.state == UIGestureRecognizerState.cancelled || pan.state == UIGestureRecognizerState.failed {
82 |
83 | if offsetX > screenW * 0.5 {
84 |
85 | openLeftMenu()
86 |
87 | } else {
88 |
89 | closeLeftMenu()
90 | }
91 |
92 | }
93 |
94 | }
95 |
96 | //MARK: - 遮盖按钮手势
97 | func panCloseLeftMenu(_ pan: UIPanGestureRecognizer) {
98 |
99 | let offsetX = pan.translation(in: pan.view).x
100 |
101 | print(offsetX)
102 | if offsetX > 0 {return}
103 |
104 | if pan.state == UIGestureRecognizerState.changed && offsetX >= -maxWidth {
105 |
106 | let distace = maxWidth + offsetX
107 |
108 | mainVC?.view.transform = CGAffineTransform(translationX: distace, y: 0)
109 | leftVC?.view.transform = CGAffineTransform(translationX: offsetX, y: 0)
110 |
111 | } else if pan.state == UIGestureRecognizerState.ended || pan.state == UIGestureRecognizerState.cancelled || pan.state == UIGestureRecognizerState.failed {
112 |
113 | if offsetX > -screenW * 0.5 {
114 |
115 | openLeftMenu()
116 |
117 | } else {
118 |
119 | closeLeftMenu()
120 | }
121 |
122 | }
123 |
124 | }
125 |
126 | //MARK: - 打开左侧菜单
127 | func openLeftMenu() {
128 |
129 | UIView.animate(withDuration: 0.25, delay: 0, options: UIViewAnimationOptions.curveLinear, animations: {
130 |
131 | self.leftVC?.view.transform = CGAffineTransform.identity
132 | self.mainVC?.view.transform = CGAffineTransform(translationX: self.maxWidth, y: 0)
133 |
134 |
135 | }, completion: {
136 |
137 | (finish: Bool) -> () in
138 |
139 | self.mainVC?.view.addSubview(self.coverBtn)
140 |
141 | })
142 |
143 | }
144 |
145 | //MARK: - 关闭左侧菜单
146 | func closeLeftMenu() {
147 |
148 | UIView.animate(withDuration: 0.25, delay: 0, options: UIViewAnimationOptions.curveLinear, animations: {
149 |
150 | self.leftVC?.view.transform = CGAffineTransform(translationX: -self.maxWidth, y: 0)
151 | self.mainVC?.view.transform = CGAffineTransform.identity
152 |
153 |
154 | }, completion: {
155 |
156 | (finish: Bool) -> () in
157 |
158 | self.coverBtn.removeFromSuperview()
159 |
160 | })
161 |
162 |
163 | }
164 |
165 | //MARK: - 灰色背景按钮
166 | private lazy var coverBtn: UIButton = {
167 |
168 | let btn = UIButton(frame: (self.mainVC?.view.bounds)!)
169 | btn.backgroundColor = UIColor.clear
170 | btn.addTarget(self, action: #selector(closeLeftMenu), for: .touchUpInside)
171 | btn.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(panCloseLeftMenu(_:))))
172 |
173 | return btn
174 |
175 | }()
176 |
177 | required init?(coder aDecoder: NSCoder) {
178 | fatalError("init(coder:) has not been implemented")
179 | }
180 |
181 |
182 |
183 | }
184 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
--------------------------------------------------------------------------------
/抽屉效果/抽屉效果.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | C37D34AC1E72709E00C77A5E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C37D34AB1E72709E00C77A5E /* AppDelegate.swift */; };
11 | C37D34B11E72709E00C77A5E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C37D34AF1E72709E00C77A5E /* Main.storyboard */; };
12 | C37D34B31E72709E00C77A5E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C37D34B21E72709E00C77A5E /* Assets.xcassets */; };
13 | C37D34B61E72709E00C77A5E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C37D34B41E72709E00C77A5E /* LaunchScreen.storyboard */; };
14 | C37D34BE1E72736000C77A5E /* DrawerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C37D34BD1E72736000C77A5E /* DrawerViewController.swift */; };
15 | C37D34C01E72737600C77A5E /* LeftMenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C37D34BF1E72737600C77A5E /* LeftMenuViewController.swift */; };
16 | C37D34C21E72740F00C77A5E /* MessageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C37D34C11E72740F00C77A5E /* MessageViewController.swift */; };
17 | C3960A131E768C67000D182F /* PopViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3960A121E768C67000D182F /* PopViewController.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | C37D34A81E72709E00C77A5E /* 抽屉效果.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "抽屉效果.app"; sourceTree = BUILT_PRODUCTS_DIR; };
22 | C37D34AB1E72709E00C77A5E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
23 | C37D34B01E72709E00C77A5E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
24 | C37D34B21E72709E00C77A5E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
25 | C37D34B51E72709E00C77A5E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
26 | C37D34B71E72709E00C77A5E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
27 | C37D34BD1E72736000C77A5E /* DrawerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DrawerViewController.swift; sourceTree = ""; };
28 | C37D34BF1E72737600C77A5E /* LeftMenuViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LeftMenuViewController.swift; sourceTree = ""; };
29 | C37D34C11E72740F00C77A5E /* MessageViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MessageViewController.swift; sourceTree = ""; };
30 | C3960A121E768C67000D182F /* PopViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PopViewController.swift; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | C37D34A51E72709E00C77A5E /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | );
39 | runOnlyForDeploymentPostprocessing = 0;
40 | };
41 | /* End PBXFrameworksBuildPhase section */
42 |
43 | /* Begin PBXGroup section */
44 | C37D349F1E72709E00C77A5E = {
45 | isa = PBXGroup;
46 | children = (
47 | C37D34AA1E72709E00C77A5E /* 抽屉效果 */,
48 | C37D34A91E72709E00C77A5E /* Products */,
49 | );
50 | sourceTree = "";
51 | };
52 | C37D34A91E72709E00C77A5E /* Products */ = {
53 | isa = PBXGroup;
54 | children = (
55 | C37D34A81E72709E00C77A5E /* 抽屉效果.app */,
56 | );
57 | name = Products;
58 | sourceTree = "";
59 | };
60 | C37D34AA1E72709E00C77A5E /* 抽屉效果 */ = {
61 | isa = PBXGroup;
62 | children = (
63 | C37D34AB1E72709E00C77A5E /* AppDelegate.swift */,
64 | C37D34BD1E72736000C77A5E /* DrawerViewController.swift */,
65 | C37D34BF1E72737600C77A5E /* LeftMenuViewController.swift */,
66 | C37D34C11E72740F00C77A5E /* MessageViewController.swift */,
67 | C3960A121E768C67000D182F /* PopViewController.swift */,
68 | C37D34AF1E72709E00C77A5E /* Main.storyboard */,
69 | C37D34B21E72709E00C77A5E /* Assets.xcassets */,
70 | C37D34B41E72709E00C77A5E /* LaunchScreen.storyboard */,
71 | C37D34B71E72709E00C77A5E /* Info.plist */,
72 | );
73 | path = "抽屉效果";
74 | sourceTree = "";
75 | };
76 | /* End PBXGroup section */
77 |
78 | /* Begin PBXNativeTarget section */
79 | C37D34A71E72709E00C77A5E /* 抽屉效果 */ = {
80 | isa = PBXNativeTarget;
81 | buildConfigurationList = C37D34BA1E72709E00C77A5E /* Build configuration list for PBXNativeTarget "抽屉效果" */;
82 | buildPhases = (
83 | C37D34A41E72709E00C77A5E /* Sources */,
84 | C37D34A51E72709E00C77A5E /* Frameworks */,
85 | C37D34A61E72709E00C77A5E /* Resources */,
86 | );
87 | buildRules = (
88 | );
89 | dependencies = (
90 | );
91 | name = "抽屉效果";
92 | productName = "抽屉效果";
93 | productReference = C37D34A81E72709E00C77A5E /* 抽屉效果.app */;
94 | productType = "com.apple.product-type.application";
95 | };
96 | /* End PBXNativeTarget section */
97 |
98 | /* Begin PBXProject section */
99 | C37D34A01E72709E00C77A5E /* Project object */ = {
100 | isa = PBXProject;
101 | attributes = {
102 | LastSwiftUpdateCheck = 0810;
103 | LastUpgradeCheck = 0810;
104 | ORGANIZATIONNAME = WL;
105 | TargetAttributes = {
106 | C37D34A71E72709E00C77A5E = {
107 | CreatedOnToolsVersion = 8.1;
108 | DevelopmentTeam = AB3B393359;
109 | ProvisioningStyle = Automatic;
110 | };
111 | };
112 | };
113 | buildConfigurationList = C37D34A31E72709E00C77A5E /* Build configuration list for PBXProject "抽屉效果" */;
114 | compatibilityVersion = "Xcode 3.2";
115 | developmentRegion = English;
116 | hasScannedForEncodings = 0;
117 | knownRegions = (
118 | en,
119 | Base,
120 | );
121 | mainGroup = C37D349F1E72709E00C77A5E;
122 | productRefGroup = C37D34A91E72709E00C77A5E /* Products */;
123 | projectDirPath = "";
124 | projectRoot = "";
125 | targets = (
126 | C37D34A71E72709E00C77A5E /* 抽屉效果 */,
127 | );
128 | };
129 | /* End PBXProject section */
130 |
131 | /* Begin PBXResourcesBuildPhase section */
132 | C37D34A61E72709E00C77A5E /* Resources */ = {
133 | isa = PBXResourcesBuildPhase;
134 | buildActionMask = 2147483647;
135 | files = (
136 | C37D34B61E72709E00C77A5E /* LaunchScreen.storyboard in Resources */,
137 | C37D34B31E72709E00C77A5E /* Assets.xcassets in Resources */,
138 | C37D34B11E72709E00C77A5E /* Main.storyboard in Resources */,
139 | );
140 | runOnlyForDeploymentPostprocessing = 0;
141 | };
142 | /* End PBXResourcesBuildPhase section */
143 |
144 | /* Begin PBXSourcesBuildPhase section */
145 | C37D34A41E72709E00C77A5E /* Sources */ = {
146 | isa = PBXSourcesBuildPhase;
147 | buildActionMask = 2147483647;
148 | files = (
149 | C37D34AC1E72709E00C77A5E /* AppDelegate.swift in Sources */,
150 | C37D34C01E72737600C77A5E /* LeftMenuViewController.swift in Sources */,
151 | C3960A131E768C67000D182F /* PopViewController.swift in Sources */,
152 | C37D34BE1E72736000C77A5E /* DrawerViewController.swift in Sources */,
153 | C37D34C21E72740F00C77A5E /* MessageViewController.swift in Sources */,
154 | );
155 | runOnlyForDeploymentPostprocessing = 0;
156 | };
157 | /* End PBXSourcesBuildPhase section */
158 |
159 | /* Begin PBXVariantGroup section */
160 | C37D34AF1E72709E00C77A5E /* Main.storyboard */ = {
161 | isa = PBXVariantGroup;
162 | children = (
163 | C37D34B01E72709E00C77A5E /* Base */,
164 | );
165 | name = Main.storyboard;
166 | sourceTree = "";
167 | };
168 | C37D34B41E72709E00C77A5E /* LaunchScreen.storyboard */ = {
169 | isa = PBXVariantGroup;
170 | children = (
171 | C37D34B51E72709E00C77A5E /* Base */,
172 | );
173 | name = LaunchScreen.storyboard;
174 | sourceTree = "";
175 | };
176 | /* End PBXVariantGroup section */
177 |
178 | /* Begin XCBuildConfiguration section */
179 | C37D34B81E72709E00C77A5E /* Debug */ = {
180 | isa = XCBuildConfiguration;
181 | buildSettings = {
182 | ALWAYS_SEARCH_USER_PATHS = NO;
183 | CLANG_ANALYZER_NONNULL = YES;
184 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
185 | CLANG_CXX_LIBRARY = "libc++";
186 | CLANG_ENABLE_MODULES = YES;
187 | CLANG_ENABLE_OBJC_ARC = YES;
188 | CLANG_WARN_BOOL_CONVERSION = YES;
189 | CLANG_WARN_CONSTANT_CONVERSION = YES;
190 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
191 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
192 | CLANG_WARN_EMPTY_BODY = YES;
193 | CLANG_WARN_ENUM_CONVERSION = YES;
194 | CLANG_WARN_INFINITE_RECURSION = YES;
195 | CLANG_WARN_INT_CONVERSION = YES;
196 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
197 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
198 | CLANG_WARN_UNREACHABLE_CODE = YES;
199 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
200 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
201 | COPY_PHASE_STRIP = NO;
202 | DEBUG_INFORMATION_FORMAT = dwarf;
203 | ENABLE_STRICT_OBJC_MSGSEND = YES;
204 | ENABLE_TESTABILITY = YES;
205 | GCC_C_LANGUAGE_STANDARD = gnu99;
206 | GCC_DYNAMIC_NO_PIC = NO;
207 | GCC_NO_COMMON_BLOCKS = YES;
208 | GCC_OPTIMIZATION_LEVEL = 0;
209 | GCC_PREPROCESSOR_DEFINITIONS = (
210 | "DEBUG=1",
211 | "$(inherited)",
212 | );
213 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
214 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
215 | GCC_WARN_UNDECLARED_SELECTOR = YES;
216 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
217 | GCC_WARN_UNUSED_FUNCTION = YES;
218 | GCC_WARN_UNUSED_VARIABLE = YES;
219 | IPHONEOS_DEPLOYMENT_TARGET = 10.1;
220 | MTL_ENABLE_DEBUG_INFO = YES;
221 | ONLY_ACTIVE_ARCH = YES;
222 | SDKROOT = iphoneos;
223 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
224 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
225 | };
226 | name = Debug;
227 | };
228 | C37D34B91E72709E00C77A5E /* Release */ = {
229 | isa = XCBuildConfiguration;
230 | buildSettings = {
231 | ALWAYS_SEARCH_USER_PATHS = NO;
232 | CLANG_ANALYZER_NONNULL = YES;
233 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
234 | CLANG_CXX_LIBRARY = "libc++";
235 | CLANG_ENABLE_MODULES = YES;
236 | CLANG_ENABLE_OBJC_ARC = YES;
237 | CLANG_WARN_BOOL_CONVERSION = YES;
238 | CLANG_WARN_CONSTANT_CONVERSION = YES;
239 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
240 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
241 | CLANG_WARN_EMPTY_BODY = YES;
242 | CLANG_WARN_ENUM_CONVERSION = YES;
243 | CLANG_WARN_INFINITE_RECURSION = YES;
244 | CLANG_WARN_INT_CONVERSION = YES;
245 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
246 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
247 | CLANG_WARN_UNREACHABLE_CODE = YES;
248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
249 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
250 | COPY_PHASE_STRIP = NO;
251 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
252 | ENABLE_NS_ASSERTIONS = NO;
253 | ENABLE_STRICT_OBJC_MSGSEND = YES;
254 | GCC_C_LANGUAGE_STANDARD = gnu99;
255 | GCC_NO_COMMON_BLOCKS = YES;
256 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
257 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
258 | GCC_WARN_UNDECLARED_SELECTOR = YES;
259 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
260 | GCC_WARN_UNUSED_FUNCTION = YES;
261 | GCC_WARN_UNUSED_VARIABLE = YES;
262 | IPHONEOS_DEPLOYMENT_TARGET = 10.1;
263 | MTL_ENABLE_DEBUG_INFO = NO;
264 | SDKROOT = iphoneos;
265 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
266 | VALIDATE_PRODUCT = YES;
267 | };
268 | name = Release;
269 | };
270 | C37D34BB1E72709E00C77A5E /* Debug */ = {
271 | isa = XCBuildConfiguration;
272 | buildSettings = {
273 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
274 | DEVELOPMENT_TEAM = AB3B393359;
275 | INFOPLIST_FILE = "抽屉效果/Info.plist";
276 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
277 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
278 | PRODUCT_BUNDLE_IDENTIFIER = "com.wangliu.----";
279 | PRODUCT_NAME = "$(TARGET_NAME)";
280 | SWIFT_VERSION = 3.0;
281 | };
282 | name = Debug;
283 | };
284 | C37D34BC1E72709E00C77A5E /* Release */ = {
285 | isa = XCBuildConfiguration;
286 | buildSettings = {
287 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
288 | DEVELOPMENT_TEAM = AB3B393359;
289 | INFOPLIST_FILE = "抽屉效果/Info.plist";
290 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
291 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
292 | PRODUCT_BUNDLE_IDENTIFIER = "com.wangliu.----";
293 | PRODUCT_NAME = "$(TARGET_NAME)";
294 | SWIFT_VERSION = 3.0;
295 | };
296 | name = Release;
297 | };
298 | /* End XCBuildConfiguration section */
299 |
300 | /* Begin XCConfigurationList section */
301 | C37D34A31E72709E00C77A5E /* Build configuration list for PBXProject "抽屉效果" */ = {
302 | isa = XCConfigurationList;
303 | buildConfigurations = (
304 | C37D34B81E72709E00C77A5E /* Debug */,
305 | C37D34B91E72709E00C77A5E /* Release */,
306 | );
307 | defaultConfigurationIsVisible = 0;
308 | defaultConfigurationName = Release;
309 | };
310 | C37D34BA1E72709E00C77A5E /* Build configuration list for PBXNativeTarget "抽屉效果" */ = {
311 | isa = XCConfigurationList;
312 | buildConfigurations = (
313 | C37D34BB1E72709E00C77A5E /* Debug */,
314 | C37D34BC1E72709E00C77A5E /* Release */,
315 | );
316 | defaultConfigurationIsVisible = 0;
317 | defaultConfigurationName = Release;
318 | };
319 | /* End XCConfigurationList section */
320 | };
321 | rootObject = C37D34A01E72709E00C77A5E /* Project object */;
322 | }
323 |
--------------------------------------------------------------------------------