Use folder references for all groups and sort files/folders
This commit is contained in:
parent
38b44cedf8
commit
d698f2e3c3
12 changed files with 154 additions and 154 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
String.swift
|
||||
String+Localization.swift
|
||||
passKit
|
||||
|
||||
Created by Danny Moesch on 12.01.19.
|
||||
|
|
@ -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)
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
18
passKit/Extensions/UIViewControllerExtension.swift
Normal file
18
passKit/Extensions/UIViewControllerExtension.swift
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue