Skip to content

Commit

Permalink
[Chore]: AAvatarManagementView
Browse files Browse the repository at this point in the history
  • Loading branch information
N3v1 committed Feb 18, 2024
1 parent 880a1eb commit f6d9ebf
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 0 deletions.
26 changes: 26 additions & 0 deletions SLAvatarKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
388472A22B811A1A00D61AEE /* SLAvatarKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 388472972B811A1A00D61AEE /* SLAvatarKit.framework */; };
388472A72B811A1A00D61AEE /* SLAvatarKitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388472A62B811A1A00D61AEE /* SLAvatarKitTests.swift */; };
388472A82B811A1A00D61AEE /* SLAvatarKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 3884729A2B811A1A00D61AEE /* SLAvatarKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
388472B52B8235E600D61AEE /* AAvatarManagement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388472B42B8235E600D61AEE /* AAvatarManagement.swift */; };
388472B92B8239FD00D61AEE /* AAvatarManagementModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 388472B82B8239FD00D61AEE /* AAvatarManagementModel.m */; };
388472BB2B823AB600D61AEE /* AAvatarManagementModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 388472BA2B823AB600D61AEE /* AAvatarManagementModel.h */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -29,6 +32,9 @@
3884729B2B811A1A00D61AEE /* SLAvatarKit.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = SLAvatarKit.docc; sourceTree = "<group>"; };
388472A12B811A1A00D61AEE /* SLAvatarKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SLAvatarKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
388472A62B811A1A00D61AEE /* SLAvatarKitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SLAvatarKitTests.swift; sourceTree = "<group>"; };
388472B42B8235E600D61AEE /* AAvatarManagement.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AAvatarManagement.swift; sourceTree = "<group>"; };
388472B82B8239FD00D61AEE /* AAvatarManagementModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AAvatarManagementModel.m; sourceTree = "<group>"; };
388472BA2B823AB600D61AEE /* AAvatarManagementModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AAvatarManagementModel.h; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -90,6 +96,7 @@
388472B12B81209D00D61AEE /* AvatarKitUI */ = {
isa = PBXGroup;
children = (
388472B32B8235D300D61AEE /* Management */,
);
path = AvatarKitUI;
sourceTree = "<group>";
Expand All @@ -101,13 +108,24 @@
path = AvatarKit;
sourceTree = "<group>";
};
388472B32B8235D300D61AEE /* Management */ = {
isa = PBXGroup;
children = (
388472B42B8235E600D61AEE /* AAvatarManagement.swift */,
388472B82B8239FD00D61AEE /* AAvatarManagementModel.m */,
388472BA2B823AB600D61AEE /* AAvatarManagementModel.h */,
);
path = Management;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
388472922B811A1A00D61AEE /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
388472BB2B823AB600D61AEE /* AAvatarManagementModel.h in Headers */,
388472A82B811A1A00D61AEE /* SLAvatarKit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -163,6 +181,7 @@
TargetAttributes = {
388472962B811A1A00D61AEE = {
CreatedOnToolsVersion = 15.2;
LastSwiftMigration = 1520;
};
388472A02B811A1A00D61AEE = {
CreatedOnToolsVersion = 15.2;
Expand Down Expand Up @@ -210,7 +229,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
388472B92B8239FD00D61AEE /* AAvatarManagementModel.m in Sources */,
3884729C2B811A1A00D61AEE /* SLAvatarKit.docc in Sources */,
388472B52B8235E600D61AEE /* AAvatarManagement.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -356,6 +377,7 @@
388472AC2B811A1A00D61AEE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -386,6 +408,7 @@
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -394,6 +417,7 @@
388472AD2B811A1A00D61AEE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
Expand Down Expand Up @@ -432,6 +456,7 @@
388472AF2B811A1A00D61AEE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = W93RMB5CDG;
Expand All @@ -452,6 +477,7 @@
388472B02B811A1A00D61AEE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = W93RMB5CDG;
Expand Down
108 changes: 108 additions & 0 deletions SLAvatarKit/AvatarKitUI/Management/AAvatarManagement.swift
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 SLAvatarKit/AvatarKitUI/Management/AAvatarManagementModel.h
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 SLAvatarKit/AvatarKitUI/Management/AAvatarManagementModel.m
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

0 comments on commit f6d9ebf

Please sign in to comment.