-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
SLAvatarKit/AvatarKitUI/Management/AAvatarManagement.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// | ||
// AAvatarManagement.swift | ||
// SLAvatarKit | ||
// | ||
// Created by Nevio Hirani on 18.02.24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct AAvatarManagement: View { | ||
@Environment(\.dismiss) var dismiss | ||
@Environment(\.openURL) var openURL | ||
|
||
@State private var createAvartarSheet: Bool = false | ||
@State private var allowAvartars: Bool = false | ||
|
||
var body: some View { | ||
NavigationStack { | ||
VStack { | ||
Form { // List | ||
Section { | ||
HStack { | ||
Spacer() | ||
|
||
VStack { | ||
Image("") | ||
.resizable() | ||
.scaledToFit() | ||
.frame(width: 500, alignment: .center) | ||
|
||
Text("Avatars") | ||
.font(.headline) | ||
|
||
VStack(alignment: .leading) { | ||
Text("Express Yourself Beyond Words – Unleash the Power of Your Avatar on ScribbleLab") | ||
.font(.subheadline) | ||
.multilineTextAlignment(.center) | ||
.foregroundStyle(.secondary) | ||
} | ||
} | ||
|
||
Spacer() | ||
} | ||
} | ||
|
||
Section { | ||
Button { | ||
createAvartarSheet.toggle() | ||
} label: { | ||
Label("Create your avatar", systemImage: "plus.viewfinder") | ||
} | ||
} footer: { | ||
Text("When creating an avatar you agree to ScribbleLab's Terms Of Use and LICENSE") | ||
} | ||
|
||
Section { | ||
NavigationLink("Manage Avatars") { | ||
|
||
} | ||
NavigationLink("Security & Privacy") { | ||
|
||
} | ||
} header: { | ||
Text("Avatar-Settings") | ||
} | ||
|
||
Section { | ||
Button { | ||
print("DEBUG: Open avatars docs") | ||
|
||
openURL(URL(string: "https://github.com/ScribbleLabApp/ScribbleLab")!) | ||
} label: { | ||
HStack { | ||
Text("Learn more") | ||
|
||
Spacer() | ||
|
||
Image(systemName: "chevron.right") | ||
.font(.caption) | ||
.fontWeight(.semibold) | ||
.foregroundStyle(.secondary) | ||
} | ||
} | ||
.tint(.primary) | ||
} footer: { | ||
Text("Learn more about how to create and manage avatars by visiting our docs") | ||
} | ||
} | ||
} | ||
.toolbar { | ||
ToolbarItem(placement: .topBarTrailing) { | ||
Button { | ||
createAvartarSheet.toggle() | ||
} label: { | ||
Image(systemName: "plus.viewfinder") | ||
.fontWeight(.semibold) | ||
} | ||
.sheet(isPresented: $createAvartarSheet) { | ||
// CreateAvatarView() | ||
} | ||
} | ||
} | ||
.navigationTitle("Avatar") | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
.tint(.orange) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
SLAvatarKit/AvatarKitUI/Management/AAvatarManagementModel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// AAvatarManagementModel.h | ||
// SLAvatarKit | ||
// | ||
// Created by Nevio Hirani on 18.02.24. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface AAvatarManagementModel : NSObject | ||
|
||
- (void)createAvatar; | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
SLAvatarKit/AvatarKitUI/Management/AAvatarManagementModel.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// AAvatarManagementModel.m | ||
// SLAvatarKit | ||
// | ||
// Created by Nevio Hirani on 18.02.24. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "AAvatarManagementModel.h" | ||
|
||
|
||
@implementation AAvatarManagementModel | ||
|
||
- (void)createAvatar { | ||
NSLog(@"Create Avatar!"); | ||
} | ||
|
||
@end |