Skip to content

Commit

Permalink
[Chore]: Rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
N3v1 committed Feb 24, 2024
1 parent 61cbb41 commit 7986720
Show file tree
Hide file tree
Showing 20 changed files with 115 additions and 230 deletions.
212 changes: 48 additions & 164 deletions SLAvatarKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// AAnimoji.h
// AFAnimoji.h
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
//

#include <Foundation/Foundation.h>

@interface AAnimoji : NSObject
@interface AFAnimoji : NSObject

@end
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// AAVRecordView.h
// AFVRecordView.h
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
//

#include <Foundation/Foundation.h>

@interface AAVRecordView : NSObject
@interface AFVRecordView : NSObject

@end
2 changes: 1 addition & 1 deletion SLAvatarKit/AvatarKit/Animojis/Service/AAnimoji.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import SceneKit

public protocol AAnimojiDelegate: AnyObject {
public protocol AFAnimojiDelegate: AnyObject {
func didFinishPlaying(_ animoji: Animoji)
func didStartRecording(_ animoji: Animoji)
func didStopRecording(_ animoji: Animoji)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AAnimojiView.h
// AFAnimojiView.h
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
Expand All @@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
#import <SceneKit/SceneKit.h>

@interface AAnimojiView : SCNView
@interface AFAnimojiView : SCNView

- (void)setPuppetName: (NSString *)puppetName;
+ (NSArray *)puppetName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//

#import <Foundation/Foundation.h>
#import "AAnimojiView.h"
#import "AFAnimojiView.h"
#import <objc/runtime.h>

@interface AAnimojiView ()
@interface AFAnimojiView ()

@end
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// AAnimoji.m
// AFAnimoji.m
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
//

#import <Foundation/Foundation.h>
#import "../Include/AAnimoji.h"
#import "../Include/AFAnimoji.h"

@implementation AAnimoji
@implementation AFAnimoji

@end
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// AAVRecordView.m
// AFVRecordView.m
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
//

#import <Foundation/Foundation.h>
#import "../Include/AAVRecordView.h"
#import "../Include/AFVRecordView.h"

@implementation AAVRecordView
@implementation AFVRecordView

@end
31 changes: 31 additions & 0 deletions SLAvatarKit/AvatarKitUI/Core/Agreement/AFAgreement.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// AFAgreement.swift
// SLAvatarKit
//
// Created by Nevio Hirani on 24.02.24.
//

import SwiftUI

struct AFAgreement: View {

let appName: String

init(appName: String) {
self.appName = appName
}

var body: some View {
VStack {
Image(.memojisHeader)
.resizable()
.scaledToFit()
.frame(width: UIScreen.main.bounds.width, alignment: .center)

VStack(alignment: .leading) {
Text("Express Yourself Beyond Words – Unleash the Power of Your Avatar on \(appName)")
}
}
.padding()
}
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
//
// AAvatarManagement.swift
// AFAvatarManagement.swift
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
//

import SwiftUI

/// `AAvatarManagement` is a SwiftUI view for managing avatars within the SLAvatarKit framework.
/// `AFAvatarManagement` is a SwiftUI view for managing avatars within the SLAvatarKit framework.
///
/// - Parameters:
/// - url: The URL to direct users for more information about avatar creation and management.
///
/// This view provides a user interface for creating, managing, and customizing avatars on ScribbleLab. Users can explore various features related to avatars, including creation, management, and access to security and privacy settings.
///
/// - Note: Ensure the URL is a valid and accessible resource.
struct AAvatarManagement: View {
struct AFAvatarManagement: View {
@Environment(\.dismiss) var dismiss
@Environment(\.openURL) var openURL

let url: String
let appName: String

/// Creates an instance of `AAvatarManagement`.
/// Creates an instance of `AFAvatarManagement`.
/// - Parameters:
/// - url: The URL to direct users for more information about avatar creation and management.
/// - Note: Ensure the URL is a valid and accessible resource.
init(url: String) {
init(url: String, appName: String) {
self.url = url
self.appName = appName
}

@State private var createAvartarSheet: Bool = false
Expand All @@ -50,7 +52,7 @@ struct AAvatarManagement: View {
.font(.headline)

VStack(alignment: .leading) {
Text("Express Yourself Beyond Words – Unleash the Power of Your Avatar on ScribbleLab")
Text("Express Yourself Beyond Words – Unleash the Power of Your Avatar on \(appName)")
.font(.subheadline)
.multilineTextAlignment(.center)
.foregroundStyle(.secondary)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AAvatarManagementModel.h
// AFAvatarManagementModel.h
// SLAvatarKit
//
// Created by Nevio Hirani on 18.02.24.
Expand All @@ -8,9 +8,9 @@
#import <Foundation/Foundation.h>

/**
`AAvatarManagementModel` is a class that provides functionality related to avatar management.
`AFAvatarManagementModel` is a class that provides functionality related to avatar management.
*/
@interface AAvatarManagementModel : NSObject
@interface AFAvatarManagementModel : NSObject

/**
Creates an avatar.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//

#import <Foundation/Foundation.h>
#import "AAvatarManagementModel.h"
#import "AFAvatarManagementModel.h"


@implementation AAvatarManagementModel
@implementation AFAvatarManagementModel

- (void)createAvatar {
NSLog(@"Create Avatar!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"scale" : "1x"
},
{
"filename" : "SLAvatarKit@1x 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "SLAvatarKit@1x 2.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"scale" : "1x"
},
{
"filename" : "memojis-header@1x 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "memojis-header@1x 2.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions SLAvatarKit/SLAvatarKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ FOUNDATION_EXPORT const unsigned char SLAvatarKitVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <SLAvatarKit/PublicHeader.h>

//! Managing Avatars
#import <SLAvatarKit/AAvatarManagementModel.h>
#import <SLAvatarKit/AFAvatarManagementModel.h>

//! Animoji recoding view
#import <SLAvatarKit/AAnimojiView.h>
#import <SLAvatarKit/AFAnimojiView.h>

#import <SLAvatarKit/AAVRecordView.h>
#import <SLAvatarKit/AFVRecordView.h>

#import <SLAvatarKit/AAnimoji.h>
#import <SLAvatarKit/AFAnimoji.h>
36 changes: 0 additions & 36 deletions SLAvatarKitTests/SLAvatarKitTests.swift

This file was deleted.

0 comments on commit 7986720

Please sign in to comment.