This script will search for zombie strings, i.e. strings not being used, in an Xcode project.
Download it or create it yourself and add it to your user folder.
#!/bin/bash
package br.socialcondo.app.profile | |
import android.text.Editable | |
import android.text.TextWatcher | |
import android.widget.EditText | |
import java.lang.ref.WeakReference | |
/** | |
* Created by kevin on 31/01/18. | |
* Adapted from: |
This script will search for zombie strings, i.e. strings not being used, in an Xcode project.
Download it or create it yourself and add it to your user folder.
#!/bin/bash
To add custom key bindings in Xcode, you have to edit this file (su privileges required):
'/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/Current/Resources/IDETextKeyBindingSet.plist
To facilitate this, just add the following code to .bash_profile
/.zshrc
:
# Add custom commands to Xcode.
# Run this every time Xcode updates.
function addCustomCommandsToXcode() {
import Combine | |
import SwiftUI | |
final class CancelBag { | |
// MARK: - Properties | |
var subscriptions = Set<AnyCancellable>() | |
// MARK: - Actions |
class CurvedView: UIView { | |
// MARK: - Constants | |
private enum Constants { | |
static let defaultCurvePercent: CGFloat = 0.1 | |
static let defaultCurveSide = CurveSide.top | |
static let defaultCurveDirection = CurveDirection.inwards | |
} |
This code is a helper to always try to return the English version of a localized string when it's not found in the current selected language. This is usefull in scenarios where you don't have all Strings
localized within the Localized.strings
file for a specific language.
When calling localized
, the OS tries to find the String
inside the Localizable.strings
file for the current language. If not found, then it tries to search for the same String
inside the English version of Localizable.strings
. If that fails, then returns the String
itself.