Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
b9ee7076
Commit
b9ee7076
authored
Dec 20, 2023
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本项目框架
parent
4ea4bd6b
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
255 additions
and
198 deletions
+255
-198
Podfile
galaxy/Podfile
+8
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+78
-41
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+21
-16
LaunchScreen.storyboard
galaxy/galaxy/Base.lproj/LaunchScreen.storyboard
+0
-25
Main.storyboard
galaxy/galaxy/Base.lproj/Main.storyboard
+0
-24
YHBaseViewController.swift
galaxy/galaxy/Base/Controller/YHBaseViewController.swift
+29
-0
YHNavigationViewController.swift
...y/galaxy/Base/Controller/YHNavigationViewController.swift
+29
-0
YHTabbarViewController.swift
galaxy/galaxy/Base/Controller/YHTabbarViewController.swift
+30
-0
Info.plist
galaxy/galaxy/Info.plist
+1
-21
YHHomeViewController.swift
...galaxy/Modules/Home/Controller/YHHomeViewController.swift
+30
-0
YHMyViewController.swift
galaxy/galaxy/Modules/My/Controller/YHMyViewController.swift
+29
-0
SceneDelegate.swift
galaxy/galaxy/SceneDelegate.swift
+0
-52
ViewController.swift
galaxy/galaxy/ViewController.swift
+0
-19
No files found.
galaxy/Podfile
View file @
b9ee7076
...
...
@@ -21,7 +21,15 @@ target 'galaxy' do
pod
'CryptoSwift'
,
'1.8.0'
#手动布局
pod
'SnapKit'
,
'5.6.0'
<<<<<<<
Updated
upstream
#上拉、下拉状态展示
pod
'Refresher'
,
'0.7.0'
=======
pod
'ESTabBarController-swift'
,
'2.8.0'
pod
'IQKeyboardManagerSwift'
,
'6.5.10'
>>>>>>>
Stashed
changes
end
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
b9ee7076
This diff is collapsed.
Click to expand it.
galaxy/galaxy/AppDelegate.swift
View file @
b9ee7076
...
...
@@ -6,32 +6,37 @@
//
import
UIKit
import
ESTabBarController_swift
import
IQKeyboardManagerSwift
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
var
window
:
UIWindow
?
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
// Override point for customization after application launch.
setupMainWindow
()
return
true
}
//1.设置主窗口
private
func
setupMainWindow
()
{
let
tabBarController
=
YHTabbarViewController
()
let
v1
=
YHNavigationViewController
(
rootViewController
:
YHHomeViewController
())
// MARK: UISceneSession Lifecycle
func
application
(
_
application
:
UIApplication
,
configurationForConnecting
connectingSceneSession
:
UISceneSession
,
options
:
UIScene
.
ConnectionOptions
)
->
UISceneConfiguration
{
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return
UISceneConfiguration
(
name
:
"Default Configuration"
,
sessionRole
:
connectingSceneSession
.
role
)
}
let
v2
=
YHNavigationViewController
(
rootViewController
:
YHMyViewController
())
func
application
(
_
application
:
UIApplication
,
didDiscardSceneSessions
sceneSessions
:
Set
<
UISceneSession
>
)
{
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
v1
.
tabBarItem
=
ESTabBarItem
.
init
(
ESTabBarItemContentView
(),
title
:
"首页"
,
image
:
UIImage
(
named
:
"home"
),
selectedImage
:
UIImage
(
named
:
"home_1"
))
v2
.
tabBarItem
=
ESTabBarItem
.
init
(
ESTabBarItemContentView
(),
title
:
"我的"
,
image
:
UIImage
(
named
:
"main"
),
selectedImage
:
UIImage
(
named
:
"find_1"
))
tabBarController
.
viewControllers
=
[
v1
,
v2
]
tabBarController
.
tabBar
.
backgroundColor
=
.
white
window
=
UIWindow
(
frame
:
UIScreen
.
main
.
bounds
)
window
?
.
rootViewController
=
tabBarController
window
?
.
makeKeyAndVisible
()
window
?
.
backgroundColor
=
.
white
}
}
galaxy/galaxy/Base.lproj/LaunchScreen.storyboard
deleted
100644 → 0
View file @
4ea4bd6b
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13122.16"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"01J-lp-oVM"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13104.12"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID=
"EHf-IW-A2E"
>
<objects>
<viewController
id=
"01J-lp-oVM"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
xcode11CocoaTouchSystemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"6Tk-OE-BBY"
/>
</view>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"53"
y=
"375"
/>
</scene>
</scenes>
</document>
galaxy/galaxy/Base.lproj/Main.storyboard
deleted
100644 → 0
View file @
4ea4bd6b
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13122.16"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"BYZ-38-t0r"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13104.12"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID=
"tne-QT-ifu"
>
<objects>
<viewController
id=
"BYZ-38-t0r"
customClass=
"ViewController"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"8bC-Xf-vdC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
xcode11CocoaTouchSystemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"6Tk-OE-BBY"
/>
</view>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"dkx-z0-nzr"
sceneMemberID=
"firstResponder"
/>
</objects>
</scene>
</scenes>
</document>
galaxy/galaxy/Base/Controller/YHBaseViewController.swift
0 → 100644
View file @
b9ee7076
//
// YHBaseViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import
UIKit
class
YHBaseViewController
:
UIViewController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
galaxy/galaxy/Base/Controller/YHNavigationViewController.swift
0 → 100644
View file @
b9ee7076
//
// YHNavigationViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import
UIKit
class
YHNavigationViewController
:
UINavigationController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
galaxy/galaxy/Base/Controller/YHTabbarViewController.swift
0 → 100644
View file @
b9ee7076
//
// YHTabbarViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import
UIKit
import
ESTabBarController_swift
class
YHTabbarViewController
:
ESTabBarController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
tabBar
.
shadowImage
=
UIImage
()
self
.
tabBar
.
backgroundImage
=
UIImage
()
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
galaxy/galaxy/Info.plist
View file @
b9ee7076
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
UIApplicationSceneManifest
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
UIApplicationSupportsMultipleScenes
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
UISceneConfigurations
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
UIWindowSceneSessionRoleApplication
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
UISceneConfigurationName
<
/k
e
y
>
<
string
>
Default
Configuration
<
/string
>
<
k
e
y
>
UISceneDelegateClassName
<
/k
e
y
>
<
string
>
$
(
PRODUCT_MODULE_NAME
)
.SceneDelegate
<
/string
>
<
k
e
y
>
UISceneStoryboardFile
<
/k
e
y
>
<
string
>
Main
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
d
i
c
t/
>
<
/plist
>
galaxy/galaxy/Modules/Home/Controller/YHHomeViewController.swift
0 → 100644
View file @
b9ee7076
//
// YHHomeViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import
UIKit
class
YHHomeViewController
:
YHBaseViewController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
print
(
"22222"
)
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
galaxy/galaxy/Modules/My/Controller/YHMyViewController.swift
0 → 100644
View file @
b9ee7076
//
// YHMainViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import
UIKit
class
YHMyViewController
:
YHBaseViewController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
print
(
"11111"
)
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
galaxy/galaxy/SceneDelegate.swift
deleted
100644 → 0
View file @
4ea4bd6b
//
// SceneDelegate.swift
// galaxy
//
// Created by davidhuangA on 2023/12/19.
//
import
UIKit
class
SceneDelegate
:
UIResponder
,
UIWindowSceneDelegate
{
var
window
:
UIWindow
?
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.
}
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.
}
}
galaxy/galaxy/ViewController.swift
deleted
100644 → 0
View file @
4ea4bd6b
//
// ViewController.swift
// galaxy
//
// Created by davidhuangA on 2023/12/19.
//
import
UIKit
class
ViewController
:
UIViewController
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment