Skip to content

Instantly share code, notes, and snippets.

View theLastOrbit's full-sized avatar
🍎
Swift | iOS | macOS

MD RUBEL theLastOrbit

🍎
Swift | iOS | macOS
View GitHub Profile
@theLastOrbit
theLastOrbit / View+SizeCategory.swift
Created July 27, 2024 15:55 — forked from MMP0/View+SizeCategory.swift
SwiftUI dynamicTypeSize modifier for iOS 14, macOS 11, tvOS 14 and watchOS 7 or earlier
//
// View+SizeCategory.swift
//
// Created by MMP0 on 2022/02/06.
//
import SwiftUI
public extension View {
/// Sets the Dynamic Type size within the view to the given value.
Username: Matthias Rhein
License Key: DwBkz/YGssdAFYguB3cM4fCdrQTSfV8S3NkcAO3pInQQAFJ4LPJxGlOzDFTOECbdZt003YTvbejzqcOyyySmegMABwwBAAEADwBkz
Email: 982092332@qq.com
SN: GAWAE-FCWQ3-P8NYB-C7GF7-NEDRT-Q5DTB-MFZG6-6NEQC-CRMUD-8MZ2K-66SRB-SU8EW-EDLZ9-TGH3S-8SGA
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@theLastOrbit
theLastOrbit / CustomTabBar.swift
Last active June 23, 2021 18:39
Custom swipe-able tab bar using UIScrollView
import UIKit
class CustomTabBar: UIScrollView {
enum LinePosition {
case bottom
case top
}
// MARK: Public Member Variables
var padding : CGFloat = 0.0