Skip to content

Instantly share code, notes, and snippets.

View LAPTop4iK's full-sized avatar

Nikita Laptyonok LAPTop4iK

  • Wroclaw, Poland
View GitHub Profile
@Catherine-K-George
Catherine-K-George / UILabel+Extensions.swift
Created June 6, 2021 09:49
UILabel extension with ReadMore/ ReadLess action
import UIKit
enum TrailingContent {
case readmore
case readless
var text: String {
switch self {
case .readmore: return "...Read More"
case .readless: return " Read Less"