https://www.avanderlee.com/swift/dependency-injection/ https://zenn.dev/yimajo/articles/e9f72549270873
https://zamzam.io/swift-dependency-injection-via-property-wrapper/
require 'xcodeproj' | |
def makeTestTarget(target, path) | |
output = "\n {" | |
if !(path.include? "Application.xcodeproj") | |
output += "\n \"parallelizable\" : true," | |
end | |
output += "\n \"target\" : {" | |
if path.include? "Application.xcodeproj" |
$ ( tuist generate ) 2>&1 | tee tuist_generate.log | |
$ cat tuist_generate.log | grep "unwanted side effects" | wc -l | awk '{print $1}' | |
12 |
https://github.com/mattgallagher/CwlDemangle | |
https://stackoverflow.com/a/32171878 | |
iOS List Modules tweak - https://hackcatml.tistory.com/115 | |
SwiftLee 방식의 DI를 하는 것으로 TCA의 Environment 버킷 릴레이를 그만두고 싶은 이야기 - https://zenn.dev/yimajo/articles/e9f72549270873 | |
Nest.js는 실제로 어떻게 의존성을 주입해줄까? - https://velog.io/@coalery/nest-injection-how | |
# 1. use xcodebuild | |
xcodebuild -scheme MyScheme -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 13' -derivedDataPath '../dd' clean build |
import RxSwift | |
import RxCocoa | |
@dynamicMemberLookup | |
protocol DynamicMemberLookupableObservableType: AssociateObservable { | |
subscript<T>(dynamicMember keyPath: KeyPath<Value, T>) -> Observable<T> { get } | |
} | |
extension DynamicMemberLookupableObservableType { | |
subscript<T>(dynamicMember keyPath: KeyPath<Value, T>) -> Observable<T> { |
#!/bin/bash | |
BUILD_DIRECTORY="Build" | |
function archive_project() { | |
project_name=$1 | |
framework_name=$2 | |
# Archive iOS project. | |
xcodebuild archive\ |
// | |
// ViewController.swift | |
// SampleApp | |
// | |
// Created by minsOne on 2022/01/18. | |
// | |
import UIKit | |
import PinLayout | |
import FlexLayout |
- Supports opening documents in place LSSupportsOpeningDocumentsInPlace | |
- Application supports iTunes file sharing UIFileSharingEnabled |
alias pip3='pip3 --trusted-host pypi.org --trusted-host files.pythonhosted.org' | |
alias cXed='rm -rf ~/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState && xed .' | |
alias clearXcode='rm -rf ~/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState' |
tuist graph -t -f dot && sed -E '/(Testing)|(Example)/d' graph.dot > /tmp/tuist_graph.dot | |
dot -Tpdf /tmp/tuist_graph.dot -o graph.pdf && open graph.pdf | |
dot -Tpng /tmp/tuist_graph.dot -o graph.png | |
rm graph.dot |