-
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.
- Loading branch information
Showing
6 changed files
with
34 additions
and
12 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
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 |
---|---|---|
|
@@ -12,10 +12,10 @@ struct Constants { | |
// MARK: - BASE URL | ||
static let baseURL = "http://52.79.108.141:5000" | ||
|
||
static let userId = UserDefaults.standard.string(forKey: "userId") ?? "[email protected]" | ||
static let nickName = UserDefaults.standard.string(forKey: "nickname") ?? "지으니" | ||
static let profileName = UserDefaults.standard.string(forKey: "profileImage") ?? "https://charo-image.s3.ap-northeast-2.amazonaws.com/dummy/jieun.JPG" | ||
static let userEmail = UserDefaults.standard.string(forKey: "userEmail") ?? "[email protected]" | ||
static let userId = UserDefaults.standard.string(forKey: Constants.UserDefaultsKey.userEmail) ?? "[email protected]" | ||
static let nickName = UserDefaults.standard.string(forKey: Constants.UserDefaultsKey.userNickname) ?? "지으니" | ||
static let profileName = UserDefaults.standard.string(forKey: Constants.UserDefaultsKey.userImage) ?? "https://charo-image.s3.ap-northeast-2.amazonaws.com/dummy/jieun.JPG" | ||
static let userEmail = UserDefaults.standard.string(forKey: Constants.UserDefaultsKey.userEmail) ?? "[email protected]" | ||
|
||
|
||
// MARK: - Feature URL | ||
|
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
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
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