Skip to content

ColeMacGrath/HowToSwift

Repository files navigation

alt text

How To Swift (Check Wiki)

How to swift includes some basics examples to do some recurrent and basics tasks in mobile apps. Keep in mind are basic examples, you can expand, modify or do what you want for specfics tasks.

Some themes included in Wiki (check it for more)

1 - How to call an API

How to create some basic API calls with native tools in Swift

2 - How to download images / Setting automatically in ImageView and caching

How to download images with string URL and assign directly to ImageView.

If you're using storyboard set your UIImageView class to CacheImageView, then call loadImage, example of ussage in ViewController, image is loaded in viewDidLoad.

3 - How to create some useful IBDesignables views

How to create some creative and beautiful elements in storyboards such as CardViews, gradients, etc.

4 - How to create a custom menu like share sheet

How to create and simulate interface of share sheet for your own menus extending from UIActivityViewController

5 - How to general utilities

  • How underline UITextField
  • How to remove extra lines when UITableView elements doesn't fit on screen
  • How to convert String to date
  • How check regex for mail in String
  • How to create QR with string
  • How to convert date to String
  • How to remove UINavigationBar line
  • How to crete and set an UIActivityIndicatorView on every view easily
  • How to check booleans from Int
  • How to call UIRefreshControl programatically
  • How to add support for iOS 12 in Xcode 11 projects

Releases

No releases published

Packages

No packages published

Languages