diff --git a/.DS_Store b/.DS_Store index 338f685..4d91a45 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/FaceBookProfile/.DS_Store b/FaceBookProfile/.DS_Store index 79b4f77..680f599 100644 Binary files a/FaceBookProfile/.DS_Store and b/FaceBookProfile/.DS_Store differ diff --git a/FaceBookProfile/FaceBookProfile.xcodeproj/project.pbxproj b/FaceBookProfile/FaceBookProfile.xcodeproj/project.pbxproj index 303e96b..f2ecda2 100644 --- a/FaceBookProfile/FaceBookProfile.xcodeproj/project.pbxproj +++ b/FaceBookProfile/FaceBookProfile.xcodeproj/project.pbxproj @@ -13,6 +13,9 @@ 6E0AA32929FEA7BE00BD99C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E0AA32729FEA7BE00BD99C4 /* Main.storyboard */; }; 6E0AA32B29FEA7BF00BD99C4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6E0AA32A29FEA7BF00BD99C4 /* Assets.xcassets */; }; 6E0AA32E29FEA7BF00BD99C4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E0AA32C29FEA7BF00BD99C4 /* LaunchScreen.storyboard */; }; + 6EA127152A0A8F690066ED7A /* Menu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EA127142A0A8F690066ED7A /* Menu.swift */; }; + 6EA127182A0BDFF50066ED7A /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = 6EA127172A0BDFF50066ED7A /* SnapKit */; }; + 6EA1271A2A0BE70F0066ED7A /* MenuCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EA127192A0BE70F0066ED7A /* MenuCell.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -24,6 +27,8 @@ 6E0AA32A29FEA7BF00BD99C4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 6E0AA32D29FEA7BF00BD99C4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 6E0AA32F29FEA7BF00BD99C4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6EA127142A0A8F690066ED7A /* Menu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Menu.swift; sourceTree = ""; }; + 6EA127192A0BE70F0066ED7A /* MenuCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuCell.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -31,6 +36,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 6EA127182A0BDFF50066ED7A /* SnapKit in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -63,6 +69,8 @@ 6E0AA32A29FEA7BF00BD99C4 /* Assets.xcassets */, 6E0AA32C29FEA7BF00BD99C4 /* LaunchScreen.storyboard */, 6E0AA32F29FEA7BF00BD99C4 /* Info.plist */, + 6EA127142A0A8F690066ED7A /* Menu.swift */, + 6EA127192A0BE70F0066ED7A /* MenuCell.swift */, ); path = FaceBookProfile; sourceTree = ""; @@ -83,6 +91,9 @@ dependencies = ( ); name = FaceBookProfile; + packageProductDependencies = ( + 6EA127172A0BDFF50066ED7A /* SnapKit */, + ); productName = FaceBookProfile; productReference = 6E0AA31E29FEA7BE00BD99C4 /* FaceBookProfile.app */; productType = "com.apple.product-type.application"; @@ -111,6 +122,9 @@ Base, ); mainGroup = 6E0AA31529FEA7BE00BD99C4; + packageReferences = ( + 6EA127162A0BDFF50066ED7A /* XCRemoteSwiftPackageReference "SnapKit" */, + ); productRefGroup = 6E0AA31F29FEA7BE00BD99C4 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -139,7 +153,9 @@ buildActionMask = 2147483647; files = ( 6E0AA32629FEA7BE00BD99C4 /* ViewController.swift in Sources */, + 6EA1271A2A0BE70F0066ED7A /* MenuCell.swift in Sources */, 6E0AA32229FEA7BE00BD99C4 /* AppDelegate.swift in Sources */, + 6EA127152A0A8F690066ED7A /* Menu.swift in Sources */, 6E0AA32429FEA7BE00BD99C4 /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -356,6 +372,25 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 6EA127162A0BDFF50066ED7A /* XCRemoteSwiftPackageReference "SnapKit" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/SnapKit/SnapKit.git"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 5.0.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 6EA127172A0BDFF50066ED7A /* SnapKit */ = { + isa = XCSwiftPackageProductDependency; + package = 6EA127162A0BDFF50066ED7A /* XCRemoteSwiftPackageReference "SnapKit" */; + productName = SnapKit; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 6E0AA31629FEA7BE00BD99C4 /* Project object */; } diff --git a/FaceBookProfile/FaceBookProfile.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist b/FaceBookProfile/FaceBookProfile.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist index 74fd661..a21a7c3 100644 --- a/FaceBookProfile/FaceBookProfile.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/FaceBookProfile/FaceBookProfile.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ FaceBookProfile.xcscheme_^#shared#^_ orderHint - 1 + 0 diff --git a/FaceBookProfile/FaceBookProfile/.DS_Store b/FaceBookProfile/FaceBookProfile/.DS_Store index a9d8fee..5d9ef00 100644 Binary files a/FaceBookProfile/FaceBookProfile/.DS_Store and b/FaceBookProfile/FaceBookProfile/.DS_Store differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/.DS_Store b/FaceBookProfile/FaceBookProfile/Assets.xcassets/.DS_Store new file mode 100644 index 0000000..0dcfb27 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/.DS_Store differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/AppIcon.appiconset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/AppIcon.appiconset/Contents.json index 13613e3..9221b9b 100644 --- a/FaceBookProfile/FaceBookProfile/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,8 +1,93 @@ { "images" : [ { - "idiom" : "universal", - "platform" : "ios", + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", "size" : "1024x1024" } ], diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/Contents.json index 73c0059..da4a164 100644 --- a/FaceBookProfile/FaceBookProfile/Assets.xcassets/Contents.json +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "author" : "xcode", - "version" : 1 + "version" : 1, + "author" : "xcode" } -} +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/Contents.json new file mode 100644 index 0000000..fb82202 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "images.jpeg", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/images.jpeg b/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/images.jpeg new file mode 100644 index 0000000..c3f9a46 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/bayMax.imageset/images.jpeg differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/Contents.json new file mode 100644 index 0000000..cb23eab --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_education_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_education_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@2x.png new file mode 100644 index 0000000..8f794cd Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@3x.png new file mode 100644 index 0000000..88e70d3 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_education.imageset/fb_glyphs_education_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/Contents.json new file mode 100644 index 0000000..6d36d37 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_calendar_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_calendar_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@2x.png new file mode 100644 index 0000000..cf558c6 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@3x.png new file mode 100644 index 0000000..8bdba01 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_events.imageset/fb_glyphs_calendar_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/Contents.json new file mode 100644 index 0000000..478399b --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_friend-friends_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_friend-friends_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@2x.png new file mode 100644 index 0000000..1198493 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@3x.png new file mode 100644 index 0000000..6c8e183 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_friends.imageset/fb_glyphs_friend-friends_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/Contents.json new file mode 100644 index 0000000..e448608 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_games_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_games_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@2x.png new file mode 100644 index 0000000..5303142 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@3x.png new file mode 100644 index 0000000..0c4a43c Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_games.imageset/fb_glyphs_games_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/Contents.json new file mode 100644 index 0000000..3494b7c --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_app-groups_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_app-groups_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@2x.png new file mode 100644 index 0000000..11f88df Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@3x.png new file mode 100644 index 0000000..3a61c81 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_groups.imageset/fb_glyphs_app-groups_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/Contents.json new file mode 100644 index 0000000..515eb48 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_question_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_question_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@2x.png new file mode 100644 index 0000000..1d26f15 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@3x.png new file mode 100644 index 0000000..4b255da Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_help_and_support.imageset/fb_glyphs_question_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/Contents.json new file mode 100644 index 0000000..5543342 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_placeholder@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_placeholder@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@2x.png new file mode 100644 index 0000000..26e0f44 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@3x.png new file mode 100644 index 0000000..2475325 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_placeholder.imageset/fb_placeholder@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/Contents.json new file mode 100644 index 0000000..c4b0f43 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_lock_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_lock_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@2x.png new file mode 100644 index 0000000..a4a4adc Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@3x.png new file mode 100644 index 0000000..0df5642 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_privacy_shortcuts.imageset/fb_glyphs_lock_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/Contents.json new file mode 100644 index 0000000..8c33362 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_gear_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_gear_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@2x.png new file mode 100644 index 0000000..9bd6c8b Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@3x.png new file mode 100644 index 0000000..f306fe4 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_settings.imageset/fb_glyphs_gear_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/Contents.json b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/Contents.json new file mode 100644 index 0000000..f54b6fe --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_house_20_20x20_@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "fb_glyphs_house_20_20x20_@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@2x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@2x.png new file mode 100644 index 0000000..3ab1b17 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@2x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@3x.png b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@3x.png new file mode 100644 index 0000000..b250464 Binary files /dev/null and b/FaceBookProfile/FaceBookProfile/Assets.xcassets/fb_town_hall.imageset/fb_glyphs_house_20_20x20_@3x.png differ diff --git a/FaceBookProfile/FaceBookProfile/Menu.swift b/FaceBookProfile/FaceBookProfile/Menu.swift new file mode 100644 index 0000000..377b4e6 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/Menu.swift @@ -0,0 +1,31 @@ +import Foundation + +class Menu { + public var menus : [[[String?]]]? + + init(){ + menus = [ + [["bayMax","BayMax \nView your Profile"]] + ,[ + ["fb_friends","Friends"] + ,["fb_events","Events"] + ,["fb_groups","Groups"] + ,["fb_education","CMU"] + ,["fb_town_hall","Town Hall"] + ,["fb_games","Instant Games"] + ,[nil,"See More"] + ] + ,[ + [nil,"Add Favorites"] + ] + ,[ + ["fb_settings","Settings"] + ,["fb_privacy_shortcuts","Privacy Shortcuts"] + ,["fb_help_and_support","Help and Support"] + ] + ,[ + [nil,"Log Out"] + ] + ] + } +} diff --git a/FaceBookProfile/FaceBookProfile/MenuCell.swift b/FaceBookProfile/FaceBookProfile/MenuCell.swift new file mode 100644 index 0000000..48ad3f6 --- /dev/null +++ b/FaceBookProfile/FaceBookProfile/MenuCell.swift @@ -0,0 +1,40 @@ + +import UIKit +import SnapKit +class MenuCell: UITableViewCell { + + lazy var menuImage = { + let imageView = UIImageView() + imageView.contentMode = .scaleAspectFit + return imageView + }() + + var menuTitle = { + let label = UILabel() + label.font = .boldSystemFont(ofSize: 24) + return label + }() + + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { + super.init(style: style, reuseIdentifier: reuseIdentifier) + setUI() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func setUI() { + self.accessoryType = .disclosureIndicator + [menuImage,menuTitle].forEach({self.addSubview($0)}) + menuImage.snp.makeConstraints { make in + make.leading.equalTo(self.safeAreaLayoutGuide.snp.leading).offset(10) + make.verticalEdges.equalToSuperview() + } + menuTitle.snp.makeConstraints { make in + make.verticalEdges.equalToSuperview() + make.leading.equalTo(menuImage.snp.trailing).offset(10) + } + } + +} diff --git a/FaceBookProfile/FaceBookProfile/SceneDelegate.swift b/FaceBookProfile/FaceBookProfile/SceneDelegate.swift index edcabe3..897d63a 100644 --- a/FaceBookProfile/FaceBookProfile/SceneDelegate.swift +++ b/FaceBookProfile/FaceBookProfile/SceneDelegate.swift @@ -13,39 +13,15 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. + guard let windowScene = (scene as? UIWindowScene) else { return } + window = UIWindow(windowScene: windowScene) + window?.rootViewController = UINavigationController(rootViewController: ViewController()) + window?.makeKeyAndVisible() + + } - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } } diff --git a/FaceBookProfile/FaceBookProfile/ViewController.swift b/FaceBookProfile/FaceBookProfile/ViewController.swift index 34b35ab..f1bf490 100644 --- a/FaceBookProfile/FaceBookProfile/ViewController.swift +++ b/FaceBookProfile/FaceBookProfile/ViewController.swift @@ -1,19 +1,85 @@ -// -// ViewController.swift -// FaceBookProfile -// -// Created by 최우태 on 2023/04/30. -// - import UIKit - +import SnapKit class ViewController: UIViewController { - + private var tabledProfile = UITableView(frame: .zero, style: .grouped) + var sectionWithRows = Menu() + override func viewDidLoad() { super.viewDidLoad() - // Do any additional setup after loading the view. + view.backgroundColor = .gray + setNavigationBar() + setTableView() + setUI() } + + func setNavigationBar() { + let navigationBarAppearance = UINavigationBarAppearance() + navigationBarAppearance.configureWithOpaqueBackground() + navigationBarAppearance.backgroundColor = #colorLiteral(red: 0.1678575873, green: 0.4667304158, blue: 0.7120113969, alpha: 1) + navigationController?.navigationBar.standardAppearance = navigationBarAppearance + navigationController?.navigationBar.scrollEdgeAppearance = navigationBarAppearance + navigationItem.scrollEdgeAppearance = navigationBarAppearance + navigationItem.standardAppearance = navigationBarAppearance + navigationItem.compactAppearance = navigationBarAppearance + navigationController?.setNeedsStatusBarAppearanceUpdate() + title = "Facebook" + } + + func setTableView() { + + tabledProfile.dataSource = self + tabledProfile.register(MenuCell.self, forCellReuseIdentifier: "menu") + } + + func setUI() { + self.view.addSubview(tabledProfile) + tabledProfile.snp.makeConstraints{make in + make.edges.equalToSuperview() + } + + } + + +} - +extension ViewController : UITableViewDataSource { + + + func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { + if section == 2 {return "Favorites"} + else {return nil} + } + + func numberOfSections(in tableView: UITableView) -> Int { + + guard let sectionCount = sectionWithRows.menus?.count else{return 0} + return sectionCount + } + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + guard let currentRows = sectionWithRows.menus?[section] else {return 0} + return currentRows.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tabledProfile.dequeueReusableCell(withIdentifier: "menu", for: indexPath) as! MenuCell + guard let currentMenu = sectionWithRows.menus?[indexPath.section][indexPath.row] else {return cell} + if let currentImage = currentMenu[0] { + cell.menuImage.image = UIImage(named: currentImage) + }else { + cell.menuTitle.snp.updateConstraints { make in + make.leading.equalTo(cell.menuImage.snp.trailing).offset(30) + } + cell.menuTitle.textColor = .systemBlue + } + cell.menuTitle.text = currentMenu[1] + if currentMenu[1] == "Log Out" { + cell.menuTitle.textColor = .systemRed + cell.menuTitle.snp.makeConstraints { make in + make.center.equalToSuperview() + } + cell.accessoryType = .none + } + return cell + } } diff --git a/Project 03_Reference/.DS_Store b/Project 03_Reference/.DS_Store index 2147ba9..b6cbddb 100644 Binary files a/Project 03_Reference/.DS_Store and b/Project 03_Reference/.DS_Store differ diff --git a/Project 03_Reference/FacebookMe.xcodeproj/project.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate b/Project 03_Reference/FacebookMe.xcodeproj/project.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate index f639fef..552159e 100644 Binary files a/Project 03_Reference/FacebookMe.xcodeproj/project.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate and b/Project 03_Reference/FacebookMe.xcodeproj/project.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Project 03_Reference/FacebookMe.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist b/Project 03_Reference/FacebookMe.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist index efbe098..9f198e6 100644 --- a/Project 03_Reference/FacebookMe.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Project 03_Reference/FacebookMe.xcodeproj/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ FacebookMe.xcscheme_^#shared#^_ orderHint - 0 + 1 diff --git a/Project 03_Reference/FacebookMe/.DS_Store b/Project 03_Reference/FacebookMe/.DS_Store index 666b610..d9a9665 100644 Binary files a/Project 03_Reference/FacebookMe/.DS_Store and b/Project 03_Reference/FacebookMe/.DS_Store differ diff --git a/Project 03_Reference/FacebookMe/Assets.xcassets/.DS_Store b/Project 03_Reference/FacebookMe/Assets.xcassets/.DS_Store new file mode 100644 index 0000000..a178470 Binary files /dev/null and b/Project 03_Reference/FacebookMe/Assets.xcassets/.DS_Store differ diff --git a/Project 03_Reference/FacebookMe/Assets.xcassets/AppIcon.appiconset/Contents.json b/Project 03_Reference/FacebookMe/Assets.xcassets/AppIcon.appiconset/Contents.json index 1d060ed..9221b9b 100644 --- a/Project 03_Reference/FacebookMe/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Project 03_Reference/FacebookMe/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -2,92 +2,97 @@ "images" : [ { "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" + "scale" : "2x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" + "scale" : "3x", + "size" : "20x20" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" + "scale" : "2x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" + "scale" : "3x", + "size" : "29x29" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" + "scale" : "2x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" + "scale" : "3x", + "size" : "40x40" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" + "scale" : "2x", + "size" : "60x60" }, { "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" + "scale" : "3x", + "size" : "60x60" }, { "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" + "scale" : "1x", + "size" : "20x20" }, { "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" + "scale" : "2x", + "size" : "20x20" }, { "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" + "scale" : "1x", + "size" : "29x29" }, { "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" + "scale" : "2x", + "size" : "29x29" }, { "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" + "scale" : "1x", + "size" : "40x40" }, { "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" + "scale" : "2x", + "size" : "40x40" }, { "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" + "scale" : "1x", + "size" : "76x76" }, { "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" + "scale" : "2x", + "size" : "76x76" }, { "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" } ], "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/Project3.xcworkspace/contents.xcworkspacedata b/Project3.xcworkspace/contents.xcworkspacedata index 82937b7..f7e82e1 100644 --- a/Project3.xcworkspace/contents.xcworkspacedata +++ b/Project3.xcworkspace/contents.xcworkspacedata @@ -1,63 +1,12 @@ + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Project3.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Project3.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..009c162 --- /dev/null +++ b/Project3.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,14 @@ +{ + "pins" : [ + { + "identity" : "snapkit", + "kind" : "remoteSourceControl", + "location" : "https://github.com/SnapKit/SnapKit.git", + "state" : { + "revision" : "f222cbdf325885926566172f6f5f06af95473158", + "version" : "5.6.0" + } + } + ], + "version" : 2 +} diff --git a/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate index 5b66183..5079962 100644 Binary files a/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate and b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..b685c10 --- /dev/null +++ b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1995a53 --- /dev/null +++ b/Project3.xcworkspace/xcuserdata/wootae.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,30 @@ + + + + + SchemeUserState + + SnapKitPlayground (Playground) 1.xcscheme + + isShown + + orderHint + 3 + + SnapKitPlayground (Playground) 2.xcscheme + + isShown + + orderHint + 4 + + SnapKitPlayground (Playground).xcscheme + + isShown + + orderHint + 0 + + + +