Skip to content

Instantly share code, notes, and snippets.

View willbrandin's full-sized avatar
🧑‍💻

Will Brandin willbrandin

🧑‍💻
View GitHub Profile
#!/bin/sh
# Takes filename as parameter.
file=$1
if [ -z "$file" ]
then
echo "<png_file> argument not specified."
exit 1
elif [ ! -f "$file" ]
@soffes
soffes / SafariActivity.swift
Created October 26, 2020 22:19
Open in Safari UIActivity
import UIKit
final class SafariActivity: UIActivity {
// MARK: - Properties
var url: URL?
// MARK: - UIActivity
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16
@mecid
mecid / PagerView.swift
Last active August 15, 2024 06:38
PagerView in SwiftUI
//
// PagerView.swift
//
// Created by Majid Jabrayilov on 12/5/19.
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
struct PagerView<Content: View>: View {
let pageCount: Int