This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/** | |
**A Custom UIView class designed to use with view coded layout** | |
**Lifecycle:** | |
1. `init()` | |
2. `initialize()` *Add subviews* | |
3. `installConstraints()` *Setup constraints* | |
*/ | |
typealias BaseView = BaseViewClass & BaseViewProtocol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://medium.com/blablacar-tech/rxswift-mvvm-66827b8b3f10 | |
protocol ViewModel { | |
associatedtype Input | |
associatedtype Output | |
func transform(input: Input) -> Output | |
} | |
class ViewModelExample: ViewModel { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /path/to/excode/project -type f -name "*.swift" -print0 | while IFS= read -r -d '' file; do | |
filename=$(basename "$file") | |
if ! grep -qF "$filename" /path/to/excode/project/project.pbxproj; then | |
echo "Swift file '$file' exists but is not in the Xcode project." | |
fi | |
done |