Common stuff shared across iOS projects in Swift.
ErykIosCommon is available under the MIT license. See the LICENSE file for more info.
- Object not mapped
- (required initializer) required public init?(map: Map) {
- (optional variable) var data: T?
- (generic conforms to mappable) ApiResponse<T: Mappable>
find . -mindepth 1 -name '.kt' -printf '%h %f\n' | sort -t ' ' -k 2,2 | uniq -f 1 --all-repeated=separate | tr ' ' '/'
git log --all --full-history -- */xxxx.java
awk '!/^ *#/ && NF' file
kill $(ps aux | grep 'Xcode' | awk '{print $2}')
open -a Xcode *.xcworkspace
cd ../softraiostemplate && ../Pods/SwiftLint/swiftlint autocorrect
/usr/bin/xcodebuild -version
fdupes -r esoftra ErykIosCommon/ErykIosCommon SoftraIosCommon/SoftraIosCommon
find ErykIosCommon/ErykIosCommon SoftraIosCommon/SoftraIosCommon -type f -exec basename {} \; | sort | uniq -d
makeappicon.com/ objectivec2swift.com/#/converter/code/
public static func getByType<T: Sequence, Element: AnyObject>(from arr: T, withType type: Element.Type) -> Element? where T.Element == Element {
for elem in arr {
if elem is Element {
return elem
}
}
return nil
}
extension Sequence {
func callAll<T>(t: T) where Element == Listener<T> {
self.forEach { $0(t) }
}
}