Skip to content

Instantly share code, notes, and snippets.

View byJeevan's full-sized avatar
💭
Working from Home 🏡

Jeevan byJeevan

💭
Working from Home 🏡
View GitHub Profile
@byJeevan
byJeevan / swift.gitignore
Created November 18, 2021 04:22 — forked from SteveRohrlack/swift.gitignore
swift .gitignore template
# see https://gist.github.com/muhasturk/df28ec9d2cc18bf1cfc8
# see https://github.com/github/gitignore/blob/master/Swift.gitignore
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata
#
# *.lock - this is used and abused by many editors for many different things.
# For the main ones I use (e.g. Eclipse), it should be excluded
@byJeevan
byJeevan / iOSCodeReviewChecklist.txt
Created September 19, 2021 07:22 — forked from pallavtrivedi03/iOSCodeReviewChecklist.txt
A checklist for iOS Code Review.
iOS Code Review Checklist
Avoid Type Inference
Prefer using Higher Order Functions
Write DRY code (Don’t Repeat Yourself)
Make sure that there are no force unwraps
Make sure that there are no retain cycles
Check if any deprecated API is being used
Check if any hardcoded checks (generally strings) can be changed to enum.
Prefer enum, switch over if else.
@byJeevan
byJeevan / Swift iOS Recipes
Last active April 6, 2024 14:05 — forked from bobbyali/Swift iOS Recipes
Swift iOS Code Recipes
Swift iOS Recipes
==================
> https://github.com/JohnSundell/SwiftTips
** GUI Layout **
//Avoid Table view having Textfield covered by Keyboard
override func viewWillAppear(_ animated: Bool) {
@byJeevan
byJeevan / ios-font-sizes.swift
Created July 25, 2018 05:02 — forked from zacwest/ios-font-sizes.swift
iOS default font sizes
let styles: [UIFontTextStyle] = [
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
for style in styles {