Skip to content

Instantly share code, notes, and snippets.

View Mcrich23's full-sized avatar
⚒️
Building

Morris Richman Mcrich23

⚒️
Building
View GitHub Profile
extension StringProtocol {
/// str[NSRange(location:0, length: 9)]
subscript(_ range: NSRange) -> SubSequence {
guard let stringRange = Range<String.Index>(range, in: self) else {
fatalError("String index is out of range")
}
return self[stringRange]
}
@amosgyamfi
amosgyamfi / launchScreenAnimation.swift
Last active November 14, 2022 11:56
Looping SwiftUI Animation
//
// StreamLogoLaunch.swift
// StreamiOSChatSDKPrototyping
//
// Created by amos.gyamfi on 14.10.2021.
//
import SwiftUI
struct StreamLogoLaunch: View {
@MapaX
MapaX / makeXCFamework.sh
Created April 26, 2021 10:45
Shell script to create xcframeworks from MLKit frameworks
#!/bin/zsh
makeXCFramework () {
BASEDIR=$(pwd)
echo "Script location: ${BASEDIR}"
LIBNAME=$(basename $BASEDIR)
echo "lib is: $LIBNAME"
cd Frameworks