Skip to content

Commit

Permalink
add IqKeyboardManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Lee authored and Nick Lee committed Aug 4, 2017
1 parent 0a48fb1 commit 13e06af
Show file tree
Hide file tree
Showing 55 changed files with 6,613 additions and 69 deletions.
10 changes: 10 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
disabled_rules: # rule identifiers to exclude from running
- line_length
- file_length
- function_body_length
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Library
identifier_name:
excluded:
- id
8 changes: 4 additions & 4 deletions Journal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
B80B61E81F343507004A0E1F /* JournalModel.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = B80B61E61F343507004A0E1F /* JournalModel.xcdatamodeld */; };
B80B62051F347315004A0E1F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61F71F347315004A0E1F /* AppDelegate.swift */; };
B80B62061F347315004A0E1F /* AppDelegateExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61F81F347315004A0E1F /* AppDelegateExtensions.swift */; };
B80B62061F347315004A0E1F /* AppDelegateExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61F81F347315004A0E1F /* AppDelegateExtension.swift */; };
B80B62071F347315004A0E1F /* JournalViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61FA1F347315004A0E1F /* JournalViewController.swift */; };
B80B62081F347315004A0E1F /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61FB1F347315004A0E1F /* MainViewController.swift */; };
B80B62091F347315004A0E1F /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80B61FD1F347315004A0E1F /* Extensions.swift */; };
Expand All @@ -28,7 +28,7 @@
A1CC8176CF1D0CA8BB23107C /* Pods-Journal.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Journal.release.xcconfig"; path = "Pods/Target Support Files/Pods-Journal/Pods-Journal.release.xcconfig"; sourceTree = "<group>"; };
B80B61E71F343507004A0E1F /* JournalModel.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = JournalModel.xcdatamodel; sourceTree = "<group>"; };
B80B61F71F347315004A0E1F /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
B80B61F81F347315004A0E1F /* AppDelegateExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegateExtensions.swift; sourceTree = "<group>"; };
B80B61F81F347315004A0E1F /* AppDelegateExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegateExtension.swift; sourceTree = "<group>"; };
B80B61FA1F347315004A0E1F /* JournalViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JournalViewController.swift; sourceTree = "<group>"; };
B80B61FB1F347315004A0E1F /* MainViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = "<group>"; };
B80B61FD1F347315004A0E1F /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -68,7 +68,7 @@
isa = PBXGroup;
children = (
B80B61F71F347315004A0E1F /* AppDelegate.swift */,
B80B61F81F347315004A0E1F /* AppDelegateExtensions.swift */,
B80B61F81F347315004A0E1F /* AppDelegateExtension.swift */,
);
path = Appdelegate;
sourceTree = "<group>";
Expand Down Expand Up @@ -306,7 +306,7 @@
B80B620B1F347315004A0E1F /* Journal.swift in Sources */,
B80B61E81F343507004A0E1F /* JournalModel.xcdatamodeld in Sources */,
B80B620A1F347315004A0E1F /* CoreDataProvider.swift in Sources */,
B80B62061F347315004A0E1F /* AppDelegateExtensions.swift in Sources */,
B80B62061F347315004A0E1F /* AppDelegateExtension.swift in Sources */,
B80B620C1F347315004A0E1F /* JournalTableViewCell.swift in Sources */,
B80B62081F347315004A0E1F /* MainViewController.swift in Sources */,
);
Expand Down
10 changes: 10 additions & 0 deletions Journal/Appdelegate/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@

import UIKit
import CoreData
import IQKeyboardManagerSwift

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

// MARK: Init IQKeyboardManager
IQKeyboardManager.sharedManager().enable = true
IQKeyboardManager.sharedManager().shouldResignOnTouchOutside = true

return true
}

// MARK: - Core Data stack

lazy var persistentContainer: NSPersistentContainer = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AppDelegateExtensions.swift
// AppDelegateExtension.swift
// FireBlog
//
// Created by Nick Lee on 14/07/2017.
Expand Down
2 changes: 1 addition & 1 deletion Journal/View/JournalTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class JournalTableViewCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()

circleImageView.layer.borderColor = UIColor.darkGray.cgColor
circleImageView.layer.borderColor = UIColor.lightGray.cgColor

circleImageView.layer.borderWidth = 0.5

Expand Down
1 change: 1 addition & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ target 'Journal' do

# Pods for Journal
pod 'SwiftLint'
pod 'IQKeyboardManagerSwift'

end
5 changes: 4 additions & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
PODS:
- IQKeyboardManagerSwift (4.0.11)
- SwiftLint (0.20.1)

DEPENDENCIES:
- IQKeyboardManagerSwift
- SwiftLint

SPEC CHECKSUMS:
IQKeyboardManagerSwift: 10f0a6b8ea2904c8943c0e1a116c99f5b8ad83af
SwiftLint: f60095dc173a3f3ec505bb34f5229c3dfd779a54

PODFILE CHECKSUM: d9b051d739aad80c7c73f86a45b4002ca4eeb814
PODFILE CHECKSUM: 94016fb2921529b15d11d045816af859a75e31bb

COCOAPODS: 1.2.0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 13e06af

Please sign in to comment.