brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
// | |
// HostingCell.swift | |
// theathletic-ios | |
// | |
// Created by . | |
// Copyright © 2021 The Athletic. All rights reserved. | |
// | |
import SwiftUI | |
import UIKit |
import Foundation | |
import UIKit | |
public typealias FontNameExt = (name: String, ext: String) | |
public func autoRegisteringFont(_ fontNames: [FontNameExt], _ spmBundleName : String) throws { | |
guard let spmBundle = Bundle(bundleName: spmBundleName) else { | |
throw("Fail to find bundle(\(spmBundleName).bundle) in your app bundle.") | |
} | |
try fontURLs(for: fontNames, in: spmBundle).forEach { try registerFont(from: $0) } |
extension UIHostingController { | |
convenience public init(rootView: Content, ignoreSafeArea: Bool) { | |
self.init(rootView: rootView) | |
if ignoreSafeArea { | |
disableSafeArea() | |
} | |
} | |
func disableSafeArea() { |
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
// | |
// Promise + CancelRequest.swift | |
// PeopleFinders | |
// | |
// Created by Efraim Budusan on 12/13/17. | |
// Copyright © 2017 Tapptitude. All rights reserved. | |
// | |
import Foundation | |
import PromiseKit |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode