Pitiphong Phongpattranont

4pods

CenterAlignedCollectionViewFlowLayout

A UICollectionViewFlowLayout subclass that will center its cells.

License: MIT

  • Swift

CollectionViewShelfLayout

A UICollectionViewLayout subclass displays its items as rows of items similar to the App Store Feature tab without a nested UITableView/UICollectionView hack. You can use a single data source for all of your contents. Each section displays its items in a row. CollectionViewShelfLayout supports collection view's header view and footer view similar to table view's tableHeaderView and tableFooterView also sections' header and footer views too.

License: MIT

  • Swift

PTPPlaceholderTextView

A simple naive implementation of UITextView subclass to support placeholder text rendering in UITextView. This PTPPlaceholderTextView comes with IBDesignable, IBInspectable and also UIAppearance support.

License: MIT

  • Swift

URLQueryItemEncoder

A Swift Encoder for encoding any Encodable value into an array of URLQueryItem. As part of the SE-0166, Swift has a foundation for any type to define how its value should be archived. This encoder allows you to encode those value into an array of URLQueryItem which represent that value in one command.

License: MIT

  • Swift