Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# General

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails

._*

## User settings

xcuserdata/

- .xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)

build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.ipa
*.xcuserstate

### Xcode Patch

*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno
**/xcshareddata/WorkspaceSettings.xcsettings

### AppCode

.idea/*

### fastlane

fastlane/report.xml

- .generated.swift
*.xcuserstate
41 changes: 27 additions & 14 deletions Login page layout.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@
600A670729A88446002EA0DC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 600A670629A88446002EA0DC /* AppDelegate.swift */; };
600A670929A88446002EA0DC /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 600A670829A88446002EA0DC /* SceneDelegate.swift */; };
600A670B29A88446002EA0DC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 600A670A29A88446002EA0DC /* ViewController.swift */; };
600A670E29A88446002EA0DC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 600A670C29A88446002EA0DC /* Main.storyboard */; };
600A671029A88448002EA0DC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 600A670F29A88448002EA0DC /* Assets.xcassets */; };
600A671329A88448002EA0DC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 600A671129A88448002EA0DC /* LaunchScreen.storyboard */; };
600A671C29A88A1E002EA0DC /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = 600A671B29A88A1E002EA0DC /* SnapKit */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
600A670329A88446002EA0DC /* Login page layout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Login page layout.app"; sourceTree = BUILT_PRODUCTS_DIR; };
600A670629A88446002EA0DC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
600A670829A88446002EA0DC /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
600A670A29A88446002EA0DC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
600A670D29A88446002EA0DC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
600A670F29A88448002EA0DC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
600A671229A88448002EA0DC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
600A671429A88448002EA0DC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -31,6 +30,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
600A671C29A88A1E002EA0DC /* SnapKit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -59,7 +59,6 @@
600A670629A88446002EA0DC /* AppDelegate.swift */,
600A670829A88446002EA0DC /* SceneDelegate.swift */,
600A670A29A88446002EA0DC /* ViewController.swift */,
600A670C29A88446002EA0DC /* Main.storyboard */,
600A670F29A88448002EA0DC /* Assets.xcassets */,
600A671129A88448002EA0DC /* LaunchScreen.storyboard */,
600A671429A88448002EA0DC /* Info.plist */,
Expand All @@ -83,6 +82,9 @@
dependencies = (
);
name = "Login page layout";
packageProductDependencies = (
600A671B29A88A1E002EA0DC /* SnapKit */,
);
productName = "Login page layout";
productReference = 600A670329A88446002EA0DC /* Login page layout.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -111,6 +113,9 @@
Base,
);
mainGroup = 600A66FA29A88446002EA0DC;
packageReferences = (
600A671A29A88A1E002EA0DC /* XCRemoteSwiftPackageReference "SnapKit" */,
);
productRefGroup = 600A670429A88446002EA0DC /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -127,7 +132,6 @@
files = (
600A671329A88448002EA0DC /* LaunchScreen.storyboard in Resources */,
600A671029A88448002EA0DC /* Assets.xcassets in Resources */,
600A670E29A88446002EA0DC /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -147,14 +151,6 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
600A670C29A88446002EA0DC /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
600A670D29A88446002EA0DC /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
600A671129A88448002EA0DC /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -292,7 +288,6 @@
INFOPLIST_FILE = "Login page layout/Info.plist";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -320,7 +315,6 @@
INFOPLIST_FILE = "Login page layout/Info.plist";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -358,6 +352,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
600A671A29A88A1E002EA0DC /* XCRemoteSwiftPackageReference "SnapKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/SnapKit/SnapKit.git";
requirement = {
branch = develop;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
600A671B29A88A1E002EA0DC /* SnapKit */ = {
isa = XCSwiftPackageProductDependency;
package = 600A671A29A88A1E002EA0DC /* XCRemoteSwiftPackageReference "SnapKit" */;
productName = SnapKit;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 600A66FB29A88446002EA0DC /* Project object */;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,48 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>SnapKitPlayground (Playground) 1.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>3</integer>
</dict>
<key>SnapKitPlayground (Playground) 2.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>4</integer>
</dict>
<key>SnapKitPlayground (Playground) 3.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>SnapKitPlayground (Playground) 4.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>5</integer>
</dict>
<key>SnapKitPlayground (Playground) 5.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>6</integer>
</dict>
<key>SnapKitPlayground (Playground).xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>2</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "background.jpeg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Login page layout/Assets.xcassets/facebook.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше сделай картинку single scale, и в swift лучше загружать картинки в pdf формате

"images" : [
{
"filename" : "facebook.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Login page layout/Assets.xcassets/twitter.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "twitter.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions Login page layout/Base.lproj/Main.storyboard

This file was deleted.

2 changes: 0 additions & 2 deletions Login page layout/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
Expand Down
10 changes: 6 additions & 4 deletions Login page layout/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ 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 }

guard let windowScene = (scene as? UIWindowScene) else { return }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @Adletski

let window = UIWindow(windowScene: windowScene)
window.rootViewController = ViewController()
window.makeKeyAndVisible()
self.window = window
}

func sceneDidDisconnect(_ scene: UIScene) {
Expand Down
Loading