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
63b5483a
Commit
63b5483a
authored
Apr 07, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 不使用的代码
parent
5919fdb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
UIDevice+Extension.swift
...y/galaxy/Classes/Tools/Extention/UIDevice+Extension.swift
+2
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+0
-10
No files found.
galaxy/galaxy/Classes/Tools/Extention/UIDevice+Extension.swift
View file @
63b5483a
...
@@ -22,6 +22,8 @@ extension UIDevice {
...
@@ -22,6 +22,8 @@ extension UIDevice {
static
let
kSystemVersion
:
String
=
UIDevice
.
current
.
systemVersion
static
let
kSystemVersion
:
String
=
UIDevice
.
current
.
systemVersion
// MARK: - 顶部安全区高度
// MARK: - 顶部安全区高度
static
func
bs_safeDistanceTop
()
->
CGFloat
{
static
func
bs_safeDistanceTop
()
->
CGFloat
{
if
#available(iOS 13.0, *)
{
if
#available(iOS 13.0, *)
{
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
63b5483a
...
@@ -107,16 +107,6 @@ func ClassFromString(className: String) -> UIViewController? {
...
@@ -107,16 +107,6 @@ func ClassFromString(className: String) -> UIViewController? {
}
}
}
}
/** 判断字符串是否为空 */
func
kIsEmpty
(
string
:
String
)
->
Bool
{
if
string
.
isEmpty
||
string
==
""
{
return
true
}
else
{
return
false
}
}
/// 版本号相同:
/// 版本号相同:
func
systemVersionEqual
(
version
:
String
)
->
Bool
{
func
systemVersionEqual
(
version
:
String
)
->
Bool
{
return
UIDevice
.
current
.
systemVersion
==
version
return
UIDevice
.
current
.
systemVersion
==
version
...
...
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