Skip to content

Instantly share code, notes, and snippets.

View adelbios's full-sized avatar

Ader Redwan adelbios

View GitHub Profile
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16
@adelbios
adelbios / ioslocaleidentifiers.csv
Created December 16, 2023 06:56 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@adelbios
adelbios / gist:882ef230b0f3eda69e6759cfa2cd4a56
Created December 16, 2023 06:55 — forked from jrolstad/gist:5ca7d78dbfe182d7c1be
List all NodaTime Timezones
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NodaTime.TimeZones;
using NUnit.Framework;
namespace what_time_is_it
{
@adelbios
adelbios / CustomInteractiveAnimationNavigationController.swift
Created November 4, 2018 07:18 — forked from eoghain/CustomInteractiveAnimationNavigationController.swift
UINavigationController that implements swipe to push/pop in an interactive animation. Just implement the InteractiveNavigation protocol on your ViewControllers you add to the nav stack to get custom transitions. Or implement a single animation and return it instead of the nil's in the UIViewControllerTransitioningDelegate and all transitions wil…
import UIKit
protocol InteractiveNavigation {
var presentAnimation: UIViewControllerAnimatedTransitioning? { get }
var dismissAnimation: UIViewControllerAnimatedTransitioning? { get }
func showNext()
}
enum SwipeDirection: CGFloat, CustomStringConvertible {