Skip to content

Instantly share code, notes, and snippets.

View sushant-here's full-sized avatar

Sushant Verma sushant-here

View GitHub Profile
@sushant-here
sushant-here / AppUITests.swift
Last active June 11, 2024 05:22
XCUITest disable keyboard swipe
import XCTest
final class AppUITests: XCTestCase {
override func setUpWithError() throws {
SpringboardHelper.showKeyboardIfNeeded()
}
}
@sushant-here
sushant-here / toggleNightMode.sh
Created November 13, 2023 23:28
Toggle night mode
while [ 1 ]
do
xcrun simctl ui booted appearance dark
sleep 2
xcrun simctl ui booted appearance light
sleep 2
done
@sushant-here
sushant-here / toggleDynamicType.sh
Last active November 13, 2023 23:27
toggle dynamic type
while [ 1 ]
do
xcrun simctl ui booted content_size extra-extra-large
sleep 2
xcrun simctl ui booted content_size medium
sleep 2
done
UserDefaults.standard.set(false, forKey: "NSDoubleLocalizedStrings")
UserDefaults.standard.set(true, forKey: "NSAccentuateLocalizedStrings")
UserDefaults.standard.set(true, forKey: "NSSurroundLocalizedStrings")
UserDefaults.standard.set(true, forKey: "NSShowNonLocalizedStrings")
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
@sushant-here
sushant-here / gist:03158d67ab4803b0ad81e2047bf25ed1
Last active September 28, 2018 00:11
Load UI view from XIB file for use in storyboard with IBDesignable
//
// SVDesignableXibView.swift
// crypto
//
// Created by Sushant Verma on 29/1/18.
// Copyright © 2018 Sushant Verma. All rights reserved.
//
import UIKit