- Run
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources//IDETextKeyBindingSet.plist
sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
import Combine | |
@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) | |
extension Publisher { | |
func removeDuplicates<Property>(by keyPath: KeyPath<Output, Property>) | |
-> Publishers.RemoveDuplicates<Self> where Property: Equatable | |
{ | |
return self.removeDuplicates { | |
$0[keyPath: keyPath] == $1[keyPath: keyPath] | |
} |
// | |
// containerView.swift | |
// WebviewApp | |
// | |
// Created by joon-ho kil on 8/28/19. | |
// Copyright © 2019 길준호. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
struct DependencyInjector { | |
private static var dependencyList: [String:Any] = [:] | |
static func resolve<T>() -> T { | |
guard let t = dependencyList[String(describing: T.self)] as? T else { | |
fatalError("No povider registered for type \(T.self)") | |
} | |
return t | |
} | |
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:name="vector" | |
android:width="20dp" | |
android:height="20dp" | |
android:viewportWidth="60" | |
android:viewportHeight="60"> | |
<path |