-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] #235 마이페이지 유저디폴트 수정, 유저디폴트 수정
- Loading branch information
1 parent
d22ce76
commit b9a247b
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,7 @@ class MyPageVC: UIViewController { | |
let userheight = UIScreen.main.bounds.height | ||
var tabbarBottomConstraint: Int = 0 | ||
|
||
// var isLogin: Bool = UserDefaults.standard.bool(forKey: "isLogin") ?? true | ||
var isLogin: Bool = true | ||
var isLogin: Bool = UserDefaults.standard.bool(forKey: Constants.UserDefaultsKey.isLogin) ?? false | ||
|
||
private var userProfileData: [UserInformation] = [] | ||
//var writenPostData: [MyPagePost] = [] | ||
|
@@ -31,7 +30,7 @@ class MyPageVC: UIViewController { | |
var currentState: String = "인기순" | ||
|
||
//무한스크롤을 위함 | ||
var myId: String = UserDefaults.standard.string(forKey: "userId") ?? "[email protected]" | ||
var myId: String = UserDefaults.standard.string(forKey: Constants.UserDefaultsKey.userEmail) ?? "[email protected]" | ||
var lastId: Int = 0 | ||
var lastFavorite: Int = 0 | ||
var isLast: Bool = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters