Something went wrong. Try again.
A slopfork of Sam Henri Gold's Twitter client, reskinned like Tweetie 2 / Twitter for iPhone circa 2012. Personal use.
Something went wrong. Try again.
Twitter-Retro TwitterPackage Sources PostText TwitterText TwitterTextConfiguration+WeightedRange.swift
12345678910111213141516171819extension TwitterTextConfiguration { /// Code points from `start` through `end` (inclusive, as in the JSON) weigh `weight`. package struct WeightedRange: Hashable, Codable, Sendable { package var start: UInt32 package var end: UInt32 package var weight: Int
package init(start: UInt32, end: UInt32, weight: Int) { self.start = start self.end = end self.weight = weight }
package func contains(_ scalar: Unicode.Scalar) -> Bool { (start...end).contains(scalar.value) } }}