Skip to content

Instantly share code, notes, and snippets.

View ANSCoder's full-sized avatar
🎯
Focusing

Anand Nimje ANSCoder

🎯
Focusing
View GitHub Profile
@ANSCoder
ANSCoder / UserDefaults Example.swift
Last active February 1, 2020 16:38
UserDefaults example for save and get data in Swift 4.
struct Defaults {
static let (nameKey, addressKey) = ("name", "address")
static let userSessionKey = "com.save.usersession"
private static let userDefault = UserDefaults.standard
/**
- Description - It's using for the passing and fetching
user values from the UserDefaults.
*/