Skip to content

Instantly share code, notes, and snippets.

View gopinath0332's full-sized avatar
🏠
Working from home

gopinath0332

🏠
Working from home
View GitHub Profile
@rlester
rlester / DSSCollectionViewFlowLayout.swift
Created May 2, 2018 18:43
DSSCollectionViewFlowLayout - A UICollectionViewFlow that will equally space UICollectionView Cells
//
// DSSCollectionViewFlowLayout.swift
//
// Created by Gary L. Wade on 9/5/16. Adapted by Rob Lester on 5/2/18.
// Copyright © 2018 Gary L. Wade. All rights reserved.
// Original: https://medium.com/@garywade/equally-spacing-uicollectionview-cells-6d74401f8f56
//
// Tested On: Xcode 9.3 / Swift 4.1
//
@HarryGoodwin
HarryGoodwin / gist:4528d6419915258e54b2f8c804687808
Last active August 10, 2023 02:28
Attributed string bullet points - Swift
import UIKit
import PlaygroundSupport
struct StringConstants {
static let bullet1 = "This is a small string."
static let bullet2 = "This is more of medium string with a few more words etc."
static let bullet3 = "Well this is certainly a longer string, with many more words than either of the previuos two strings."
}
typealias ParagraphData = (bullet: String, paragraph: String)