Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

App-Lobby/Extended

Repository files navigation


What is Extended?

It provides you a collection of extension for types like String, Int, CLLocation and many more. Take a look at this table to understand better.

Avoid writing those fundamental utilities every time for your app. Extended provides you the collection of those utilities at once.

"Buy Me A Coffee"

How to use it?

Two ways to use it

  • You can copy the requared extension code block from the source file directly into your project.
  • You can import this swift package in your project and use all the extended features mentioned below in the table.

Features

Type Extended Features
CLLocation .getCoordinateByLocation() .getLocationByCoordinate()
View ImageURLView()
Strings .randomString() .dateFormattedAs() GetCharacterByIndex .isValidEmail() .getRandomEmail()
Color .randomColor() .hexColor() .assetColor() .modeColor()
Optional .unwrapped { }
Int .squared
Calendar .isSameDay()
CGFloat .screenWidth .screenHeight

Todo's

  • Raise a pull request for any extension you wish to add, or
  • Visit issues section

Contributing

Feel free to contribute and add stuffs.

  • Fork the repo
  • Clone the forked repo
  • Create a new branch
  • Add some code
  • Create a pull request

Contributors

Installation

Install it as swift package in your project

Code Snippets

var name: String?
name.unwrapped { safeName in
 print("Found name is \(safeName)")
} noData: {
 print("Found nil. Handle error")
}
ImageURLView(urlString: "https://images.unsplash.com/5/unsplash-kitsune-4.jpg?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjEyMDd9&s=ce40ce8b8ba365e5e6d06401e5485390")
struct Data {
 var text: String
}
var data: [Data] = [
 .init(text: .randomWord())
]

License

Extended is licensed under the MIT License.

About

A collection of swift fundamental utilities & extensions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /