Use folder references for all groups and sort files/folders

This commit is contained in:
Danny Moesch 2019-01-20 12:34:40 +01:00 committed by Mingshen Sun
parent 38b44cedf8
commit d698f2e3c3
12 changed files with 154 additions and 154 deletions

View file

@ -1,5 +1,5 @@
/*
String.swift
String+Localization.swift
passKit
Created by Danny Moesch on 12.01.19.

View file

@ -1,20 +1,17 @@
//
// StringExtension.swift
// String+Utilities.swift
// passKit
//
// Created by Yishi Lin on 2018/9/23.
// Copyright © 2018 Bob Sun. All rights reserved.
//
import Foundation
public extension String {
var trimmed: String {
extension String {
public var trimmed: String {
return trimmingCharacters(in: .whitespacesAndNewlines)
}
func stringByAddingPercentEncodingForRFC3986() -> String? {
public func stringByAddingPercentEncodingForRFC3986() -> String? {
let unreserved = "-._~/?"
var allowed = CharacterSet.alphanumerics
allowed.insert(charactersIn: unreserved)

View file

@ -1,5 +1,5 @@
//
// UIViewControllerExtionsion.swift
// UITextFieldExtension.swift
// pass
//
// Created by Yishi Lin on 5/4/17.
@ -21,14 +21,3 @@ extension UITextField {
}
}
}
extension UIViewController {
@objc public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
if textField.nextField != nil {
textField.nextField?.becomeFirstResponder()
} else {
textField.resignFirstResponder()
}
return true
}
}

View file

@ -0,0 +1,18 @@
//
// UIViewControllerExtension.swift
// pass
//
// Created by Yishi Lin on 5/4/17.
// Copyright © 2017 Yishi Lin. All rights reserved.
//
extension UIViewController {
@objc public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
if textField.nextField != nil {
textField.nextField?.becomeFirstResponder()
} else {
textField.resignFirstResponder()
}
return true
}
}