Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
3048c9af
Commit
3048c9af
authored
May 09, 2025
by
CZ1004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】设置弹窗
parent
77da9609
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
9 deletions
+51
-9
BaseAlertView.swift
...Session/Contact/View/Common/AlertView/BaseAlertView.swift
+42
-0
ContactBacRestoreAlertView.swift
...ct/View/Common/AlertView/ContactBacRestoreAlertView.swift
+1
-1
ContactBackUpCompletedAlertView.swift
...ew/Common/AlertView/ContactBackUpCompletedAlertView.swift
+1
-1
ContactBackUpDeleteCompletedAlertView.swift
...mon/AlertView/ContactBackUpDeleteCompletedAlertView.swift
+1
-1
ContactBackUpNoDataAlertView.swift
.../View/Common/AlertView/ContactBackUpNoDataAlertView.swift
+1
-1
ContactBackupAlertView.swift
...ontact/View/Common/AlertView/ContactBackupAlertView.swift
+2
-2
ContactDeleteAlertView.swift
...ontact/View/Common/AlertView/ContactDeleteAlertView.swift
+1
-1
ContactMergeAlertView.swift
...Contact/View/Common/AlertView/ContactMergeAlertView.swift
+1
-1
ContactRestoreSuccessView.swift
...act/View/Common/AlertView/ContactRestoreSuccessView.swift
+1
-1
No files found.
PhoneManager/Class/Session/Contact/View/Common/AlertView/BaseAlertView.swift
0 → 100644
View file @
3048c9af
//
// BaseAlertView.swift
// PhoneManager
//
// Created by edy on 2025/5/9.
//
import
Foundation
import
SnapKit
class
BaseAlertView
:
UIView
{
private
var
bottomConstraint
:
Constraint
?
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
// 先显示背景,然后延迟显示弹框
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.1
)
{
UIView
.
animate
(
withDuration
:
0.1
)
{
// 更新约束
self
.
bottomConstraint
?
.
update
(
offset
:
0
)
self
.
layoutIfNeeded
()
}
}
}
override
func
removeFromSuperview
()
{
UIView
.
animate
(
withDuration
:
0.2
)
{
// 更新约束
self
.
backgroundColor
=
.
clear
self
.
bottomConstraint
?
.
update
(
offset
:
self
.
height
)
self
.
layoutIfNeeded
()
}
completion
:
{
_
in
super
.
removeFromSuperview
()
}
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
}
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactBacRestoreAlertView.swift
View file @
3048c9af
...
...
@@ -13,7 +13,7 @@ class ContactBacRestoreAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactBackUpCompletedAlertView.swift
View file @
3048c9af
...
...
@@ -12,7 +12,7 @@ class ContactBackUpCompletedAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactBackUpDeleteCompletedAlertView.swift
View file @
3048c9af
...
...
@@ -14,7 +14,7 @@ class ContactBackUpDeleteCompletedAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactBackUpNoDataAlertView.swift
View file @
3048c9af
...
...
@@ -11,7 +11,7 @@ class ContactBackUpNoDataAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactBackupAlertView.swift
View file @
3048c9af
...
...
@@ -8,12 +8,13 @@
import
Foundation
class
ContactBackupAlertView
:
UIView
{
var
sureCallBack
:
(
Bool
)
->
Void
=
{
isSure
in
}
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
@@ -124,7 +125,6 @@ class ContactBackupAlertView : UIView {
make
.
height
.
equalTo
(
46
)
}
}
@objc
private
func
dismissAlert
()
{
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactDeleteAlertView.swift
View file @
3048c9af
...
...
@@ -13,7 +13,7 @@ class ContactDeleteAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactMergeAlertView.swift
View file @
3048c9af
...
...
@@ -13,7 +13,7 @@ class ContactMergeAlertView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
view
}()
...
...
PhoneManager/Class/Session/Contact/View/Common/AlertView/ContactRestoreSuccessView.swift
View file @
3048c9af
...
...
@@ -11,7 +11,7 @@ class ContactRestoreSuccessView : UIView {
// 懒加载背景视图
private
lazy
var
backgroundView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
black
.
withAlphaComponent
(
0.5
)
view
.
backgroundColor
=
UIColor
(
red
:
1
,
green
:
1
,
blue
:
1
,
alpha
:
0.4000
)
return
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