Skip to content

Manic EMU is an all-in-one retro game emulator for iOS. It packs powerful features while keeping a clean, sleek UI and delivering buttery-smooth gameplay.

Swift

update 1.8.0

Daiunoebaf7c3c15ca
diff --git a/Cores/DeltaCore/DeltaCore/Cores/DeltaCoreProtocol.swift b/Cores/DeltaCore/DeltaCore/Cores/DeltaCoreProtocol.swift
index eb8bf361..9400393a 100644
--- a/Cores/DeltaCore/DeltaCore/Cores/DeltaCoreProtocol.swift
+++ b/Cores/DeltaCore/DeltaCore/Cores/DeltaCoreProtocol.swift
@@ -22,6 +22,8 @@ public protocol ManicEmuCoreProtocol: CustomStringConvertible
// Should be associated type, but Swift type system makes this difficult, so ¯\_(ツ)_/¯
var gameInputType: Input.Type { get }
+ var allInputs: [Input] { get }
+
/* Rendering */
var audioFormat: AVAudioFormat { get }
var videoFormat: VideoFormat { get }
diff --git a/Cores/Libretro/runloop.c b/Cores/Libretro/runloop.c
index cfca5836..6670852a 100644
--- a/Cores/Libretro/runloop.c
+++ b/Cores/Libretro/runloop.c
@@ -350,6 +350,18 @@ void set_melonds_wfc_dns(const char *dns) {
g_melonds_wfc_dns = strdup(dns);
}
+//定义3DS的布局信息
+static const char *g_azahar_custom_layout = NULL;
+void set_azahar_custom_layout(const char *layout) {
+ g_azahar_custom_layout = strdup(layout);
+}
+
+//定义Shutdown通知
+static LogCallback g_log_callback = NULL;
+void log_register_callback(LogCallback callback) {
+ g_log_callback = callback;
+}
+
static runloop_state_t runloop_state = {0};
/* GLOBAL POINTER GETTERS */
@@ -911,6 +923,14 @@ static void libretro_log_cb(
enum retro_log_level level,
const char *fmt, ...)
{
+ /* 先调用自定义回调 */
+ if (g_log_callback) {
+ va_list vp_copy;
+ va_start(vp_copy, fmt);
+ g_log_callback(level, fmt, vp_copy);
+ va_end(vp_copy);
+ }
+
va_list vp;
unsigned libretro_log_level = config_get_ptr()->uints.libretro_log_level;
@@ -1447,6 +1467,11 @@ bool runloop_environment_cb(unsigned cmd, void *data)
var->value = strdup(g_melonds_wfc_dns);
break;
}
+
+ if (g_azahar_custom_layout && string_is_equal(var->key, "citra_custom_layout_config")) {
+ var->value = strdup(g_azahar_custom_layout);
+ break;
+ }
if (core_option_manager_get_idx(runloop_st->core_options,
var->key, &opt_idx))
diff --git a/Cores/Libretro/runloop.h b/Cores/Libretro/runloop.h
index 3e9d270e..bc6c683b 100644
--- a/Cores/Libretro/runloop.h
+++ b/Cores/Libretro/runloop.h
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
+#include <stdarg.h>
#include <boolean.h>
#include <retro_inline.h>
@@ -321,6 +322,13 @@ void set_melonds_custom_layout(const char *layout);
//定义WFC NDS信息
void set_melonds_wfc_dns(const char *dns);
+//定义3DS的布局信息
+void set_azahar_custom_layout(const char *layout);
+
+//定义日志回调
+typedef void (*LogCallback)(enum retro_log_level level, const char *fmt, va_list args);
+void log_register_callback(LogCallback callback);
+
void runloop_path_fill_names(void);
/**
diff --git a/Cores/Libretro/ui/drivers/LibretroCore.m b/Cores/Libretro/ui/drivers/LibretroCore.m
index 45a3f3cb..3c7da36f 100644
--- a/Cores/Libretro/ui/drivers/LibretroCore.m
+++ b/Cores/Libretro/ui/drivers/LibretroCore.m
@@ -11,6 +11,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
+#include <stdarg.h>
#include <boolean.h>
@@ -58,6 +59,7 @@ NSString * const RetroAchievementsNotification = @"RetroAchievementsNotification
NSString * const LibretroDidShutdownNotification = @"LibretroDidShutdownNotification";
NSString * const DidConnectToWFCNotification = @"DidConnectToWFCNotification";
NSString * const DidDisconnectFromWFCNotification = @"DidDisconnectFromWFCNotification";
+NSString * const MAMEGameFileMissingNotification = @"MAMEGameFileMissingNotification";
@interface LibretroCore()
@@ -100,6 +102,7 @@ NSString * const DidDisconnectFromWFCNotification = @"DidDisconnectFromWFCNotifi
[[self getRetroArch] startWithCustomSaveDir:customSaveDir];
cheevos_event_register_callback(cheevosDidTrigger);
shutdown_register_callback(shutdownCallback);
+ log_register_callback(libretroLogCallback);
return [CocoaView get];
}
@@ -116,6 +119,7 @@ NSString * const DidDisconnectFromWFCNotification = @"DidDisconnectFromWFCNotifi
cheevos_event_register_callback(NULL);
shutdown_register_callback(NULL);
wfc_status_register_callback(NULL);
+ log_register_callback(NULL);
[[self getRetroArch] stop];
}
@@ -514,6 +518,35 @@ static void wfcStatusCallback(bool isConnect) {
});
}
+static BOOL g_enableMonitorLibretroLog = NO;
+- (void)setLibretroLogMonitor:(BOOL)enable {
+ g_enableMonitorLibretroLog = enable;
+}
+
+static void libretroLogCallback(enum retro_log_level level, const char *fmt, va_list args) {
+ if (!g_enableMonitorLibretroLog) {
+ return;
+ }
+ // 使用 va_list 格式化字符串
+ char buffer[4096];
+ vsnprintf(buffer, sizeof(buffer), fmt, args);
+
+ // 根据日志级别输出
+ NSString *logMessage = [NSString stringWithUTF8String:buffer];
+
+ switch (level) {
+ case RETRO_LOG_ERROR:
+ if ([logMessage containsString:@"Required files are missing,"]) {
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [[NSNotificationCenter defaultCenter] postNotificationName:MAMEGameFileMissingNotification object:nil];
+ });
+ }
+ break;
+ default:
+ break;
+ }
+}
+
- (void)setNDSCustomLayout:(NSString *_Nullable)layout {
if (layout) {
if ([layout componentsSeparatedByString:@","].count == 10) {
@@ -526,6 +559,18 @@ static void wfcStatusCallback(bool isConnect) {
}
}
+- (void)set3DSCustomLayout:(NSString *_Nullable)layout {
+ if (layout) {
+ if ([layout componentsSeparatedByString:@","].count == 10) {
+ set_azahar_custom_layout([layout cStringUsingEncoding:NSUTF8StringEncoding]);
+ [self setCoreOptionNeedsUpdate];
+ }
+ } else {
+ set_azahar_custom_layout(NULL);
+ [self setCoreOptionNeedsUpdate];
+ }
+}
+
- (void)setNDSWFCDNS:(NSString *_Nullable)nds {
if (nds) {
set_melonds_wfc_dns([nds cStringUsingEncoding:NSUTF8StringEncoding]);
@@ -552,4 +597,16 @@ static void wfcStatusCallback(bool isConnect) {
[[self getRetroArch] releaseTouchEvent];
}
+- (NSString *_Nullable)getCoreConfigs:(NSString *_Nonnull)coreName {
+ return [[self getRetroArch] getCoreConfigs:coreName];
+}
+
+- (void)updateFBNeoCheatCode:(NSArray<NSString *> *_Nonnull)keys enable:(BOOL)enable {
+ [[self getRetroArch] updateFBNeoCheatCode:keys enable:enable];
+}
+
+- (void)setFastforwardFrameSkip:(BOOL)frameSkip {
+ [[self getRetroArch] setFastforwardFrameSkip:frameSkip];
+}
+
@end
diff --git a/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h b/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
index 3f90e2a1..1868b99a 100644
--- a/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
+++ b/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
@@ -87,6 +87,11 @@ extern NSString * const RetroAchievementsNotification;
- (void)setCoreOptionNeedsUpdate;
- (void)sendTouchEventX:(CGFloat)x y:(CGFloat)y;
- (void)releaseTouchEvent;
+- (NSString *_Nullable)getCoreConfigs:(NSString *_Nonnull)coreName;
+- (void)updateFBNeoCheatCode:(NSArray<NSString *> *_Nonnull)keys enable:(BOOL)enable;
+- (void)setFastforwardFrameSkip:(BOOL)frameSkip;
+- (void)set3DSCustomLayout:(NSString *_Nullable)layout;
+- (void)setLibretroLogMonitor:(BOOL)enable;
@end
diff --git a/Cores/Libretro/ui/drivers/cocoa/apple_platform.h b/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
index 6e1abb3c..e2ead665 100644
--- a/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
+++ b/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
@@ -147,6 +147,9 @@ UINavigationControllerDelegate> {
- (BOOL)getSensorEnable:(int)playerIndex;
- (void)sendTouchEventX:(CGFloat)x y:(CGFloat)y;
- (void)releaseTouchEvent;
+- (NSString *_Nullable)getCoreConfigs:(NSString *_Nonnull)coreName;
+- (void)updateFBNeoCheatCode:(NSArray<NSString *> *_Nonnull)keys enable:(BOOL)enable;
+- (void)setFastforwardFrameSkip:(BOOL)frameSkip;
@end
#else
diff --git a/Cores/Libretro/ui/drivers/ui_cocoatouch.m b/Cores/Libretro/ui/drivers/ui_cocoatouch.m
index 784042b0..757ee0de 100644
--- a/Cores/Libretro/ui/drivers/ui_cocoatouch.m
+++ b/Cores/Libretro/ui/drivers/ui_cocoatouch.m
@@ -555,27 +555,27 @@ enum
- (void)setViewType:(apple_view_type_t)vt
{
- if (vt == _vt)
- return;
-
- _vt = vt;
- if (_renderView != nil)
- {
- [_renderView removeFromSuperview];
- _renderView = nil;
- }
-
- switch (vt)
- {
+ if (vt == _vt)
+ return;
+
+ _vt = vt;
+ if (_renderView != nil)
+ {
+ [_renderView removeFromSuperview];
+ _renderView = nil;
+ }
+
+ switch (vt)
+ {
#ifdef HAVE_COCOA_METAL
- case APPLE_VIEW_TYPE_VULKAN:
- _renderView = [MetalLayerView new];
+ case APPLE_VIEW_TYPE_VULKAN:
+ _renderView = [MetalLayerView new];
#if TARGET_OS_IOS
- _renderView.multipleTouchEnabled = YES;
+ _renderView.multipleTouchEnabled = YES;
#endif
- break;
- case APPLE_VIEW_TYPE_METAL:
- {
+ break;
+ case APPLE_VIEW_TYPE_METAL:
+ {
MetalView *v = [MetalView new];
v.paused = YES;
v.enableSetNeedsDisplay = NO;
@@ -583,33 +583,33 @@ enum
v.multipleTouchEnabled = YES;
#endif
_renderView = v;
- }
- break;
+ }
+ break;
#endif
- case APPLE_VIEW_TYPE_OPENGL_ES:
- _renderView = (BRIDGE GLKView*)glkitview_init();
- break;
-
- case APPLE_VIEW_TYPE_NONE:
- default:
- return;
- }
-
- _renderView.translatesAutoresizingMaskIntoConstraints = NO;
- UIView *rootView = [CocoaView get].view;
- [rootView addSubview:_renderView];
+ case APPLE_VIEW_TYPE_OPENGL_ES:
+ _renderView = (BRIDGE GLKView*)glkitview_init();
+ break;
+
+ case APPLE_VIEW_TYPE_NONE:
+ default:
+ return;
+ }
+
+ _renderView.translatesAutoresizingMaskIntoConstraints = NO;
+ UIView *rootView = [CocoaView get].view;
+ [rootView addSubview:_renderView];
#if TARGET_OS_IOS
- if (@available(iOS 13.4, *))
- {
- [_renderView addInteraction:[[UIPointerInteraction alloc] initWithDelegate:self]];
- _renderView.userInteractionEnabled = YES;
- }
+ if (@available(iOS 13.4, *))
+ {
+ [_renderView addInteraction:[[UIPointerInteraction alloc] initWithDelegate:self]];
+ _renderView.userInteractionEnabled = YES;
+ }
#endif
- [[_renderView.topAnchor constraintEqualToAnchor:rootView.topAnchor] setActive:YES];
- [[_renderView.bottomAnchor constraintEqualToAnchor:rootView.bottomAnchor] setActive:YES];
- [[_renderView.leadingAnchor constraintEqualToAnchor:rootView.leadingAnchor] setActive:YES];
- [[_renderView.trailingAnchor constraintEqualToAnchor:rootView.trailingAnchor] setActive:YES];
- [_renderView layoutIfNeeded];
+ [[_renderView.topAnchor constraintEqualToAnchor:rootView.topAnchor] setActive:YES];
+ [[_renderView.bottomAnchor constraintEqualToAnchor:rootView.bottomAnchor] setActive:YES];
+ [[_renderView.leadingAnchor constraintEqualToAnchor:rootView.leadingAnchor] setActive:YES];
+ [[_renderView.trailingAnchor constraintEqualToAnchor:rootView.trailingAnchor] setActive:YES];
+ [_renderView layoutIfNeeded];
}
- (apple_view_type_t)viewType { return _vt; }
@@ -617,12 +617,12 @@ enum
- (void)setVideoMode:(gfx_ctx_mode_t)mode
{
#ifdef HAVE_COCOA_METAL
- MetalView *metalView = (MetalView*) _renderView;
- CGFloat scale = [[UIScreen mainScreen] scale];
- [metalView setDrawableSize:CGSizeMake(
- _renderView.bounds.size.width * scale,
- _renderView.bounds.size.height * scale
- )];
+ MetalView *metalView = (MetalView*) _renderView;
+ CGFloat scale = [[UIScreen mainScreen] scale];
+ [metalView setDrawableSize:CGSizeMake(
+ _renderView.bounds.size.width * scale,
+ _renderView.bounds.size.height * scale
+ )];
#endif
}
@@ -630,10 +630,10 @@ enum
- (bool)setDisableDisplaySleep:(bool)disable
{
#if TARGET_OS_TV
- [[UIApplication sharedApplication] setIdleTimerDisabled:disable];
- return YES;
+ [[UIApplication sharedApplication] setIdleTimerDisabled:disable];
+ return YES;
#else
- return NO;
+ return NO;
#endif
}
+ (RetroArch_iOS*)get {
@@ -642,299 +642,299 @@ enum
-(NSString*)documentsDirectory
{
- if (_documentsDirectory == nil)
- {
+ if (_documentsDirectory == nil)
+ {
#if TARGET_OS_IOS
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
#elif TARGET_OS_TV
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
#endif
- _documentsDirectory = paths.firstObject;
- }
- return _documentsDirectory;
+ _documentsDirectory = paths.firstObject;
+ }
+ return _documentsDirectory;
}
- (void)handleAudioSessionInterruption:(NSNotification *)notification
{
- NSNumber *type = notification.userInfo[AVAudioSessionInterruptionTypeKey];
- if (![type isKindOfClass:[NSNumber class]])
- return;
-
- if ([type unsignedIntegerValue] == AVAudioSessionInterruptionTypeBegan)
- {
- RARCH_LOG("AudioSession Interruption Began\n");
- audio_driver_stop();
- }
- else if ([type unsignedIntegerValue] == AVAudioSessionInterruptionTypeEnded)
- {
- RARCH_LOG("AudioSession Interruption Ended\n");
- audio_driver_start(false);
- }
+ NSNumber *type = notification.userInfo[AVAudioSessionInterruptionTypeKey];
+ if (![type isKindOfClass:[NSNumber class]])
+ return;
+
+ if ([type unsignedIntegerValue] == AVAudioSessionInterruptionTypeBegan)
+ {
+ RARCH_LOG("AudioSession Interruption Began\n");
+ audio_driver_stop();
+ }
+ else if ([type unsignedIntegerValue] == AVAudioSessionInterruptionTypeEnded)
+ {
+ RARCH_LOG("AudioSession Interruption Ended\n");
+ audio_driver_start(false);
+ }
}
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
- char arguments[] = "retroarch";
- char *argv[] = {arguments, NULL};
- int argc = 1;
- apple_platform = self;
-
- if ([NSUserDefaults.standardUserDefaults boolForKey:@"restore_default_config"])
- {
- [NSUserDefaults.standardUserDefaults setBool:NO forKey:@"restore_default_config"];
- [NSUserDefaults.standardUserDefaults setObject:@"" forKey:@FILE_PATH_MAIN_CONFIG];
-
- // Get the Caches directory path
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
- NSString *cachesDirectory = [paths firstObject];
-
- // Define the original and new file paths
- NSString *originalPath = [cachesDirectory stringByAppendingPathComponent:@"RetroArch/config/retroarch.cfg"];
- NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
- [dateFormatter setDateFormat:@"HHmm-yyMMdd"];
- NSString *timestamp = [dateFormatter stringFromDate:[NSDate date]];
- NSString *newPath = [cachesDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"RetroArch/config/RetroArch-%@.cfg", timestamp]];
-
- // File manager instance
- NSFileManager *fileManager = [NSFileManager defaultManager];
-
- // Check if the file exists and rename it
- if ([fileManager fileExistsAtPath:originalPath])
- {
- NSError *error = nil;
- if ([fileManager moveItemAtPath:originalPath toPath:newPath error:&error])
- NSLog(@"File renamed to %@", newPath);
- else
- NSLog(@"Error renaming file: %@", error.localizedDescription);
- }
- else
- NSLog(@"File does not exist at path %@", originalPath);
- }
-
- [self setDelegate:self];
-
- /* Setup window */
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- [self.window makeKeyAndVisible];
-
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleAudioSessionInterruption:) name:AVAudioSessionInterruptionNotification object:[AVAudioSession sharedInstance]];
-
- [self showGameView];
-
- rarch_main(argc, argv, NULL);
-
- uico_driver_state_t *uico_st = uico_state_get_ptr();
- rarch_setting_t *appicon_setting = menu_setting_find_enum(MENU_ENUM_LABEL_APPICON_SETTINGS);
- struct string_list *icons;
- if ( appicon_setting
- && uico_st->drv
- && uico_st->drv->get_app_icons
- && (icons = uico_st->drv->get_app_icons())
- && icons->size > 1)
- {
- int i;
- size_t _len = 0;
- char *options = NULL;
- const char *icon_name;
-
- appicon_setting->default_value.string = icons->elems[0].data;
- icon_name = [[application alternateIconName] cStringUsingEncoding:kCFStringEncodingUTF8]; /* need to ask uico_st for this */
- for (i = 0; i < (int)icons->size; i++)
- {
- _len += strlen(icons->elems[i].data) + 1;
- if (string_is_equal(icon_name, icons->elems[i].data))
- appicon_setting->value.target.string = icons->elems[i].data;
- }
- options = (char*)calloc(_len, sizeof(char));
- string_list_join_concat(options, _len, icons, "|");
- if (appicon_setting->values)
- free((void*)appicon_setting->values);
- appicon_setting->values = options;
- }
-
- rarch_start_draw_observer();
-
+ char arguments[] = "retroarch";
+ char *argv[] = {arguments, NULL};
+ int argc = 1;
+ apple_platform = self;
+
+ if ([NSUserDefaults.standardUserDefaults boolForKey:@"restore_default_config"])
+ {
+ [NSUserDefaults.standardUserDefaults setBool:NO forKey:@"restore_default_config"];
+ [NSUserDefaults.standardUserDefaults setObject:@"" forKey:@FILE_PATH_MAIN_CONFIG];
+
+ // Get the Caches directory path
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
+ NSString *cachesDirectory = [paths firstObject];
+
+ // Define the original and new file paths
+ NSString *originalPath = [cachesDirectory stringByAppendingPathComponent:@"RetroArch/config/retroarch.cfg"];
+ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
+ [dateFormatter setDateFormat:@"HHmm-yyMMdd"];
+ NSString *timestamp = [dateFormatter stringFromDate:[NSDate date]];
+ NSString *newPath = [cachesDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"RetroArch/config/RetroArch-%@.cfg", timestamp]];
+
+ // File manager instance
+ NSFileManager *fileManager = [NSFileManager defaultManager];
+
+ // Check if the file exists and rename it
+ if ([fileManager fileExistsAtPath:originalPath])
+ {
+ NSError *error = nil;
+ if ([fileManager moveItemAtPath:originalPath toPath:newPath error:&error])
+ NSLog(@"File renamed to %@", newPath);
+ else
+ NSLog(@"Error renaming file: %@", error.localizedDescription);
+ }
+ else
+ NSLog(@"File does not exist at path %@", originalPath);
+ }
+
+ [self setDelegate:self];
+
+ /* Setup window */
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ [self.window makeKeyAndVisible];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleAudioSessionInterruption:) name:AVAudioSessionInterruptionNotification object:[AVAudioSession sharedInstance]];
+
+ [self showGameView];
+
+ rarch_main(argc, argv, NULL);
+
+ uico_driver_state_t *uico_st = uico_state_get_ptr();
+ rarch_setting_t *appicon_setting = menu_setting_find_enum(MENU_ENUM_LABEL_APPICON_SETTINGS);
+ struct string_list *icons;
+ if ( appicon_setting
+ && uico_st->drv
+ && uico_st->drv->get_app_icons
+ && (icons = uico_st->drv->get_app_icons())
+ && icons->size > 1)
+ {
+ int i;
+ size_t _len = 0;
+ char *options = NULL;
+ const char *icon_name;
+
+ appicon_setting->default_value.string = icons->elems[0].data;
+ icon_name = [[application alternateIconName] cStringUsingEncoding:kCFStringEncodingUTF8]; /* need to ask uico_st for this */
+ for (i = 0; i < (int)icons->size; i++)
+ {
+ _len += strlen(icons->elems[i].data) + 1;
+ if (string_is_equal(icon_name, icons->elems[i].data))
+ appicon_setting->value.target.string = icons->elems[i].data;
+ }
+ options = (char*)calloc(_len, sizeof(char));
+ string_list_join_concat(options, _len, icons, "|");
+ if (appicon_setting->values)
+ free((void*)appicon_setting->values);
+ appicon_setting->values = options;
+ }
+
+ rarch_start_draw_observer();
+
#if TARGET_OS_TV
- update_topshelf();
+ update_topshelf();
#endif
-
+
#if TARGET_OS_IOS
- if (@available(iOS 13.0, *))
- [MXMetricManager.sharedManager addSubscriber:self];
+ if (@available(iOS 13.0, *))
+ [MXMetricManager.sharedManager addSubscriber:self];
#endif
-
+
#ifdef HAVE_MFI
- extern void *apple_gamecontroller_joypad_init(void *data);
- apple_gamecontroller_joypad_init(NULL);
- if (@available(macOS 11, iOS 14, tvOS 14, *))
- {
- [[NSNotificationCenter defaultCenter] addObserverForName:GCMouseDidConnectNotification
- object:nil
- queue:[NSOperationQueue mainQueue]
- usingBlock:^(NSNotification *note)
- {
- GCMouse *mouse = note.object;
- mouse.mouseInput.mouseMovedHandler = ^(GCMouseInput * _Nonnull mouse, float delta_x, float delta_y)
- {
- cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
- if (!apple)
- return;
- apple->window_pos_x += (int16_t)delta_x;
- apple->window_pos_y -= (int16_t)delta_y;
- };
- mouse.mouseInput.leftButton.pressedChangedHandler = ^(GCControllerButtonInput * _Nonnull button, float value, BOOL pressed)
- {
- cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
- if (!apple)
- return;
- if (pressed)
- apple->mouse_buttons |= (1 << 0);
- else
- apple->mouse_buttons &= ~(1 << 0);
- };
- mouse.mouseInput.rightButton.pressedChangedHandler = ^(GCControllerButtonInput * _Nonnull button, float value, BOOL pressed)
+ extern void *apple_gamecontroller_joypad_init(void *data);
+ apple_gamecontroller_joypad_init(NULL);
+ if (@available(macOS 11, iOS 14, tvOS 14, *))
+ {
+ [[NSNotificationCenter defaultCenter] addObserverForName:GCMouseDidConnectNotification
+ object:nil
+ queue:[NSOperationQueue mainQueue]
+ usingBlock:^(NSNotification *note)
{
- cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
- if (!apple)
- return;
- if (pressed)
- apple->mouse_buttons |= (1 << 1);
- else
- apple->mouse_buttons &= ~(1 << 1);
- };
- }];
- }
+ GCMouse *mouse = note.object;
+ mouse.mouseInput.mouseMovedHandler = ^(GCMouseInput * _Nonnull mouse, float delta_x, float delta_y)
+ {
+ cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
+ if (!apple)
+ return;
+ apple->window_pos_x += (int16_t)delta_x;
+ apple->window_pos_y -= (int16_t)delta_y;
+ };
+ mouse.mouseInput.leftButton.pressedChangedHandler = ^(GCControllerButtonInput * _Nonnull button, float value, BOOL pressed)
+ {
+ cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
+ if (!apple)
+ return;
+ if (pressed)
+ apple->mouse_buttons |= (1 << 0);
+ else
+ apple->mouse_buttons &= ~(1 << 0);
+ };
+ mouse.mouseInput.rightButton.pressedChangedHandler = ^(GCControllerButtonInput * _Nonnull button, float value, BOOL pressed)
+ {
+ cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
+ if (!apple)
+ return;
+ if (pressed)
+ apple->mouse_buttons |= (1 << 1);
+ else
+ apple->mouse_buttons &= ~(1 << 1);
+ };
+ }];
+ }
#endif
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
#if TARGET_OS_TV
- update_topshelf();
+ update_topshelf();
#endif
- rarch_stop_draw_observer();
- command_event(CMD_EVENT_SAVE_FILES, NULL);
+ rarch_stop_draw_observer();
+ command_event(CMD_EVENT_SAVE_FILES, NULL);
}
- (void)applicationWillTerminate:(UIApplication *)application
{
- rarch_stop_draw_observer();
- retroarch_main_quit();
+ rarch_stop_draw_observer();
+ retroarch_main_quit();
}
- (void)applicationWillResignActive:(UIApplication *)application
{
- self.bgDate = [NSDate date];
- rarch_stop_draw_observer();
+ self.bgDate = [NSDate date];
+ rarch_stop_draw_observer();
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
- rarch_start_draw_observer();
- NSError *error;
- settings_t *settings = config_get_ptr();
- bool ui_companion_start_on_boot = settings->bools.ui_companion_start_on_boot;
-
- if (settings->bools.audio_respect_silent_mode)
- [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:&error];
- else
- [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:&error];
-
- if (!ui_companion_start_on_boot)
- [self showGameView];
-
+ rarch_start_draw_observer();
+ NSError *error;
+ settings_t *settings = config_get_ptr();
+ bool ui_companion_start_on_boot = settings->bools.ui_companion_start_on_boot;
+
+ if (settings->bools.audio_respect_silent_mode)
+ [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:&error];
+ else
+ [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:&error];
+
+ if (!ui_companion_start_on_boot)
+ [self showGameView];
+
#ifdef HAVE_CLOUDSYNC
- if (self.bgDate)
- {
- if ( [[NSDate date] timeIntervalSinceDate:self.bgDate] > 60.0f
- && ( !(runloop_get_flags() & RUNLOOP_FLAG_CORE_RUNNING)
- || retroarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)))
- task_push_cloud_sync();
- self.bgDate = nil;
- }
+ if (self.bgDate)
+ {
+ if ( [[NSDate date] timeIntervalSinceDate:self.bgDate] > 60.0f
+ && ( !(runloop_get_flags() & RUNLOOP_FLAG_CORE_RUNNING)
+ || retroarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)))
+ task_push_cloud_sync();
+ self.bgDate = nil;
+ }
#endif
}
-(BOOL)openRetroArchURL:(NSURL *)url
{
- if ([url.host isEqualToString:@"topshelf"])
- {
- NSURLComponents *comp = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
- NSString *ns_path, *ns_core_path;
- char path[PATH_MAX_LENGTH];
- char core_path[PATH_MAX_LENGTH];
- content_ctx_info_t content_info = { 0 };
- for (NSURLQueryItem *q in comp.queryItems)
- {
- if ([q.name isEqualToString:@"path"])
- ns_path = q.value;
- else if ([q.name isEqualToString:@"core_path"])
- ns_core_path = q.value;
- }
- if (!ns_path || !ns_core_path)
- return NO;
- fill_pathname_expand_special(path, [ns_path UTF8String], sizeof(path));
- fill_pathname_expand_special(core_path, [ns_core_path UTF8String], sizeof(core_path));
- RARCH_LOG("TopShelf told us to open %s with %s\n", path, core_path);
- return task_push_load_content_with_new_core_from_companion_ui(core_path, path,
- NULL, NULL, NULL,
- &content_info, NULL, NULL);
- }
- return NO;
+ if ([url.host isEqualToString:@"topshelf"])
+ {
+ NSURLComponents *comp = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
+ NSString *ns_path, *ns_core_path;
+ char path[PATH_MAX_LENGTH];
+ char core_path[PATH_MAX_LENGTH];
+ content_ctx_info_t content_info = { 0 };
+ for (NSURLQueryItem *q in comp.queryItems)
+ {
+ if ([q.name isEqualToString:@"path"])
+ ns_path = q.value;
+ else if ([q.name isEqualToString:@"core_path"])
+ ns_core_path = q.value;
+ }
+ if (!ns_path || !ns_core_path)
+ return NO;
+ fill_pathname_expand_special(path, [ns_path UTF8String], sizeof(path));
+ fill_pathname_expand_special(core_path, [ns_core_path UTF8String], sizeof(core_path));
+ RARCH_LOG("TopShelf told us to open %s with %s\n", path, core_path);
+ return task_push_load_content_with_new_core_from_companion_ui(core_path, path,
+ NULL, NULL, NULL,
+ &content_info, NULL, NULL);
+ }
+ return NO;
}
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
if ([[url scheme] isEqualToString:@"retroarch"])
return [self openRetroArchURL:url];
-
- NSFileManager *manager = [NSFileManager defaultManager];
- NSString *filename = (NSString*)url.path.lastPathComponent;
- NSError *error = nil;
- settings_t *settings = config_get_ptr();
- char fullpath[PATH_MAX_LENGTH] = {0};
- fill_pathname_join_special(fullpath, settings->paths.directory_core_assets, [filename UTF8String], sizeof(fullpath));
- NSString *destination = [NSString stringWithUTF8String:fullpath];
- /* Copy file to documents directory if it's not already
- * inside Documents directory */
- if ([url startAccessingSecurityScopedResource])
- {
- if (![[url path] containsString: self.documentsDirectory])
- if (![manager fileExistsAtPath:destination])
- [manager copyItemAtPath:[url path] toPath:destination error:&error];
- [url stopAccessingSecurityScopedResource];
- }
- task_push_dbscan(
- settings->paths.directory_playlist,
- settings->paths.path_content_database,
- fullpath,
- false,
- false,
- NULL);
- return true;
+
+ NSFileManager *manager = [NSFileManager defaultManager];
+ NSString *filename = (NSString*)url.path.lastPathComponent;
+ NSError *error = nil;
+ settings_t *settings = config_get_ptr();
+ char fullpath[PATH_MAX_LENGTH] = {0};
+ fill_pathname_join_special(fullpath, settings->paths.directory_core_assets, [filename UTF8String], sizeof(fullpath));
+ NSString *destination = [NSString stringWithUTF8String:fullpath];
+ /* Copy file to documents directory if it's not already
+ * inside Documents directory */
+ if ([url startAccessingSecurityScopedResource])
+ {
+ if (![[url path] containsString: self.documentsDirectory])
+ if (![manager fileExistsAtPath:destination])
+ [manager copyItemAtPath:[url path] toPath:destination error:&error];
+ [url stopAccessingSecurityScopedResource];
+ }
+ task_push_dbscan(
+ settings->paths.directory_playlist,
+ settings->paths.path_content_database,
+ fullpath,
+ false,
+ false,
+ NULL);
+ return true;
}
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
#if TARGET_OS_IOS
- [self setToolbarHidden:![[viewController toolbarItems] count] animated:YES];
+ [self setToolbarHidden:![[viewController toolbarItems] count] animated:YES];
#endif
}
- (void)showGameView
{
- [self popToRootViewControllerAnimated:NO];
-
+ [self popToRootViewControllerAnimated:NO];
+
#if TARGET_OS_IOS
- [self setToolbarHidden:true animated:NO];
- [[UIApplication sharedApplication] setStatusBarHidden:true withAnimation:UIStatusBarAnimationNone];
- [[UIApplication sharedApplication] setIdleTimerDisabled:true];
+ [self setToolbarHidden:true animated:NO];
+ [[UIApplication sharedApplication] setStatusBarHidden:true withAnimation:UIStatusBarAnimationNone];
+ [[UIApplication sharedApplication] setIdleTimerDisabled:true];
#endif
-
- [self.window setRootViewController:[CocoaView get]];
-
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
- command_event(CMD_EVENT_AUDIO_START, NULL);
- });
+
+ [self.window setRootViewController:[CocoaView get]];
+
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
+ command_event(CMD_EVENT_AUDIO_START, NULL);
+ });
}
- (void)supportOtherAudioSessions { }
@@ -960,27 +960,27 @@ enum
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region API_AVAILABLE(ios(13.4))
{
- cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
- if (!apple)
- return nil;
- if (apple->mouse_grabbed)
- return [UIPointerStyle hiddenPointerStyle];
- return nil;
+ cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
+ if (!apple)
+ return nil;
+ if (apple->mouse_grabbed)
+ return [UIPointerStyle hiddenPointerStyle];
+ return nil;
}
- (UIPointerRegion *)pointerInteraction:(UIPointerInteraction *)interaction
regionForRequest:(UIPointerRegionRequest *)request
defaultRegion:(UIPointerRegion *)defaultRegion API_AVAILABLE(ios(13.4))
{
- cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
- if (!apple || apple->mouse_grabbed)
- return nil;
- CGPoint location = [apple_platform.renderView convertPoint:[request location] fromView:nil];
- apple->touches[0].screen_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
- apple->touches[0].screen_y = (int16_t)(location.y * [[UIScreen mainScreen] scale]);
- apple->window_pos_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
- apple->window_pos_y = (int16_t)(location.y * [[UIScreen mainScreen] scale]);
- return [UIPointerRegion regionWithRect:[apple_platform.renderView bounds] identifier:@"game view"];
+ cocoa_input_data_t *apple = (cocoa_input_data_t*) input_state_get_ptr()->current_data;
+ if (!apple || apple->mouse_grabbed)
+ return nil;
+ CGPoint location = [apple_platform.renderView convertPoint:[request location] fromView:nil];
+ apple->touches[0].screen_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
+ apple->touches[0].screen_y = (int16_t)(location.y * [[UIScreen mainScreen] scale]);
+ apple->window_pos_x = (int16_t)(location.x * [[UIScreen mainScreen] scale]);
+ apple->window_pos_y = (int16_t)(location.y * [[UIScreen mainScreen] scale]);
+ return [UIPointerRegion regionWithRect:[apple_platform.renderView bounds] identifier:@"game view"];
}
#endif
@@ -1000,15 +1000,15 @@ static BOOL RespectSilentMode = false;
char *argv[] = {arguments, NULL};
int argc = 1;
apple_platform = self;
-
+
[CocoaView get].view.frame = [[UIScreen mainScreen] bounds];
-
+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleAudioSessionInterruption:) name:AVAudioSessionInterruptionNotification object:[AVAudioSession sharedInstance]];
-
+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
- command_event(CMD_EVENT_AUDIO_START, NULL);
+ command_event(CMD_EVENT_AUDIO_START, NULL);
});
-
+
extern void manic_input_set_deinit(void);
manic_input_set_deinit();
@@ -1021,7 +1021,7 @@ static BOOL RespectSilentMode = false;
rarch_main(argc, argv, NULL);
rarch_start_draw_observer();
- }
+}
- (void)pause {
if (!LibretroInitial) { return; }
@@ -1092,8 +1092,8 @@ static BOOL RespectSilentMode = false;
NSError *error;
AVAudioSessionCategoryOptions options = AVAudioSessionCategoryOptionMixWithOthers |
- AVAudioSessionCategoryOptionAllowBluetoothA2DP |
- AVAudioSessionCategoryOptionAllowAirPlay;
+ AVAudioSessionCategoryOptionAllowBluetoothA2DP |
+ AVAudioSessionCategoryOptionAllowAirPlay;
if (RespectSilentMode) {
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient withOptions:options error:&error];
} else {
@@ -1113,7 +1113,7 @@ static BOOL RespectSilentMode = false;
//核心信息
core_info_t *core_info = NULL;
core_info_get_current_core(&core_info);
-
+
//核心选项 开启PSP内部作弊码支持
if (strcmp(core_info->core_name, "PPSSPP") == 0 && completion) {
core_options_flush();//生成核心配置
@@ -1178,13 +1178,13 @@ extern void manic_input_analog_event(unsigned port, unsigned stick_id, float x_v
}
- (void)sendEvent:(UIEvent * _Nonnull)event {
- if (@available(iOS 13.4, tvOS 13.4, *))
- {
- if (event.type == UIEventTypeHover)
- return;
- }
- if (event.allTouches.count)
- handle_touch_event(event.allTouches.allObjects);
+ if (@available(iOS 13.4, tvOS 13.4, *))
+ {
+ if (event.type == UIEventTypeHover)
+ return;
+ }
+ if (event.allTouches.count)
+ handle_touch_event(event.allTouches.allObjects);
}
- (void)mute:(BOOL)mute {
@@ -1373,14 +1373,14 @@ extern void manic_input_analog_event(unsigned port, unsigned stick_id, float x_v
// 使用CGBitmapContext创建图像,使用RGBA格式
CGContextRef context = CGBitmapContextCreate(
- rgbaBuffer, // 数据指针
- width, // 宽度
- height, // 高度
- 8, // 每个组件的位数
- bytesPerRow, // 每行字节数
- colorSpace, // 色彩空间
- kCGImageAlphaNoneSkipLast | kCGBitmapByteOrderDefault // RGBA格式
- );
+ rgbaBuffer, // 数据指针
+ width, // 宽度
+ height, // 高度
+ 8, // 每个组件的位数
+ bytesPerRow, // 每行字节数
+ colorSpace, // 色彩空间
+ kCGImageAlphaNoneSkipLast | kCGBitmapByteOrderDefault // RGBA格式
+ );
CGColorSpaceRelease(colorSpace);
@@ -1599,7 +1599,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
NSLog(@"读取文件失败: %@", error.localizedDescription);
return;
}
-
+
// 正则匹配并替换
NSString *pattern = @"ppsspp_internal_resolution\\s*=\\s*\"[^\"]*\"";
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:&error];
@@ -1615,7 +1615,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
options:0
range:NSMakeRange(0, fileContents.length)
withTemplate:replacement];
-
+
// 写回文件
@@ -1652,7 +1652,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
if ([oldValue isEqualToString:value]) {
return;
}
-
+
// 正则匹配并替换
NSString *pattern = [NSString stringWithFormat:@"%@\\s*=\\s*\"[^\"]*\"", key] ;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:&error];
@@ -1675,7 +1675,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
- (void)updateCoreConfig:(NSString *_Nonnull)coreName configs:(NSDictionary<NSString*, NSString*> *_Nullable)configs reload:(BOOL)reload {
if (configs.count == 0) return;
-
+
NSString *configPath = [NSString stringWithFormat:@"config/%@/%@.opt", coreName, coreName];
NSString *configFilePath = [self.workspace stringByAppendingPathComponent:configPath];
@@ -1702,24 +1702,24 @@ static NSString *_Nullable needToLoadStatePath = nil;
}
return;
}
-
+
NSMutableString *updatedContents = [fileContents mutableCopy];
__block BOOL changed = NO;
-
+
[configs enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSString *value, BOOL *stop) {
NSString *oldValue = [self configValueForKey:key inFileContents:fileContents];
if ([oldValue isEqualToString:value]) return;
-
+
NSString *pattern = [NSString stringWithFormat:@"%@\\s*=\\s*\"[^\"]*\"", key];
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:nil];
NSString *replacement = [NSString stringWithFormat:@"%@ = \"%@\"", key, value];
-
+
if ([regex numberOfMatchesInString:updatedContents options:0 range:NSMakeRange(0, updatedContents.length)] > 0) {
[regex replaceMatchesInString:updatedContents options:0 range:NSMakeRange(0, updatedContents.length) withTemplate:replacement];
} else {
[updatedContents appendFormat:@"\n%@", replacement];
}
-
+
changed = YES;
}];
@@ -1734,7 +1734,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
- (void)updateRunningCoreConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs flush:(BOOL)flush {
// 获取 runloop 状态
runloop_state_t *runloop_st = runloop_state_get_ptr();
-
+
// 确保核心选项管理器存在
if (!runloop_st->core_options) {
return;
@@ -1745,7 +1745,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
const char *option_key = [key cStringUsingEncoding:NSUTF8StringEncoding];
const char *option_value = [value cStringUsingEncoding:NSUTF8StringEncoding];
size_t option_idx, value_idx;
-
+
// 1. 根据键名获取选项索引
if (core_option_manager_get_idx(runloop_st->core_options, option_key, &option_idx)) {
// 2. 根据值字符串获取值索引
@@ -1762,12 +1762,12 @@ static NSString *_Nullable needToLoadStatePath = nil;
- (void)updateLibretroConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs {
if (configs.count == 0) return;
-
+
NSString *configFilePath = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES).firstObject stringByAppendingString:@"/Libretro/config/retroarch.cfg"];
-
+
NSError *error = nil;
NSString *fileContents = [NSString stringWithContentsOfFile:configFilePath encoding:NSUTF8StringEncoding error:&error];
-
+
if (error || !fileContents) {
NSLog(@"读取文件失败: %@", error.localizedDescription);
[NSFileManager.defaultManager createDirectoryAtPath:[configFilePath stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:nil];
@@ -1780,27 +1780,27 @@ static NSString *_Nullable needToLoadStatePath = nil;
[newFileContent writeToFile:configFilePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
return;
}
-
+
NSMutableString *updatedContents = [fileContents mutableCopy];
__block BOOL changed = NO;
-
+
[configs enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSString *value, BOOL *stop) {
NSString *oldValue = [self configValueForKey:key inFileContents:fileContents];
if ([oldValue isEqualToString:value]) return;
-
+
NSString *pattern = [NSString stringWithFormat:@"%@\\s*=\\s*\"[^\"]*\"", key];
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:nil];
NSString *replacement = [NSString stringWithFormat:@"%@ = \"%@\"", key, value];
-
+
if ([regex numberOfMatchesInString:updatedContents options:0 range:NSMakeRange(0, updatedContents.length)] > 0) {
[regex replaceMatchesInString:updatedContents options:0 range:NSMakeRange(0, updatedContents.length) withTemplate:replacement];
} else {
[updatedContents appendFormat:@"\n%@", replacement];
}
-
+
changed = YES;
}];
-
+
if (changed) {
[updatedContents writeToFile:configFilePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
}
@@ -1831,7 +1831,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
[fileContents writeToFile:configFilePath atomically:YES encoding:NSUTF8StringEncoding error:&error];
return;
}
-
+
// 正则匹配并替换
NSString *pattern = [NSString stringWithFormat:@"%@\\s*=\\s*\"[^\"]*\"", key] ;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:&error];
@@ -1858,6 +1858,11 @@ static NSString *_Nullable needToLoadStatePath = nil;
NSError *error = nil;
NSString *fileContents = [NSString stringWithContentsOfFile:configFilePath encoding:NSUTF8StringEncoding error:&error];
+
+ if (error || !fileContents) {
+ return nil;
+ }
+
return [self configValueForKey:key inFileContents:fileContents];
}
@@ -1882,7 +1887,7 @@ static NSString *_Nullable needToLoadStatePath = nil;
NSLog(@"正则表达式错误: %@", error.localizedDescription);
return nil;
}
-
+
NSTextCheckingResult *match = [regex firstMatchInString:fileContents options:0 range:NSMakeRange(0, fileContents.length)];
if (match && match.numberOfRanges > 1) {
@@ -1916,12 +1921,12 @@ void set_shader_preset(const char * _Nullable preset_path)
if (!video_st || !video_st->current_video || !video_st->current_video->set_shader)
return;
-
+
// 获取 shader 类型
enum rarch_shader_type type = video_shader_parse_type(preset_path);
if (type == RARCH_SHADER_NONE)
return;
-
+
// 设置 shader
if (video_st->current_video->set_shader(video_st->data, type, preset_path))
{
@@ -1933,9 +1938,9 @@ void set_shader_preset(const char * _Nullable preset_path)
{
if (runloop_st->runtime_shader_preset_path != preset_path)
strlcpy(runloop_st->runtime_shader_preset_path,
- preset_path,
- sizeof(runloop_st->runtime_shader_preset_path));
-
+ preset_path,
+ sizeof(runloop_st->runtime_shader_preset_path));
+
// 更新 shader manager
struct video_shader *shader = menu_shader_get();
if (shader)
@@ -2103,6 +2108,51 @@ static NSString * _Nullable g_customSaveExtension = nil;
#endif
}
+- (NSString *_Nullable)getCoreConfigs:(NSString *_Nonnull)coreName {
+ NSString *configPath = [NSString stringWithFormat:@"config/%@/%@.opt", coreName, coreName];
+ NSString *configFilePath = [self.workspace stringByAppendingPathComponent:configPath];
+ if (![[NSFileManager defaultManager] fileExistsAtPath:configFilePath]) {
+ core_options_flush();//生成配置
+ }
+
+ NSError *error = nil;
+ NSString *fileContents = [NSString stringWithContentsOfFile:configFilePath encoding:NSUTF8StringEncoding error:&error];
+ if (error || !fileContents) {
+ return nil;
+ }
+
+ return fileContents;
+}
+
+- (void)updateFBNeoCheatCode:(NSArray<NSString *> *_Nonnull)keys enable:(BOOL)enable {
+ // 获取 runloop 状态
+ runloop_state_t *runloop_st = runloop_state_get_ptr();
+
+ // 确保核心选项管理器存在
+ if (!runloop_st->core_options) {
+ return;
+ }
+
+ [keys enumerateObjectsUsingBlock:^(NSString * _Nonnull key, NSUInteger idx, BOOL * _Nonnull stop) {
+ const char *option_key = [key cStringUsingEncoding:NSUTF8StringEncoding];
+ size_t option_idx, value_idx = enable ? 1 : 0;
+
+ if (core_option_manager_get_idx(runloop_st->core_options, option_key, &option_idx)) {
+ core_option_manager_set_val(runloop_st->core_options, option_idx, value_idx, false);
+ }
+ }];
+
+ core_options_flush();
+}
+
+- (void)setFastforwardFrameSkip:(BOOL)frameSkip {
+ settings_t *settings = config_get_ptr();
+ if (!settings) {
+ return;
+ }
+ settings->bools.fastforward_frameskip = frameSkip;
+}
+
@end
ui_companion_driver_t ui_companion_cocoatouch = {
diff --git a/Cores/azahar.libretro.framework/Info.plist b/Cores/azahar.libretro.framework/Info.plist
new file mode 100644
index 00000000..2fe13f6a
--- /dev/null
+++ b/Cores/azahar.libretro.framework/Info.plist
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bf1d97b13f7c27395bbb64f6e6fdb5f6619f41de268eeabb48fe3b35263590d6
+size 715
diff --git a/Cores/azahar.libretro.framework/_CodeSignature/CodeResources b/Cores/azahar.libretro.framework/_CodeSignature/CodeResources
new file mode 100644
index 00000000..f1c6928f
--- /dev/null
+++ b/Cores/azahar.libretro.framework/_CodeSignature/CodeResources
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f300a698d3bf0da13c5e4f91d1c44df9f65dcc78437efc590a87f19612c46aa
+size 1798
diff --git a/Cores/azahar.libretro.framework/azahar.libretro b/Cores/azahar.libretro.framework/azahar.libretro
new file mode 100755
index 00000000..12e8bff6
--- /dev/null
+++ b/Cores/azahar.libretro.framework/azahar.libretro
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a326e86c443e0020621ced5ca8db7b7524b2a32bde3f18366f88b3228e6fa9c
+size 27144960
diff --git a/Cores/fbneo.libretro.framework/Info.plist b/Cores/fbneo.libretro.framework/Info.plist
new file mode 100644
index 00000000..dd55878f
--- /dev/null
+++ b/Cores/fbneo.libretro.framework/Info.plist
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea9a8fcdfae30f5ab111e1761be48f340557f4072a2523840097f50611e84e9a
+size 712
diff --git a/Cores/fbneo.libretro.framework/_CodeSignature/CodeResources b/Cores/fbneo.libretro.framework/_CodeSignature/CodeResources
new file mode 100644
index 00000000..98bfd4f1
--- /dev/null
+++ b/Cores/fbneo.libretro.framework/_CodeSignature/CodeResources
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:81274937d2c19e5be9a47e61000da58871c15e985fa83ed843eb0a30b58caf37
+size 1798
diff --git a/Cores/fbneo.libretro.framework/fbneo.libretro b/Cores/fbneo.libretro.framework/fbneo.libretro
new file mode 100755
index 00000000..8d94ecbb
--- /dev/null
+++ b/Cores/fbneo.libretro.framework/fbneo.libretro
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:74c45670a6ee775036c2f15a4d4182fa5cc2724493021e61135d977d200ba2cc
+size 52132064
diff --git a/Cores/flycast-jitless-fuse.libretro.framework/Info.plist b/Cores/flycast-jitless-fuse.libretro.framework/Info.plist
new file mode 100644
index 00000000..8723e20a
--- /dev/null
+++ b/Cores/flycast-jitless-fuse.libretro.framework/Info.plist
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0209e6109dfaff823cd16cdf9262fc9111fac4fa3c27142a6c088257080db224
+size 705
diff --git a/Cores/flycast-jitless-fuse.libretro.framework/_CodeSignature/CodeResources b/Cores/flycast-jitless-fuse.libretro.framework/_CodeSignature/CodeResources
new file mode 100644
index 00000000..22ba08b0
--- /dev/null
+++ b/Cores/flycast-jitless-fuse.libretro.framework/_CodeSignature/CodeResources
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f39cfa2ee50bd36126c662f7d9be2f4e5725089a03bfa3e176264e60ee02db4e
+size 1798
diff --git a/Cores/flycast-jitless-fuse.libretro.framework/flycast-jitless-fuse.libretro b/Cores/flycast-jitless-fuse.libretro.framework/flycast-jitless-fuse.libretro
new file mode 100644
index 00000000..9a5c762d
--- /dev/null
+++ b/Cores/flycast-jitless-fuse.libretro.framework/flycast-jitless-fuse.libretro
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a4b8c74cd962042d5a1af311a9f144e9e18efc3a0a12579ec805e317fec9d227
+size 13800640
diff --git a/Cores/mame.libretro.framework/Info.plist b/Cores/mame.libretro.framework/Info.plist
new file mode 100644
index 00000000..96646802
--- /dev/null
+++ b/Cores/mame.libretro.framework/Info.plist
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3eb718d71d2f15bc02674e3e976f2adbd3d3429fa8d8feaf57251f8ae2cb2971
+size 709
diff --git a/Cores/mame.libretro.framework/_CodeSignature/CodeResources b/Cores/mame.libretro.framework/_CodeSignature/CodeResources
new file mode 100644
index 00000000..b88b90ea
--- /dev/null
+++ b/Cores/mame.libretro.framework/_CodeSignature/CodeResources
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72ce3cbeaa1b455a96a17b225187c486b52acab42b04035c2b1f97bfd61aa7fb
+size 1798
diff --git a/Cores/mame.libretro.framework/mame.libretro b/Cores/mame.libretro.framework/mame.libretro
new file mode 100755
index 00000000..01cd0815
--- /dev/null
+++ b/Cores/mame.libretro.framework/mame.libretro
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fa5de8b962ca60f3b2838ac9ecf023b53a67f247c8f59e1e3eb21f999f6672b
+size 368212096
diff --git a/ManicEmu/Libretro/LibretroConfig.xcconfig b/ManicEmu/Libretro/LibretroConfig.xcconfig
index 374f354f..c5dcd768 100644
--- a/ManicEmu/Libretro/LibretroConfig.xcconfig
+++ b/ManicEmu/Libretro/LibretroConfig.xcconfig
@@ -118,7 +118,7 @@ OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_ONLINE_UPDATER
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_OPENGLES
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_OPENGLES3
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DIOS
-OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DPACKAGE_VERSION=\"1.7.3\"
+OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DPACKAGE_VERSION=\"1.8.0\"
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DRARCH_MOBILE
OTHER_CFLAGS[sdk=iphoneos*] = $(inherited) $(OTHER_CFLAGS_IOS_TVOS_SHARE)
diff --git a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
index 3c84e6a1..371ee1c3 100644
--- a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
+++ b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
@@ -54,6 +54,9 @@
571748392DA26F1E007CCE25 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571748382DA26F1E007CCE25 /* CoreBluetooth.framework */; };
571BB8072DA4357D00830134 /* ThreeDS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571BB8062DA4357900830134 /* ThreeDS.swift */; };
571BB93A2DA44D6B00830134 /* SDL in Frameworks */ = {isa = PBXBuildFile; productRef = 571BB9392DA44D6B00830134 /* SDL */; };
+ 571F835A2ECF485500D52663 /* azahar.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 571F83582ECF484700D52663 /* azahar.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 571F837B2ECFFE4900D52663 /* AzaharAdvancedSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571F83782ECFFE4100D52663 /* AzaharAdvancedSettingViewController.swift */; };
+ 571F83D12ED1B02F00D52663 /* flycast-jitless-fuse.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 571F83CF2ED1B02300D52663 /* flycast-jitless-fuse.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5720CACC2DB555990090C0F6 /* ThreeDSKeyboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5720CACB2DB5558B0090C0F6 /* ThreeDSKeyboardView.swift */; };
5720D1BE2DB9D3A50090C0F6 /* ControllerMappingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5720D1BD2DB9D39E0090C0F6 /* ControllerMappingView.swift */; };
5720D1C12DB9DCBB0090C0F6 /* ControllerMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5720D1C02DB9DCB10090C0F6 /* ControllerMapping.swift */; };
@@ -610,13 +613,19 @@
57A482012E83E0D4001D4598 /* OriginFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57A482002E83E0D4001D4598 /* OriginFilter.swift */; };
57AD35EA2D7DEB9D0092FD03 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57AD35E92D7DEB900092FD03 /* WebViewController.swift */; };
57AD35EC2D7DEF360092FD03 /* SheerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57AD35EB2D7DEF2E0092FD03 /* SheerExtensions.swift */; };
+ 57B5E3142ECC625E00DE17E9 /* Arcade.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3122ECC625600DE17E9 /* Arcade.swift */; };
+ 57B5E31B2ECC738500DE17E9 /* mame.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57B5E3192ECC735D00DE17E9 /* mame.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 57B5E3242ECCCD0800DE17E9 /* MAMEKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3222ECCCD0100DE17E9 /* MAMEKit.swift */; };
+ 57B5E3362ECDF75F00DE17E9 /* MAMEBiosView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3342ECDF75800DE17E9 /* MAMEBiosView.swift */; };
+ 57B5E33B2ECDFDF500DE17E9 /* MAMEBiosViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3392ECDFDE800DE17E9 /* MAMEBiosViewController.swift */; };
+ 57B5E34A2ECE0A2800DE17E9 /* fbneo.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57B5E3482ECE0A1A00DE17E9 /* fbneo.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 57B5E3522ECE2C4800DE17E9 /* FBNeoCheatCodeListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3502ECE2C3D00DE17E9 /* FBNeoCheatCodeListView.swift */; };
57B6EBDB2D758819002E619C /* GameSaveMatchGameView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EBDA2D7587FE002E619C /* GameSaveMatchGameView.swift */; };
57B6EBF32D769910002E619C /* ProHUDExtentions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EBF22D769905002E619C /* ProHUDExtentions.swift */; };
57B6EC592D77DDFE002E619C /* GameSetting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EC582D77DDF7002E619C /* GameSetting.swift */; };
57B6EC632D77F234002E619C /* GameSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EC622D77F22E002E619C /* GameSettingView.swift */; };
57B6EC652D77F832002E619C /* SettingItemCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EC642D77F81E002E619C /* SettingItemCollectionViewCell.swift */; };
57B6EC672D77F9A1002E619C /* SettingCellItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6EC662D77F997002E619C /* SettingCellItem.swift */; };
- 57B6ECAC2D793877002E619C /* EmulatorCoreExtentions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6ECAB2D793871002E619C /* EmulatorCoreExtentions.swift */; };
57B6ECBD2D7953EC002E619C /* CheatCodeListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6ECBC2D7953E6002E619C /* CheatCodeListView.swift */; };
57B6ECC02D7969E2002E619C /* AddCheatCodeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6ECBF2D7969DA002E619C /* AddCheatCodeView.swift */; };
57B6ECC22D796B97002E619C /* CheatCodeCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B6ECC12D796B86002E619C /* CheatCodeCollectionViewCell.swift */; };
@@ -700,7 +709,7 @@
57DA89132D82B0C20074052A /* SmartCodable in Frameworks */ = {isa = PBXBuildFile; productRef = 57DA89122D82B0C20074052A /* SmartCodable */; };
57DA89322D8328510074052A /* CKAccountStatusExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DA89312D8328420074052A /* CKAccountStatusExtensions.swift */; };
57DCE7A12E0C434C0079E3AA /* mednafen.saturn.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57DCE79D2E0C43310079E3AA /* mednafen.saturn.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 57DCE7D72E0D2EFC0079E3AA /* ThreeDSAdvancedSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DCE7D62E0D2EEB0079E3AA /* ThreeDSAdvancedSettingViewController.swift */; };
+ 57DCE7D72E0D2EFC0079E3AA /* CitraAdvancedSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DCE7D62E0D2EEB0079E3AA /* CitraAdvancedSettingViewController.swift */; };
57DCE7DB2E0D38650079E3AA /* INIFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DCE7DA2E0D385E0079E3AA /* INIFile.swift */; };
57DCE7FE2E0D9F300079E3AA /* RowStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DCE7F22E0D9F300079E3AA /* RowStyle.swift */; };
57DCE7FF2E0D9F300079E3AA /* NavigationRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57DCE7F42E0D9F300079E3AA /* NavigationRow.swift */; };
@@ -753,6 +762,12 @@
57EC6AB02D80321B002920F0 /* CheatCodeBlankSlateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EC6AAF2D803210002920F0 /* CheatCodeBlankSlateView.swift */; };
57EC6AB82D803810002920F0 /* PlayHistoryBlankSlateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EC6AB72D8037FE002920F0 /* PlayHistoryBlankSlateView.swift */; };
57EC6AC82D8119D9002920F0 /* SyncManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EC6AC72D8119D8002920F0 /* SyncManager.swift */; };
+ 57EED0272EC8D78F003971BD /* iCloudSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0252EC8D783003971BD /* iCloudSettingViewController.swift */; };
+ 57EED02C2EC8D7C8003971BD /* iCloudSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED02A2EC8D7C1003971BD /* iCloudSettingView.swift */; };
+ 57EED0312EC8D9AA003971BD /* JITSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED02F2EC8D99D003971BD /* JITSettingViewController.swift */; };
+ 57EED0362EC8D9C4003971BD /* JITSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0342EC8D9BB003971BD /* JITSettingView.swift */; };
+ 57EED0772ECB817C003971BD /* IconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0752ECB8172003971BD /* IconView.swift */; };
+ 57EED08A2ECB8AAE003971BD /* DynamicShadow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0882ECB8A9C003971BD /* DynamicShadow.swift */; };
57F0D7F22DE1634E00760F57 /* LibretroPreViewFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D7F12DE1634400760F57 /* LibretroPreViewFilter.swift */; };
57F0D7F52DE1750A00760F57 /* FilterNameOnlyCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D7F42DE174F800760F57 /* FilterNameOnlyCollectionCell.swift */; };
57F0D81A2DE1C2D700760F57 /* GameListStyleCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D8192DE1C2C200760F57 /* GameListStyleCollectionViewCell.swift */; };
@@ -764,6 +779,8 @@
57F1A9342D7D6D7D00D0CC93 /* ExternalSceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F1A9332D7D6D7C00D0CC93 /* ExternalSceneDelegate.swift */; };
57F1A9392D7D704300D0CC93 /* AirPlayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F1A9382D7D703500D0CC93 /* AirPlayViewController.swift */; };
57F2E9482DA289C2000E5BA6 /* OpenSSL in Frameworks */ = {isa = PBXBuildFile; productRef = 57F2E9472DA289C2000E5BA6 /* OpenSSL */; };
+ 57F30CD82EC048880035327C /* ManufacturerCategoryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F30CD62EC048780035327C /* ManufacturerCategoryView.swift */; };
+ 57F30CDF2EC44F390035327C /* Manufacturer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F30CDD2EC44F340035327C /* Manufacturer.swift */; };
57F632452D6D4A03007270E8 /* AddImportServiceCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F632442D6D4A02007270E8 /* AddImportServiceCollectionViewCell.swift */; };
57F6327C2D6EA8D3007270E8 /* DropGlowEffectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F6327B2D6EA8BD007270E8 /* DropGlowEffectView.swift */; };
57F632852D6EB485007270E8 /* UIScreenExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F632842D6EB47F007270E8 /* UIScreenExtensions.swift */; };
@@ -835,12 +852,16 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
+ 571F835A2ECF485500D52663 /* azahar.libretro.framework in Embed Frameworks */,
+ 57B5E34A2ECE0A2800DE17E9 /* fbneo.libretro.framework in Embed Frameworks */,
+ 57B5E31B2ECC738500DE17E9 /* mame.libretro.framework in Embed Frameworks */,
57A481682E7F05AB001D4598 /* melondsds.libretro.framework in Embed Frameworks */,
57A481542E7A8B84001D4598 /* bsnes-jg.libretro.framework in Embed Frameworks */,
57A4812E2E77F993001D4598 /* clownmdemu.libretro.framework in Embed Frameworks */,
57A4812D2E77F98D001D4598 /* gearsystem.libretro.framework in Embed Frameworks */,
57A480CC2E733B83001D4598 /* flycast-jitless.libretro.framework in Embed Frameworks */,
57A480CD2E733B83001D4598 /* flycast-jitless-wince.libretro.framework in Embed Frameworks */,
+ 571F83D12ED1B02F00D52663 /* flycast-jitless-fuse.libretro.framework in Embed Frameworks */,
5771C2922E699C930062EDE0 /* flycast.libretro.framework in Embed Frameworks */,
574ABEC52E60A3C90045F76E /* mgba.libretro.framework in Embed Frameworks */,
574ABEC42E60A3C30045F76E /* vbam.libretro.framework in Embed Frameworks */,
@@ -914,6 +935,9 @@
571744142DA2637F007CCE25 /* libThreeDS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libThreeDS.a; sourceTree = BUILT_PRODUCTS_DIR; };
571748382DA26F1E007CCE25 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; };
571BB8062DA4357900830134 /* ThreeDS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDS.swift; sourceTree = "<group>"; };
+ 571F83582ECF484700D52663 /* azahar.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = azahar.libretro.framework; path = ../Cores/azahar.libretro.framework; sourceTree = SOURCE_ROOT; };
+ 571F83782ECFFE4100D52663 /* AzaharAdvancedSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzaharAdvancedSettingViewController.swift; sourceTree = "<group>"; };
+ 571F83CF2ED1B02300D52663 /* flycast-jitless-fuse.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "flycast-jitless-fuse.libretro.framework"; path = "../Cores/flycast-jitless-fuse.libretro.framework"; sourceTree = SOURCE_ROOT; };
5720CACB2DB5558B0090C0F6 /* ThreeDSKeyboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDSKeyboardView.swift; sourceTree = "<group>"; };
5720CF142DB775550090C0F6 /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/System/iOSSupport/System/Library/Frameworks/MetalKit.framework; sourceTree = DEVELOPER_DIR; };
5720CF162DB7755C0090C0F6 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/System/Library/Frameworks/Metal.framework; sourceTree = DEVELOPER_DIR; };
@@ -1658,13 +1682,19 @@
57AD35EB2D7DEF2E0092FD03 /* SheerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheerExtensions.swift; sourceTree = "<group>"; };
57ADFED92D94F52500502E5C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
57ADFEDA2D94F52500502E5C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 57B5E3122ECC625600DE17E9 /* Arcade.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Arcade.swift; sourceTree = "<group>"; };
+ 57B5E3192ECC735D00DE17E9 /* mame.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = mame.libretro.framework; path = ../Cores/mame.libretro.framework; sourceTree = SOURCE_ROOT; };
+ 57B5E3222ECCCD0100DE17E9 /* MAMEKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MAMEKit.swift; sourceTree = "<group>"; };
+ 57B5E3342ECDF75800DE17E9 /* MAMEBiosView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MAMEBiosView.swift; sourceTree = "<group>"; };
+ 57B5E3392ECDFDE800DE17E9 /* MAMEBiosViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MAMEBiosViewController.swift; sourceTree = "<group>"; };
+ 57B5E3482ECE0A1A00DE17E9 /* fbneo.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = fbneo.libretro.framework; path = ../Cores/fbneo.libretro.framework; sourceTree = SOURCE_ROOT; };
+ 57B5E3502ECE2C3D00DE17E9 /* FBNeoCheatCodeListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FBNeoCheatCodeListView.swift; sourceTree = "<group>"; };
57B6EBDA2D7587FE002E619C /* GameSaveMatchGameView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameSaveMatchGameView.swift; sourceTree = "<group>"; };
57B6EBF22D769905002E619C /* ProHUDExtentions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProHUDExtentions.swift; sourceTree = "<group>"; };
57B6EC582D77DDF7002E619C /* GameSetting.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameSetting.swift; sourceTree = "<group>"; };
57B6EC622D77F22E002E619C /* GameSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameSettingView.swift; sourceTree = "<group>"; };
57B6EC642D77F81E002E619C /* SettingItemCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingItemCollectionViewCell.swift; sourceTree = "<group>"; };
57B6EC662D77F997002E619C /* SettingCellItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingCellItem.swift; sourceTree = "<group>"; };
- 57B6ECAB2D793871002E619C /* EmulatorCoreExtentions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmulatorCoreExtentions.swift; sourceTree = "<group>"; };
57B6ECBC2D7953E6002E619C /* CheatCodeListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheatCodeListView.swift; sourceTree = "<group>"; };
57B6ECBF2D7969DA002E619C /* AddCheatCodeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddCheatCodeView.swift; sourceTree = "<group>"; };
57B6ECC12D796B86002E619C /* CheatCodeCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheatCodeCollectionViewCell.swift; sourceTree = "<group>"; };
@@ -1741,7 +1771,7 @@
57D7CFC12EAA1B5E00F41540 /* ShadowLabel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShadowLabel.m; sourceTree = "<group>"; };
57DA89312D8328420074052A /* CKAccountStatusExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CKAccountStatusExtensions.swift; sourceTree = "<group>"; };
57DCE79D2E0C43310079E3AA /* mednafen.saturn.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = mednafen.saturn.libretro.framework; path = ../Cores/mednafen.saturn.libretro.framework; sourceTree = SOURCE_ROOT; };
- 57DCE7D62E0D2EEB0079E3AA /* ThreeDSAdvancedSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDSAdvancedSettingViewController.swift; sourceTree = "<group>"; };
+ 57DCE7D62E0D2EEB0079E3AA /* CitraAdvancedSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CitraAdvancedSettingViewController.swift; sourceTree = "<group>"; };
57DCE7DA2E0D385E0079E3AA /* INIFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = INIFile.swift; sourceTree = "<group>"; };
57DCE7E72E0D9F300079E3AA /* Deprecated.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deprecated.swift; sourceTree = "<group>"; };
57DCE7E82E0D9F300079E3AA /* DetailText.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailText.swift; sourceTree = "<group>"; };
@@ -1793,6 +1823,12 @@
57EC6AAF2D803210002920F0 /* CheatCodeBlankSlateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheatCodeBlankSlateView.swift; sourceTree = "<group>"; };
57EC6AB72D8037FE002920F0 /* PlayHistoryBlankSlateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayHistoryBlankSlateView.swift; sourceTree = "<group>"; };
57EC6AC72D8119D8002920F0 /* SyncManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncManager.swift; sourceTree = "<group>"; };
+ 57EED0252EC8D783003971BD /* iCloudSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudSettingViewController.swift; sourceTree = "<group>"; };
+ 57EED02A2EC8D7C1003971BD /* iCloudSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudSettingView.swift; sourceTree = "<group>"; };
+ 57EED02F2EC8D99D003971BD /* JITSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JITSettingViewController.swift; sourceTree = "<group>"; };
+ 57EED0342EC8D9BB003971BD /* JITSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JITSettingView.swift; sourceTree = "<group>"; };
+ 57EED0752ECB8172003971BD /* IconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconView.swift; sourceTree = "<group>"; };
+ 57EED0882ECB8A9C003971BD /* DynamicShadow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DynamicShadow.swift; sourceTree = "<group>"; };
57F0D7F12DE1634400760F57 /* LibretroPreViewFilter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LibretroPreViewFilter.swift; sourceTree = "<group>"; };
57F0D7F42DE174F800760F57 /* FilterNameOnlyCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterNameOnlyCollectionCell.swift; sourceTree = "<group>"; };
57F0D8192DE1C2C200760F57 /* GameListStyleCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameListStyleCollectionViewCell.swift; sourceTree = "<group>"; };
@@ -1802,6 +1838,8 @@
57F1A9242D7D36CD00D0CC93 /* GameViewExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewExtensions.swift; sourceTree = "<group>"; };
57F1A9332D7D6D7C00D0CC93 /* ExternalSceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExternalSceneDelegate.swift; sourceTree = "<group>"; };
57F1A9382D7D703500D0CC93 /* AirPlayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AirPlayViewController.swift; sourceTree = "<group>"; };
+ 57F30CD62EC048780035327C /* ManufacturerCategoryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManufacturerCategoryView.swift; sourceTree = "<group>"; };
+ 57F30CDD2EC44F340035327C /* Manufacturer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Manufacturer.swift; sourceTree = "<group>"; };
57F456CF2DA98BB8007203AF /* Config-DevRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Config-DevRelease.xcconfig"; sourceTree = "<group>"; };
57F632442D6D4A02007270E8 /* AddImportServiceCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddImportServiceCollectionViewCell.swift; sourceTree = "<group>"; };
57F6327B2D6EA8BD007270E8 /* DropGlowEffectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DropGlowEffectView.swift; sourceTree = "<group>"; };
@@ -2129,8 +2167,11 @@
57605FF62D20F23200A98B0C /* ViewControllers */ = {
isa = PBXGroup;
children = (
+ 57EED02F2EC8D99D003971BD /* JITSettingViewController.swift */,
+ 57EED0252EC8D783003971BD /* iCloudSettingViewController.swift */,
5754D8872E274A9D001EA5ED /* OnlinePlaySettingViewController.swift */,
5706AFBC2DF7D8A40066122E /* BIOSSelectionViewController.swift */,
+ 57B5E3392ECDFDE800DE17E9 /* MAMEBiosViewController.swift */,
570F592D2DC885E3007BFD92 /* ThemeViewController.swift */,
57605FFD2D20F29000A98B0C /* SettingsViewController.swift */,
570F59BD2DC91FD5007BFD92 /* ColorPickerViewController.swift */,
@@ -2163,6 +2204,7 @@
57605FFF2D222CF600A98B0C /* Views */ = {
isa = PBXGroup;
children = (
+ 57F30CD62EC048780035327C /* ManufacturerCategoryView.swift */,
A3A043B82E9CF33B006442C2 /* GameplayManualsView.swift */,
570F591F2DC7AC9E007BFD92 /* GameCoverView.swift */,
57EC6AA52D801F4D002920F0 /* GamesListBlankSlateView.swift */,
@@ -3617,6 +3659,7 @@
577005562D3CC2DE00762E8F /* Models */ = {
isa = PBXGroup;
children = (
+ 57F30CDD2EC44F340035327C /* Manufacturer.swift */,
5754D8952E2752C0001EA5ED /* ExtraKey.swift */,
57E8B18A2E2553CC00F93E60 /* HomeMenuImage.swift */,
577005D92D3F404D00762E8F /* ImportError.swift */,
@@ -3731,7 +3774,8 @@
57399AC42E40ACCF00AB73DD /* PSXSBIImportViewController.swift */,
575A39D12DCD2F9000B28FC2 /* GameCoverSearchViewController.swift */,
57913B3F2D5ED4C1004D51AA /* GameInfoViewController.swift */,
- 57DCE7D62E0D2EEB0079E3AA /* ThreeDSAdvancedSettingViewController.swift */,
+ 57DCE7D62E0D2EEB0079E3AA /* CitraAdvancedSettingViewController.swift */,
+ 571F83782ECFFE4100D52663 /* AzaharAdvancedSettingViewController.swift */,
);
path = ViewControllers;
sourceTree = "<group>";
@@ -3777,6 +3821,7 @@
57B6ECC12D796B86002E619C /* CheatCodeCollectionViewCell.swift */,
57B6ECBF2D7969DA002E619C /* AddCheatCodeView.swift */,
57B6ECBC2D7953E6002E619C /* CheatCodeListView.swift */,
+ 57B5E3502ECE2C3D00DE17E9 /* FBNeoCheatCodeListView.swift */,
);
path = Views;
sourceTree = "<group>";
@@ -3824,6 +3869,9 @@
57BFBE702DD335FD00AABF98 /* Cores */ = {
isa = PBXGroup;
children = (
+ 571F83582ECF484700D52663 /* azahar.libretro.framework */,
+ 57B5E3482ECE0A1A00DE17E9 /* fbneo.libretro.framework */,
+ 57B5E3192ECC735D00DE17E9 /* mame.libretro.framework */,
57A481672E7F059D001D4598 /* melondsds.libretro.framework */,
57A481532E7A8B76001D4598 /* bsnes-jg.libretro.framework */,
57A481282E77F482001D4598 /* clownmdemu.libretro.framework */,
@@ -3831,6 +3879,7 @@
5771C2902E699C880062EDE0 /* flycast.libretro.framework */,
57A480CB2E733B77001D4598 /* flycast-jitless.libretro.framework */,
57A480C42E733236001D4598 /* flycast-jitless-wince.libretro.framework */,
+ 571F83CF2ED1B02300D52663 /* flycast-jitless-fuse.libretro.framework */,
574ABE932E6020880045F76E /* gambatte.libretro.framework */,
574ABE942E6020880045F76E /* mgba.libretro.framework */,
574ABE952E6020880045F76E /* vbam.libretro.framework */,
@@ -3851,6 +3900,7 @@
57CCB3392D6584A40036476B /* Protocols */ = {
isa = PBXGroup;
children = (
+ 57EED0882ECB8A9C003971BD /* DynamicShadow.swift */,
57B6EC662D77F997002E619C /* SettingCellItem.swift */,
57CCB33A2D6584AC0036476B /* ObjectUpdatable.swift */,
);
@@ -4052,6 +4102,7 @@
57F0D8402DE2CD7500760F57 /* Cores */ = {
isa = PBXGroup;
children = (
+ 57B5E3122ECC625600DE17E9 /* Arcade.swift */,
57526B7D2EADEECD003F91BD /* FDS.swift */,
57A481692E7F05CD001D4598 /* NDS.swift */,
5771C28A2E6986BE0062EDE0 /* DC.swift */,
@@ -4096,9 +4147,12 @@
57F632FC2D718224007270E8 /* Views */ = {
isa = PBXGroup;
children = (
+ 57EED0342EC8D9BB003971BD /* JITSettingView.swift */,
+ 57EED02A2EC8D7C1003971BD /* iCloudSettingView.swift */,
5754D88E2E274B1A001EA5ED /* DSOnlinePlaySettingCell.swift */,
5754D88A2E274AB9001EA5ED /* OnlinePlaySettingView.swift */,
5706AFCE2DF7FC510066122E /* SettingDescriptionCollectionViewCell.swift */,
+ 57B5E3342ECDF75800DE17E9 /* MAMEBiosView.swift */,
5706AFC52DF7DAA20066122E /* BIOSCollectionViewCell.swift */,
5706AFC12DF7D9460066122E /* BIOSSelectionView.swift */,
576F0E162D8820AB00D2A1BA /* MembershipInfoView.swift */,
@@ -4152,6 +4206,7 @@
A561F94D257DCB5200E800A8 /* Views */ = {
isa = PBXGroup;
children = (
+ 57EED0752ECB8172003971BD /* IconView.swift */,
A392D5B22E9796B800F920E7 /* ServiceIconView.swift */,
A392D5632E96682600F920E7 /* DisabledTapSwitch.swift */,
57399B182E42EDE800AB73DD /* DeadZoneControl.swift */,
@@ -4285,6 +4340,7 @@
A5A69BA9256E56FF00D51C09 /* Others */ = {
isa = PBXGroup;
children = (
+ 57B5E3222ECCCD0100DE17E9 /* MAMEKit.swift */,
5771C1A72E6207650062EDE0 /* MobyGamesKit.swift */,
5744C6CE2E360AD50088081A /* UIControllerKit.swift */,
57DCE8552E0FC9B60079E3AA /* CoreSelectionView.swift */,
@@ -4362,7 +4418,6 @@
57F1A9242D7D36CD00D0CC93 /* GameViewExtensions.swift */,
5706236B2D7BDFDC004F09E7 /* CIFilterExtensions.swift */,
57B6ECCC2D798419002E619C /* CheatTypeExtensions.swift */,
- 57B6ECAB2D793871002E619C /* EmulatorCoreExtentions.swift */,
57B6EBF22D769905002E619C /* ProHUDExtentions.swift */,
57F633032D718C45007270E8 /* LocaleExtensions.swift */,
57F632842D6EB47F007270E8 /* UIScreenExtensions.swift */,
@@ -5078,7 +5133,7 @@
57E48D932D8D73AD008000A3 /* CheersView.swift in Sources */,
577005B32D3E6F1600762E8F /* ImportServiceListView.swift in Sources */,
57C8A11A2DF2BA3E00593F82 /* SNES.swift in Sources */,
- 57DCE7D72E0D2EFC0079E3AA /* ThreeDSAdvancedSettingViewController.swift in Sources */,
+ 57DCE7D72E0D2EFC0079E3AA /* CitraAdvancedSettingViewController.swift in Sources */,
57047A1D2D85BB2200C62FF6 /* PurchaseButtonReusableView.swift in Sources */,
5720D1C12DB9DCBB0090C0F6 /* ControllerMapping.swift in Sources */,
57E8B0822E1CDB8B00F93E60 /* GB.swift in Sources */,
@@ -5089,6 +5144,7 @@
5770055D2D3CC3DA00762E8F /* GameSaveState.swift in Sources */,
57DCE7DB2E0D38650079E3AA /* INIFile.swift in Sources */,
5770068D2D438FEA00762E8F /* ControllersSettingView.swift in Sources */,
+ 57EED0272EC8D78F003971BD /* iCloudSettingViewController.swift in Sources */,
57CCB34A2D65B3DC0036476B /* ImageFetcher.swift in Sources */,
57F633042D718C4E007270E8 /* LocaleExtensions.swift in Sources */,
5706B03B2DFBEC240066122E /* GG.swift in Sources */,
@@ -5116,6 +5172,7 @@
5720E76D2E540FDB00EC0DA5 /* RetroAchievementsProfileView.swift in Sources */,
57605FFE2D20F29000A98B0C /* SettingsViewController.swift in Sources */,
573BECBD2D1D3F6B008AD18D /* HomeTabBar.swift in Sources */,
+ 57EED0772ECB817C003971BD /* IconView.swift in Sources */,
5720E8462E5C4AA900EC0DA5 /* AchievementsUser.swift in Sources */,
5720E7882E5410D000EC0DA5 /* RetroAchievementsDetailView.swift in Sources */,
A52C1D86257F91550029B15B /* BaseViewController.swift in Sources */,
@@ -5129,10 +5186,12 @@
57BFBE902DD435C900AABF98 /* PSP.swift in Sources */,
57CC33E52DBE157400DF7418 /* SkinPreviewViewController.swift in Sources */,
5720D1BE2DB9D3A50090C0F6 /* ControllerMappingView.swift in Sources */,
+ 57EED0362EC8D9C4003971BD /* JITSettingView.swift in Sources */,
57047A1F2D85C95900C62FF6 /* PurchaseViewController.swift in Sources */,
5720D1C52DBA0DF10090C0F6 /* ControllerMappingViewController.swift in Sources */,
5720E7F62E5569DC00EC0DA5 /* RetroAchievementsListCell.swift in Sources */,
577005A72D3E4CE400762E8F /* GameTypeExtensions.swift in Sources */,
+ 57EED08A2ECB8AAE003971BD /* DynamicShadow.swift in Sources */,
57913B422D5ED722004D51AA /* GameInfoCoverView.swift in Sources */,
577005582D3CC30A00762E8F /* FileType.swift in Sources */,
575A39D02DCD2B3E00B28FC2 /* UIImageViewExtensions.swift in Sources */,
@@ -5157,6 +5216,7 @@
57913B492D5ED7D7004D51AA /* SaveItemCollectionViewCell.swift in Sources */,
577005D42D3F2F8E00762E8F /* WebServer.swift in Sources */,
B2F4B7B02A138C74003B0E07 /* PhotoSaver.swift in Sources */,
+ 57B5E3522ECE2C4800DE17E9 /* FBNeoCheatCodeListView.swift in Sources */,
B278BA812A32DA9000D0458D /* PurchaseManager.swift in Sources */,
57DF840C2D61B3D500AA0AAB /* BlankSlateCollectionView.swift in Sources */,
575FF8E82D34A6DF0043B2F3 /* System.swift in Sources */,
@@ -5190,6 +5250,7 @@
576F0E152D88209000D2A1BA /* SettingsMembershipGiftView.swift in Sources */,
5706B0492DFBF83C0066122E /* 32X.swift in Sources */,
57A480E72E74030E001D4598 /* CheevosChallengeView.swift in Sources */,
+ 57B5E3142ECC625E00DE17E9 /* Arcade.swift in Sources */,
5720E7AA2E541F2000EC0DA5 /* RadialGradientView.swift in Sources */,
57B6ECC22D796B97002E619C /* CheatCodeCollectionViewCell.swift in Sources */,
A52C1D89257F96C90029B15B /* UIViewControllerExtensions.swift in Sources */,
@@ -5198,6 +5259,7 @@
57D7CF902EA8DB7800F41540 /* TriggerProActionSettingViews.swift in Sources */,
57655C262DF6BCF3003E4A6E /* PlatformSelectionView.swift in Sources */,
577005552D3CC25700762E8F /* FilesImporter.swift in Sources */,
+ 57EED0312EC8D9AA003971BD /* JITSettingViewController.swift in Sources */,
576A7DA82E3B4B1400008E35 /* PS1.swift in Sources */,
5720E7842E5410B100EC0DA5 /* RetroAchievementsDetailViewController.swift in Sources */,
57CCB3C82D6770CE0036476B /* Settings.swift in Sources */,
@@ -5211,6 +5273,7 @@
577005612D3CD3AC00762E8F /* UTTypeExtensions.swift in Sources */,
57D7CF952EA8E7EE00F41540 /* TriggerProView.swift in Sources */,
5706B0372DFBEC1E0066122E /* SG1000.swift in Sources */,
+ 57EED02C2EC8D7C8003971BD /* iCloudSettingView.swift in Sources */,
57CCB3CD2D6775080036476B /* Database.swift in Sources */,
5726FED82D71B63E00041AD5 /* CacheManager.swift in Sources */,
577005B52D3E6F3000762E8F /* AddImportServiceView.swift in Sources */,
@@ -5240,6 +5303,7 @@
57D7CF4B2EA736C900F41540 /* TriggerProListCell.swift in Sources */,
57DCE8012E0D9F300079E3AA /* DetailText.swift in Sources */,
5720E7ED2E547FE100EC0DA5 /* AchievementsProfile.swift in Sources */,
+ 57F30CDF2EC44F390035327C /* Manufacturer.swift in Sources */,
57DCE8022E0D9F300079E3AA /* SwitchRow.swift in Sources */,
57399ACF2E40BB4D00AB73DD /* PSXSBIDescCollectionCell.swift in Sources */,
57DCE8032E0D9F300079E3AA /* QuickTableViewController.swift in Sources */,
@@ -5284,6 +5348,7 @@
577005B92D3E71BC00762E8F /* ImportService.swift in Sources */,
570622EC2D7BD2FE004F09E7 /* FilterManager.swift in Sources */,
57D7CF622EA792FB00F41540 /* AddTriggerButtonView.swift in Sources */,
+ 57B5E3362ECDF75F00DE17E9 /* MAMEBiosView.swift in Sources */,
57B6EC652D77F832002E619C /* SettingItemCollectionViewCell.swift in Sources */,
57F1A9252D7D36D200D0CC93 /* GameViewExtensions.swift in Sources */,
570F59DC2DC9D52C007BFD92 /* ThemeManager.swift in Sources */,
@@ -5307,6 +5372,7 @@
B2C97B502A09F3DE00053A4C /* UIimageExtensions.swift in Sources */,
577006092D3F980400762E8F /* LowestHaderReusableView.swift in Sources */,
570F592E2DC885EF007BFD92 /* ThemeViewController.swift in Sources */,
+ 57B5E3242ECCCD0800DE17E9 /* MAMEKit.swift in Sources */,
57DA89322D8328510074052A /* CKAccountStatusExtensions.swift in Sources */,
5720E7652E540F7200EC0DA5 /* RetroAchievementsLoginView.swift in Sources */,
B2383F512A2733DF000563E6 /* UIFontExtensions.swift in Sources */,
@@ -5340,6 +5406,7 @@
5706236A2D7BDCD9004F09E7 /* FilterCollectionViewCell.swift in Sources */,
57913AF52D5D89CF004D51AA /* TouchController.swift in Sources */,
57CC33BE2DBCDF3400DF7418 /* CGRectExtensions.swift in Sources */,
+ 57B5E33B2ECDFDF500DE17E9 /* MAMEBiosViewController.swift in Sources */,
57399B192E42EDEA00AB73DD /* DeadZoneControl.swift in Sources */,
57913AFB2D5D8FCF004D51AA /* ControllersCollectionViewCell.swift in Sources */,
A392D5652E96682C00F920E7 /* DisabledTapSwitch.swift in Sources */,
@@ -5357,6 +5424,7 @@
57CC33BA2DBCD90700DF7418 /* AuxiliaryLineView.swift in Sources */,
577005B72D3E715500762E8F /* ImportServiceListCollectionViewCell.swift in Sources */,
57BFBE772DD336E000AABF98 /* main.swift in Sources */,
+ 57F30CD82EC048880035327C /* ManufacturerCategoryView.swift in Sources */,
570F590E2DC5BAEE007BFD92 /* DesktopIconCollectionViewCell.swift in Sources */,
5770059E2D3E2EE300762E8F /* FileManagerExtensions.swift in Sources */,
57D029192E6C9C5200BF1F9D /* CheevosProgressView.swift in Sources */,
@@ -5371,13 +5439,13 @@
57526B7E2EADEED0003F91BD /* FDS.swift in Sources */,
579213532D95314800E88819 /* BaseNavigationController.swift in Sources */,
57E0CC532D8EACC70027FB8C /* ResourcesKit.swift in Sources */,
+ 571F837B2ECFFE4900D52663 /* AzaharAdvancedSettingViewController.swift in Sources */,
5770069A2D44B9B500762E8F /* GamesNavigationView.swift in Sources */,
577006A22D44CB9C00762E8F /* SkinSettingsViewController.swift in Sources */,
5770069E2D44C01800762E8F /* GamesCollectionReusableView.swift in Sources */,
5720E7922E54113500EC0DA5 /* RetroAchievementListView.swift in Sources */,
57B6ECC72D797935002E619C /* AddCheatCodeViewController.swift in Sources */,
57047A0C2D852E7F00C62FF6 /* FeaturesView.swift in Sources */,
- 57B6ECAC2D793877002E619C /* EmulatorCoreExtentions.swift in Sources */,
577006852D438EA100762E8F /* ControllersSettingViewController.swift in Sources */,
577005452D3C91F300762E8F /* AddImportServiceViewController.swift in Sources */,
570F59C02DC91FF5007BFD92 /* ColorPickerView.swift in Sources */,
@@ -5779,7 +5847,6 @@
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/Tiercel/Tiercel.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView/VisualEffectView.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation/ZIPFoundation.modulemap\"",
- "-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync/iCloudSync.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Private/Realm/Realm.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/GCDWebServer/GCDWebServer.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/SQLCipher/SQLCipher.modulemap\"",
@@ -5865,7 +5932,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -5912,7 +5978,7 @@
"-weak_framework",
"\"UIKit\"",
);
- OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync\"";
+ OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\"";
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = "${APP_BUNDLE_IDENTIFIER}";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = "${APP_BUNDLE_IDENTIFIER}";
@@ -6136,7 +6202,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -6672,7 +6737,6 @@
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/Tiercel/Tiercel.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView/VisualEffectView.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation/ZIPFoundation.modulemap\"",
- "-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync/iCloudSync.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Private/Realm/Realm.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/FLEX/FLEX.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/GCDWebServer/GCDWebServer.modulemap\"",
@@ -6762,7 +6826,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -6867,7 +6930,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -6922,7 +6984,7 @@
"-weak_framework",
"\"UIKit\"",
);
- OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync\"";
+ OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\"";
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = "${APP_BUNDLE_IDENTIFIER}";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = "${APP_BUNDLE_IDENTIFIER}";
@@ -7153,7 +7215,6 @@
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/Tiercel/Tiercel.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView/VisualEffectView.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation/ZIPFoundation.modulemap\"",
- "-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync/iCloudSync.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Private/Realm/Realm.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/FLEX/FLEX.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/GCDWebServer/GCDWebServer.modulemap\"",
@@ -7243,7 +7304,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -7299,7 +7359,7 @@
"-weak_framework",
"\"UIKit\"",
);
- OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync\"";
+ OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\"";
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = "${APP_BUNDLE_IDENTIFIER}";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = "${APP_BUNDLE_IDENTIFIER}";
@@ -7594,7 +7654,6 @@
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/Tiercel/Tiercel.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView/VisualEffectView.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation/ZIPFoundation.modulemap\"",
- "-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync/iCloudSync.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Private/Realm/Realm.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/FLEX/FLEX.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/GCDWebServer/GCDWebServer.modulemap\"",
@@ -7684,7 +7743,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -7740,7 +7798,7 @@
"-weak_framework",
"\"UIKit\"",
);
- OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync\"";
+ OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FLEX\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/LookinServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ShowTouches\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\"";
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = "${APP_BUNDLE_IDENTIFIER}";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = "${APP_BUNDLE_IDENTIFIER}";
@@ -7839,7 +7897,6 @@
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/Tiercel/Tiercel.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView/VisualEffectView.modulemap\"",
"-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation/ZIPFoundation.modulemap\"",
- "-fmodule-map-file=\"${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync/iCloudSync.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Private/Realm/Realm.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/GCDWebServer/GCDWebServer.modulemap\"",
"-fmodule-map-file=\"${PODS_ROOT}/Headers/Public/SQLCipher/SQLCipher.modulemap\"",
@@ -7925,7 +7982,6 @@
"-l\"ZIPFoundation\"",
"-l\"c++\"",
"-l\"compression\"",
- "-l\"iCloudSync\"",
"-l\"iconv\"",
"-l\"realm-monorepo\"",
"-l\"resolv\"",
@@ -7972,7 +8028,7 @@
"-weak_framework",
"\"UIKit\"",
);
- OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/iCloudSync\"";
+ OTHER_MODULE_VERIFIER_FLAGS = "$(inherited) \"-F${PODS_CONFIGURATION_BUILD_DIR}/BetterSegmentedControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/BlankSlate\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Closures\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CloudServiceKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/CollectionViewPagingLayout\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/DNSPageView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Device\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fireworks\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/FluentDarkModeKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Fuse\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/GCDWebServer\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/HXPhotoPicker\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Haptica\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManagerSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardReturnManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbar\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardToolbarManager\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextInputViewNotification\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IQTextView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/IceCream\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXBanner\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/JXPageControl\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/KeychainAccess\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicEmuCore\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ManicSupport\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/MarqueeLabel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/NVActivityIndicatorView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/OAuthSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Permission\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ProHUD\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Realm\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/RealmSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SFSafeSymbols\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLCipher\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SQLite.swift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SSZipArchive\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Schedule\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SideMenu\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SnapKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwifterSwift\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/SwipeCellKit\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/Tiercel\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/VisualEffectView\" \"-F${PODS_CONFIGURATION_BUILD_DIR}/ZIPFoundation\"";
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = "${APP_BUNDLE_IDENTIFIER}";
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = "${APP_BUNDLE_IDENTIFIER}";
diff --git a/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme b/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
index 7f1a2d96..afc6f72d 100644
--- a/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
+++ b/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
@@ -31,7 +31,7 @@
</Testables>
</TestAction>
<LaunchAction
- buildConfiguration = "Release"
+ buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
@@ -82,7 +82,7 @@
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
- buildConfiguration = "SideloadRelease"
+ buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/Contents.json
new file mode 100644
index 00000000..bf682b47
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected]
new file mode 100644
index 00000000..f3d8ffd9
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected]
new file mode 100644
index 00000000..90e38fe0
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected]
new file mode 100644
index 00000000..f3d8ffd9
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected]
new file mode 100644
index 00000000..90e38fe0
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/Contents.json
new file mode 100644
index 00000000..dd077ed1
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected]
new file mode 100644
index 00000000..f1660257
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected]
new file mode 100644
index 00000000..f366cbbe
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected]
new file mode 100644
index 00000000..2b697342
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected]
new file mode 100644
index 00000000..985b5455
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/arcade_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/Contents.json
new file mode 100644
index 00000000..8d5eff79
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected]
new file mode 100644
index 00000000..6d4a39ae
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected]
new file mode 100644
index 00000000..3f89318f
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/arcade_group_brand.imageset/[email protected] differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/Contents.json
similarity index 63%
rename from iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Contents.json
rename to ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/Contents.json
index 3ae9a2fa..bd4bafab 100644
--- a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Contents.json
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/Contents.json
@@ -2,21 +2,21 @@
"images" : [
{
"idiom" : "universal",
- "filename" : "Banner.png",
"scale" : "1x"
},
{
+ "filename" : "[email protected]",
"idiom" : "universal",
- "filename" : "[email protected]",
"scale" : "2x"
},
{
+ "filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
- "version" : 1,
- "author" : "xcode"
+ "author" : "xcode",
+ "version" : 1
}
-}
\ No newline at end of file
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected]
new file mode 100644
index 00000000..df486f7c
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected]
new file mode 100644
index 00000000..2c58eb08
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_h.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/Contents.json
new file mode 100644
index 00000000..9ec48c90
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected]
new file mode 100644
index 00000000..3dbf6f36
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected]
new file mode 100644
index 00000000..9667a11a
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/arcade_cover_v.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/Contents.json
new file mode 100644
index 00000000..5911d38f
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected]
new file mode 100644
index 00000000..df8f4dcb
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected]
new file mode 100644
index 00000000..5ad8c73c
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected]
new file mode 100644
index 00000000..df8f4dcb
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected]
new file mode 100644
index 00000000..5ad8c73c
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/Contents.json
new file mode 100644
index 00000000..cba12191
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected]
new file mode 100644
index 00000000..59ac3307
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected]
new file mode 100644
index 00000000..71af0b70
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected]
new file mode 100644
index 00000000..4ee893fd
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected]
new file mode 100644
index 00000000..5bf3c4bc
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/nintendo_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/Contents.json
new file mode 100644
index 00000000..321644e2
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected]
new file mode 100644
index 00000000..cd21a47d
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected]
new file mode 100644
index 00000000..734f2c4e
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected]
new file mode 100644
index 00000000..cd21a47d
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected]
new file mode 100644
index 00000000..734f2c4e
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/Contents.json
new file mode 100644
index 00000000..3b035dc4
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected]
new file mode 100644
index 00000000..4b39eedb
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected]
new file mode 100644
index 00000000..fdf5bd97
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected]
new file mode 100644
index 00000000..63d069f1
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected]
new file mode 100644
index 00000000..ab5d9d6d
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sega_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/Contents.json
new file mode 100644
index 00000000..29d78ea9
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected]
new file mode 100644
index 00000000..48ba266e
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected]
new file mode 100644
index 00000000..a14032a4
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected]
new file mode 100644
index 00000000..7a563602
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected]
new file mode 100644
index 00000000..270ab144
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_highlight.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/Contents.json
new file mode 100644
index 00000000..4f12a677
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected]
new file mode 100644
index 00000000..6dc970db
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected]
new file mode 100644
index 00000000..5cea3b47
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected]
new file mode 100644
index 00000000..58ea501e
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected]
new file mode 100644
index 00000000..6891d633
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/sony_normal.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/Contents.json
new file mode 100644
index 00000000..8b3631cc
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/Contents.json
@@ -0,0 +1,12 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ },
+ "symbols" : [
+ {
+ "filename" : "custom.arrow.trianglehead.swap.svg",
+ "idiom" : "universal"
+ }
+ ]
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/custom.arrow.trianglehead.swap.svg b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/custom.arrow.trianglehead.swap.svg
new file mode 100644
index 00000000..83f62707
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.arrow.trianglehead.swap.symbolset/custom.arrow.trianglehead.swap.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--Generator: Apple Native CoreSVG 341-->
+<!DOCTYPE svg
+PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 3300 2200">
+ <!--glyph: "", point size: 100.0, font version: "20.0d10e1", template writer version: "138.0.0"-->
+ <style>.defaults {-sfsymbols-wiggle-style:linear;-sfsymbols-wiggle-angle:-90}
+
+.monochrome-0 {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:-788e3bef84261cbb arrow.trianglehead.swap}
+
+.multicolor-0:tintColor {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:-788e3bef84261cbb arrow.trianglehead.swap}
+
+.hierarchical-0:primary {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:-788e3bef84261cbb arrow.trianglehead.swap}
+
+.SFSymbolsPreviewWireframe {fill:none;opacity:1.0;stroke:black;stroke-width:0.5}
+</style>
+ <g id="Notes">
+ <rect height="2200" id="artboard" style="fill:white;opacity:1" width="3300" x="0" y="0"/>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="292" y2="292"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 322)">Weight/Scale Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 559.711 322)">Ultralight</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 856.422 322)">Thin</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1153.13 322)">Light</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1449.84 322)">Regular</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1746.56 322)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2043.27 322)">Semibold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2339.98 322)">Bold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2636.69 322)">Heavy</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2933.4 322)">Black</text>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1903" y2="1903"/>
+ <g transform="matrix(0.2 0 0 0.2 263 1933)">
+ <path d="m46.2402 4.15039c21.7773 0 39.4531-17.627 39.4531-39.4043s-17.6758-39.4043-39.4531-39.4043c-21.7285 0-39.4043 17.627-39.4043 39.4043s17.6758 39.4043 39.4043 39.4043Zm0-7.42188c-17.6758 0-31.9336-14.3066-31.9336-31.9824s14.2578-31.9824 31.9336-31.9824 31.9824 14.3066 31.9824 31.9824-14.3066 31.9824-31.9824 31.9824Zm-17.9688-31.9824c0 2.14844 1.51367 3.61328 3.75977 3.61328h10.498v10.5957c0 2.19727 1.46484 3.71094 3.61328 3.71094 2.24609 0 3.71094-1.51367 3.71094-3.71094v-10.5957h10.5957c2.19727 0 3.71094-1.46484 3.71094-3.61328 0-2.19727-1.51367-3.71094-3.71094-3.71094h-10.5957v-10.5469c0-2.24609-1.46484-3.75977-3.71094-3.75977-2.14844 0-3.61328 1.51367-3.61328 3.75977v10.5469h-10.498c-2.24609 0-3.75977 1.51367-3.75977 3.71094Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 281.506 1933)">
+ <path d="m58.5449 14.5508c27.4902 0 49.8047-22.3145 49.8047-49.8047s-22.3145-49.8047-49.8047-49.8047-49.8047 22.3145-49.8047 49.8047 22.3145 49.8047 49.8047 49.8047Zm0-8.30078c-22.9492 0-41.5039-18.5547-41.5039-41.5039s18.5547-41.5039 41.5039-41.5039 41.5039 18.5547 41.5039 41.5039-18.5547 41.5039-41.5039 41.5039Zm-22.6562-41.5039c0 2.39258 1.66016 4.00391 4.15039 4.00391h14.3555v14.4043c0 2.44141 1.66016 4.15039 4.05273 4.15039 2.44141 0 4.15039-1.66016 4.15039-4.15039v-14.4043h14.4043c2.44141 0 4.15039-1.61133 4.15039-4.00391 0-2.44141-1.70898-4.15039-4.15039-4.15039h-14.4043v-14.3555c0-2.49023-1.70898-4.19922-4.15039-4.19922-2.39258 0-4.05273 1.70898-4.05273 4.19922v14.3555h-14.3555c-2.49023 0-4.15039 1.70898-4.15039 4.15039Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 304.924 1933)">
+ <path d="m74.8535 28.3203c35.1074 0 63.623-28.4668 63.623-63.5742s-28.5156-63.623-63.623-63.623-63.5742 28.5156-63.5742 63.623 28.4668 63.5742 63.5742 63.5742Zm0-9.08203c-30.127 0-54.4922-24.3652-54.4922-54.4922s24.3652-54.4922 54.4922-54.4922 54.4922 24.3652 54.4922 54.4922-24.3652 54.4922-54.4922 54.4922Zm-28.8574-54.4922c0 2.58789 1.85547 4.39453 4.58984 4.39453h19.7266v19.7754c0 2.68555 1.85547 4.58984 4.44336 4.58984 2.68555 0 4.54102-1.85547 4.54102-4.58984v-19.7754h19.7754c2.68555 0 4.58984-1.80664 4.58984-4.39453 0-2.73438-1.85547-4.58984-4.58984-4.58984h-19.7754v-19.7266c0-2.73438-1.85547-4.63867-4.54102-4.63867-2.58789 0-4.44336 1.9043-4.44336 4.63867v19.7266h-19.7266c-2.73438 0-4.58984 1.85547-4.58984 4.58984Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 1953)">Design Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1971)">Symbols are supported in up to nine weights and three scales.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1989)">For optimal layout with text and other symbols, vertically align</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 2007)">symbols with the adjacent text.</text>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="776" x2="776" y1="1919" y2="1933"/>
+ <g transform="matrix(0.2 0 0 0.2 776 1933)">
+ <path d="m16.5527 0.78125c2.58789 0 3.85742-0.976562 4.78516-3.71094l6.29883-17.2363h28.8086l6.29883 17.2363c0.927734 2.73438 2.19727 3.71094 4.73633 3.71094 2.58789 0 4.24805-1.5625 4.24805-4.00391 0-0.830078-0.146484-1.61133-0.537109-2.63672l-22.9004-60.9863c-1.12305-2.97852-3.125-4.49219-6.25-4.49219-3.02734 0-5.07812 1.46484-6.15234 4.44336l-22.9004 61.084c-0.390625 1.02539-0.537109 1.80664-0.537109 2.63672 0 2.44141 1.5625 3.95508 4.10156 3.95508Zm13.4766-28.3691 11.8652-32.8613h0.244141l11.8652 32.8613Z"/>
+ </g>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="792.836" x2="792.836" y1="1919" y2="1933"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 776 1953)">Margins</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1971)">Leading and trailing margins on the left and right side of each symbol</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1989)">can be adjusted by modifying the x-location of the margin guidelines.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2007)">Modifications are automatically applied proportionally to all</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2025)">scales and weights.</text>
+ <g transform="matrix(0.2 0 0 0.2 1289 1933)">
+ <path d="m14.209 9.32617 8.49609 8.54492c4.29688 4.3457 9.22852 4.05273 13.8672-1.07422l53.4668-58.9355-4.83398-4.88281-53.0762 58.3984c-1.75781 2.00195-3.41797 2.49023-5.76172 0.146484l-5.85938-5.81055c-2.34375-2.29492-1.80664-4.00391 0.195312-5.81055l57.373-54.0039-4.88281-4.83398-57.959 54.4434c-4.93164 4.58984-5.32227 9.47266-1.02539 13.8184Zm32.0801-90.9668c-2.09961 2.05078-2.24609 4.93164-1.07422 6.88477 1.17188 1.80664 3.4668 2.97852 6.68945 2.14844 7.32422-1.70898 14.9414-2.00195 22.0703 2.68555l-2.92969 7.27539c-1.70898 4.15039-0.830078 7.08008 1.85547 9.81445l11.4746 11.5723c2.44141 2.44141 4.49219 2.53906 7.32422 2.05078l5.32227-0.976562 3.32031 3.36914-0.195312 2.7832c-0.195312 2.49023 0.439453 4.39453 2.88086 6.78711l3.80859 3.71094c2.39258 2.39258 5.46875 2.53906 7.8125 0.195312l14.5508-14.5996c2.34375-2.34375 2.24609-5.32227-0.146484-7.71484l-3.85742-3.80859c-2.39258-2.39258-4.24805-3.17383-6.64062-2.97852l-2.88086 0.244141-3.22266-3.17383 1.2207-5.61523c0.634766-2.83203-0.146484-5.0293-3.07617-7.95898l-10.9863-10.9375c-16.6992-16.6016-38.8672-16.2109-53.3203-1.75781Zm7.4707 1.85547c12.1582-8.88672 28.6133-7.37305 39.7461 3.75977l12.1582 12.0605c1.17188 1.17188 1.36719 2.09961 1.02539 3.80859l-1.61133 7.42188 7.51953 7.42188 4.93164-0.292969c1.26953-0.0488281 1.66016 0.0488281 2.63672 1.02539l2.88086 2.88086-12.207 12.207-2.88086-2.88086c-0.976562-0.976562-1.12305-1.36719-1.07422-2.68555l0.341797-4.88281-7.4707-7.42188-7.61719 1.26953c-1.61133 0.341797-2.34375 0.195312-3.56445-0.976562l-10.0098-10.0098c-1.26953-1.17188-1.41602-2.00195-0.634766-3.85742l4.39453-10.4492c-7.8125-7.27539-17.9688-10.4004-28.125-7.42188-0.78125 0.195312-1.07422-0.439453-0.439453-0.976562Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 1289 1953)">Exporting</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1971)">Symbols should be outlined when exporting to ensure the</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1989)">design is preserved when submitting to Xcode.</text>
+ <text id="template-version" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1933)">Template v.6.0</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1951)">Requires Xcode 16 or greater</text>
+ <text id="descriptive-name" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1969)">Generated from custom.arrow.trianglehead.swap</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1987)">Typeset at 100.0 points</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 726)">Small</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1156)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1586)">Large</text>
+ </g>
+ <g id="Guides">
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 696)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="696" y2="696"/>
+ <line id="Capline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="625.541" y2="625.541"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1126)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1126" y2="1126"/>
+ <line id="Capline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1055.54" y2="1055.54"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1556)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1556" y2="1556"/>
+ <line id="Capline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1485.54" y2="1485.54"/>
+ <line id="right-margin-Black-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="2988.77" x2="2988.77" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Black-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="2878.03" x2="2878.03" y1="600.785" y2="720.121"/>
+ <line id="right-margin-Regular-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1497.89" x2="1497.89" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Regular-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1401.8" x2="1401.8" y1="600.785" y2="720.121"/>
+ <line id="right-margin-Ultralight-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="603.58" x2="603.58" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Ultralight-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="515.842" x2="515.842" y1="600.785" y2="720.121"/>
+ </g>
+ <g id="Symbols">
+ <g id="Black-S" transform="matrix(1 0 0 1 2878.03 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M20.7031-23.7793L33.2031-23.7793L33.2031-50.0977C33.2031-55.3711 36.377-58.8867 41.1621-58.8867C45.9473-58.8867 49.1211-55.3711 49.1211-50.0977L49.1211-23.9746C49.1211-11.4258 57.5684-1.75781 69.5801-1.75781C82.5195-1.75781 90.0391-11.1816 90.0391-23.9746L90.0391-51.4648L77.5391-51.4648L77.5391-23.1934C77.5391-17.9199 74.3652-14.4043 69.5801-14.4043C64.7949-14.4043 61.6211-17.9199 61.6211-23.1934L61.6211-49.3164C61.6211-61.8652 53.1738-71.5332 41.1621-71.5332C28.2227-71.5332 20.7031-62.1094 20.7031-49.3164ZM13.623-24.5605C9.66797-24.5605 8.54492-20.8984 11.1816-17.334L23.1445-1.26953C25.1953 1.46484 28.7109 1.5625 30.8105-1.26953L42.7246-17.334C45.4102-20.9473 44.1406-24.5605 40.2832-24.5605ZM70.459-50.6836L97.1191-50.6836C100.977-50.6836 102.246-54.2969 99.5605-57.9102L87.6465-73.9746C85.5469-76.8066 82.0312-76.709 79.9805-73.9746L68.0176-57.9102C65.3809-54.3457 66.5039-50.6836 70.459-50.6836Z"/>
+ </g>
+ <g id="Regular-S" transform="matrix(1 0 0 1 1401.8 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M17.7734-19.9219L25.6348-19.9219L25.6348-51.8066C25.6348-58.252 29.5898-62.1094 34.8633-62.1094C40.1367-62.1094 44.1406-58.252 44.1406-51.8066L44.1406-25.6348C44.1406-13.9648 51.416-6.68945 61.2305-6.68945C71.0938-6.68945 78.3691-13.9648 78.3691-25.6348L78.3691-57.0801L70.459-57.0801L70.459-24.9023C70.459-18.457 66.5039-14.5996 61.2305-14.5996C56.0059-14.5996 52.002-18.457 52.002-24.9023L52.002-51.0742C52.002-62.7441 44.6777-70.0195 34.8633-70.0195C25.0488-70.0195 17.7734-62.7441 17.7734-51.0742ZM12.793-23.2422C9.7168-23.2422 8.98438-21.1914 10.6445-18.8477L19.3359-6.49414C20.7031-4.54102 22.7539-4.58984 24.0723-6.49414L32.7637-18.8965C34.375-21.1914 33.5938-23.2422 30.5664-23.2422ZM65.5762-53.4668L83.3496-53.4668C86.377-53.4668 87.1582-55.5664 85.5469-57.8125L76.8066-70.2148C75.4883-72.1191 73.4375-72.168 72.0703-70.2148L63.3789-57.8613C61.7188-55.5664 62.5-53.4668 65.5762-53.4668Z"/>
+ </g>
+ <g id="Ultralight-S" transform="matrix(1 0 0 1 515.842 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M18.2729-16.5161L20.4126-16.5161L20.4126-47.3565C20.4126-54.6192 24.5948-60.0205 31.3667-60.0205C38.0933-60.0205 42.8237-54.937 42.8237-47.3565L42.8237-20.8667C42.8237-12.3755 48.1011-6.28076 56.417-6.28076C64.7364-6.28076 69.5142-12.3755 69.5142-20.8667L69.5142-52.0396L67.3711-52.0396L67.3711-21.1333C67.3711-13.8706 63.189-8.46929 56.417-8.46929C49.6485-8.46929 44.9634-13.5528 44.9634-21.1333L44.9634-47.6231C44.9634-56.1143 39.6827-62.209 31.3667-62.209C23.0054-62.209 18.2729-56.1143 18.2729-47.6231ZM11.1582-17.566C9.80762-17.566 9.34765-16.6504 10.1904-15.3965L18.1553-4.04201C18.8867-2.99708 19.8023-3.0005 20.5303-4.04201L28.4497-15.3999C29.3345-16.6504 28.8257-17.566 27.5239-17.566ZM60.2178-50.9238L76.5835-50.9238C77.8853-50.9238 78.3941-51.8428 77.5548-53.0899L69.5865-64.4478C68.8585-65.4893 67.9429-65.4927 67.2115-64.4478L59.2466-53.0933C58.4038-51.8428 58.9126-50.9238 60.2178-50.9238Z"/>
+ </g>
+ </g>
+</svg>
diff --git a/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig b/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
index 8d7f86f4..b1366ad7 100644
--- a/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
+++ b/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
@@ -11,5 +11,5 @@
// https://help.apple.com/xcode/#/dev745c5c974
APP_BUNDLE_IDENTIFIER = com.aoshuang.manicemu
-APP_BUILD_VERSION = 2
-APP_VERSION = 1.7.3
+APP_BUILD_VERSION = 4
+APP_VERSION = 1.8.0
diff --git a/ManicEmu/ManicEmu/Resources/Info.plist b/ManicEmu/ManicEmu/Resources/Info.plist
index 6253cda3..36b1422c 100644
--- a/ManicEmu/ManicEmu/Resources/Info.plist
+++ b/ManicEmu/ManicEmu/Resources/Info.plist
@@ -262,6 +262,18 @@
<string>public.aoshuang.game.dc</string>
</array>
</dict>
+ <dict>
+ <key>CFBundleTypeName</key>
+ <string>Arcade Game</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSHandlerRank</key>
+ <string>Owner</string>
+ <key>LSItemContentTypes</key>
+ <array>
+ <string>public.aoshuang.game.arcade</string>
+ </array>
+ </dict>
<dict>
<key>CFBundleTypeName</key>
<string>Manic EMU Controller Skin</string>
@@ -402,7 +414,7 @@
<string>public.app-category.entertainment</string>
<key>LSApplicationQueriesSchemes</key>
<array>
- <string>comgooglemaps</string>
+ <string>sidestore</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
@@ -1005,6 +1017,29 @@
</array>
</dict>
</dict>
+ <dict>
+ <key>UTTypeConformsTo</key>
+ <array>
+ <string>public.data</string>
+ </array>
+ <key>UTTypeDescription</key>
+ <string>Arcade Game</string>
+ <key>UTTypeIconFiles</key>
+ <array>
+ <string>file_icon.png</string>
+ </array>
+ <key>UTTypeIdentifier</key>
+ <string>public.aoshuang.game.arcade</string>
+ <key>UTTypeTagSpecification</key>
+ <dict>
+ <key>public.filename-extension</key>
+ <array>
+ <string>zip</string>
+ <string>7z</string>
+ <string>cmd</string>
+ </array>
+ </dict>
+ </dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
@@ -1126,6 +1161,7 @@
<key>public.filename-extension</key>
<array>
<string>ini</string>
+ <string>opt</string>
</array>
</dict>
</dict>
diff --git a/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
index 2f1fd14a..d8f01a08 100644
--- a/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
@@ -738,4 +738,27 @@
"EnableTriggerPro" = "تمكين TriggerPro";
"DisableTriggerPro" = "تعطيل TriggerPro";
"ActivateHold" = "تفعيل الاستمرار: %@";
-"DeactivateHold" = "إلغاء الاستمرار: %@";
\ No newline at end of file
+"DeactivateHold" = "إلغاء الاستمرار: %@";
+"NoGamesForManufacturer"="لا توجد ألعاب متاحة لهذا المصنع";
+"iCloudNotEnable"="iCloud غير مفعل";
+"iCloudSyncing"="جاري مزامنة iCloud";
+"iCloudSynced"="تمت مزامنة iCloud";
+"JITNotAllow"="JIT غير متاح";
+"JITAllow"="JIT متاح";
+"iCloudUsage"="استخدام iCloud";
+"Usage"="الاستخدام";
+"iCloudDesc"="تفعيل المزامنة والنسخ الاحتياطي عبر iCloud يحافظ على ألعابك وسماتك وحفظاتك متزامنة بين الأجهزة. حتى إذا قمت بحذف التطبيق وإعادة تثبيته، سيتم استعادة بياناتك على الفور.";
+"Device"="الجهاز";
+"InstallSource"="مصدر التثبيت";
+"System"="النظام";
+"Memory"="الذاكرة";
+"InstallSideloadVersion"="تثبيت نسخة Sideload";
+"JITDesc"="JIT (التجميع في الوقت المناسب) هو تقنية تجميع ديناميكية تعزز أداء التشغيل من خلال تجميع الكود أثناء التنفيذ بدلاً من مسبقاً (AOT). يحول الكود الوسيط، مثل bytecode، إلى كود آلة أصلي باستخدام معلومات في الوقت الفعلي للتحسين.";
+"MAMEBiosDesc"="MAME BIOS يتضمن ملفات مطلوبة متنوعة. انقر لعرض التفاصيل";
+"MAMECheatCodeDesc"="نواة MAME تتضمن رموز غش مدمجة. أثناء اللعب، افتح قائمة MAME بالضغط على COIN + Y، ثم اختر Cheat Options لتهيئتها.";
+"FBNeoNoCheats"="لا توجد رموز غش متاحة لهذه اللعبة";
+"FBNeoCheatCodeDesc"="عند استخدام نواة FinalBurn Neo، يمكن تفعيل رموز الغش فقط أثناء اللعب.";
+"FilterTitle"="عامل التصفية";
+"EnableManufacturerFilter"="تفعيل عامل تصفية المصنع";
+"MAMEFileMissingTitle"="ملفات اللعبة مفقودة";
+"MAMEFileMissingDesc"="قد تنتمي هذه اللعبة إلى مجموعة ROM منقسمة، والتي تتطلب ملفاتها الأصلية أو ملفات BIOS للتشغيل. يرجى استيراد الملفات المفقودة أو استخدام ROM غير مدمج بدلاً من ذلك.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
index b4cae708..299fb1d2 100644
--- a/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Prem el botó del control...";
"EnableTriggerPro" = "Habilita TriggerPro";
"DisableTriggerPro" = "Deshabilita TriggerPro";
"ActivateHold" = "Activa la retenció: %@";
-"DeactivateHold" = "Cancel·la la retenció: %@";
\ No newline at end of file
+"DeactivateHold" = "Cancel·la la retenció: %@";
+"NoGamesForManufacturer"="No hi ha jocs disponibles per a aquest fabricant";
+"iCloudNotEnable"="iCloud no activat";
+"iCloudSyncing"="Sincronitzant iCloud";
+"iCloudSynced"="iCloud sincronitzat";
+"JITNotAllow"="JIT no disponible";
+"JITAllow"="JIT disponible";
+"iCloudUsage"="Ús d'iCloud";
+"Usage"="Ús";
+"iCloudDesc"="Activar la sincronització i còpia de seguretat d'iCloud manté els teus jocs, skins i desats sincronitzats entre dispositius. Fins i tot si elimines i reinstal·les l'aplicació, les teves dades es restauraran instantàniament.";
+"Device"="Dispositiu";
+"InstallSource"="Font d'instal·lació";
+"System"="Sistema";
+"Memory"="Memòria";
+"InstallSideloadVersion"="Instal·lar versió sideload";
+"JITDesc"="JIT (Compilació Just-In-Time) és una tècnica de compilació dinàmica que millora el rendiment en temps d'execució compilant codi durant l'execució en lloc de per endavant (AOT). Converteix codi intermedi, com bytecode, en codi màquina natiu utilitzant informació en temps real per a l'optimització.";
+"MAMEBiosDesc"="MAME BIOS inclou diversos fitxers necessaris. Toqueu per veure detalls";
+"MAMECheatCodeDesc"="El nucli MAME inclou codis de truc incorporats. Durant el joc, obre el menú MAME prement COIN + Y, després selecciona Cheat Options per configurar-los.";
+"FBNeoNoCheats"="No hi ha codis de truc disponibles per a aquest joc";
+"FBNeoCheatCodeDesc"="Quan s'utilitza el nucli FinalBurn Neo, els codis de truc només es poden activar durant el joc.";
+"FilterTitle"="Filtre";
+"EnableManufacturerFilter"="Activar filtre de fabricant";
+"MAMEFileMissingTitle"="Fitxers de joc faltants";
+"MAMEFileMissingDesc"="Aquest joc pot pertànyer a un conjunt ROM dividit, que requereix els seus fitxers pare o BIOS per funcionar. Si us plau, importa els fitxers faltants o utilitza un ROM no fusionat en el seu lloc.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
index 2a6f32b8..58edfd0d 100644
--- a/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
@@ -759,4 +759,27 @@ Stiskněte tlačítko ovladače...";
"EnableTriggerPro" = "Povolit TriggerPro";
"DisableTriggerPro" = "Zakázat TriggerPro";
"ActivateHold" = "Aktivovat podržení: %@";
-"DeactivateHold" = "Zrušit podržení: %@";
\ No newline at end of file
+"DeactivateHold" = "Zrušit podržení: %@";
+"NoGamesForManufacturer"="Žádné hry k dispozici pro tohoto výrobce";
+"iCloudNotEnable"="iCloud není povoleno";
+"iCloudSyncing"="Probíhá synchronizace iCloud";
+"iCloudSynced"="iCloud synchronizováno";
+"JITNotAllow"="JIT není k dispozici";
+"JITAllow"="JIT k dispozici";
+"iCloudUsage"="Využití iCloud";
+"Usage"="Využití";
+"iCloudDesc"="Povolení synchronizace a zálohování iCloud udržuje vaše hry, vzhledy a uložené pozice synchronizované napříč zařízeními. I když aplikaci odstraníte a znovu nainstalujete, vaše data budou okamžitě obnovena.";
+"Device"="Zařízení";
+"InstallSource"="Zdroj instalace";
+"System"="Systém";
+"Memory"="Paměť";
+"InstallSideloadVersion"="Nainstalovat sideload verzi";
+"JITDesc"="JIT (Just-In-Time kompilace) je dynamická kompilační technika, která zlepšuje výkon za běhu kompilací kódu během provádění namísto předem (AOT). Převádí mezilehlý kód, jako je bytecode, na nativní strojový kód pomocí informací v reálném čase pro optimalizaci.";
+"MAMEBiosDesc"="MAME BIOS obsahuje různé požadované soubory. Klepněte pro zobrazení podrobností";
+"MAMECheatCodeDesc"="Jádro MAME obsahuje vestavěné cheat kódy. Během hry otevřete menu MAME stisknutím COIN + Y, poté vyberte Cheat Options pro jejich konfiguraci.";
+"FBNeoNoCheats"="Pro tuto hru nejsou k dispozici žádné cheat kódy";
+"FBNeoCheatCodeDesc"="Při použití jádra FinalBurn Neo lze cheat kódy aktivovat pouze během hry.";
+"FilterTitle"="Filtr";
+"EnableManufacturerFilter"="Povolit filtr výrobce";
+"MAMEFileMissingTitle"="Chybějící herní soubory";
+"MAMEFileMissingDesc"="Tato hra může patřit do rozdělené sady ROM, která ke spuštění vyžaduje své nadřazené nebo BIOS soubory. Importujte chybějící soubory nebo místo toho použijte nesloučené ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
index 85bbe7ae..a73e5f5b 100644
--- a/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
@@ -761,4 +761,27 @@ Tryk på controller-knappen...";
"EnableTriggerPro" = "Aktivér TriggerPro";
"DisableTriggerPro" = "Deaktivér TriggerPro";
"ActivateHold" = "Aktivér hold: %@";
-"DeactivateHold" = "Annullér hold: %@";
\ No newline at end of file
+"DeactivateHold" = "Annullér hold: %@";
+"NoGamesForManufacturer"="Ingen spil tilgængelig for denne producent";
+"iCloudNotEnable"="iCloud ikke aktiveret";
+"iCloudSyncing"="iCloud-synkronisering";
+"iCloudSynced"="iCloud synkroniseret";
+"JITNotAllow"="JIT ikke tilgængelig";
+"JITAllow"="JIT tilgængelig";
+"iCloudUsage"="iCloud-forbrug";
+"Usage"="Forbrug";
+"iCloudDesc"="Aktivering af iCloud-synkronisering og sikkerhedskopiering holder dine spil, skins og gemte filer synkroniseret på tværs af enheder. Selv hvis du sletter og geninstallerer appen, vil dine data blive gendannet med det samme.";
+"Device"="Enhed";
+"InstallSource"="Installationskilde";
+"System"="System";
+"Memory"="Hukommelse";
+"InstallSideloadVersion"="Installer sideload-version";
+"JITDesc"="JIT (Just-In-Time-kompilering) er en dynamisk kompileringsteknik, der forbedrer kørselsydelse ved at kompilere kode under udførelse i stedet for på forhånd (AOT). Den konverterer mellemkode, såsom bytecode, til oprindelig maskinkode ved hjælp af realtidsinformation til optimering.";
+"MAMEBiosDesc"="MAME BIOS inkluderer forskellige nødvendige filer. Tryk for at se detaljer";
+"MAMECheatCodeDesc"="MAME-kernen inkluderer indbyggede snydekoder. Under spil, åbn MAME-menuen ved at trykke på COIN + Y, og vælg derefter Cheat Options for at konfigurere dem.";
+"FBNeoNoCheats"="Ingen snydekoder tilgængelige for dette spil";
+"FBNeoCheatCodeDesc"="Ved brug af FinalBurn Neo-kernen kan snydekoder kun aktiveres under spil.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Aktiver producentfilter";
+"MAMEFileMissingTitle"="Manglende spilfiler";
+"MAMEFileMissingDesc"="Dette spil kan tilhøre et delt ROM-sæt, der kræver dets overordnede eller BIOS-filer for at køre. Importer de manglende filer eller brug en ikke-flettet ROM i stedet.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
index 6d846f45..9325bdf4 100644
--- a/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
@@ -765,4 +765,27 @@ Drücke die Controller-Taste...";
"EnableTriggerPro" = "TriggerPro aktivieren";
"DisableTriggerPro" = "TriggerPro deaktivieren";
"ActivateHold" = "Halten aktivieren: %@";
-"DeactivateHold" = "Halten abbrechen: %@";
\ No newline at end of file
+"DeactivateHold" = "Halten abbrechen: %@";
+"NoGamesForManufacturer"="Keine Spiele für diesen Hersteller verfügbar";
+"iCloudNotEnable"="iCloud nicht aktiviert";
+"iCloudSyncing"="iCloud-Synchronisierung läuft";
+"iCloudSynced"="iCloud synchronisiert";
+"JITNotAllow"="JIT nicht verfügbar";
+"JITAllow"="JIT verfügbar";
+"iCloudUsage"="iCloud-Nutzung";
+"Usage"="Nutzung";
+"iCloudDesc"="Durch Aktivierung der iCloud-Synchronisierung und -Sicherung bleiben Ihre Spiele, Skins und Speicherstände geräteübergreifend synchronisiert. Selbst wenn Sie die App löschen und neu installieren, werden Ihre Daten sofort wiederhergestellt.";
+"Device"="Gerät";
+"InstallSource"="Installationsquelle";
+"System"="System";
+"Memory"="Speicher";
+"InstallSideloadVersion"="Sideload-Version installieren";
+"JITDesc"="JIT (Just-In-Time-Kompilierung) ist eine dynamische Kompilierungstechnik, die die Laufzeitleistung verbessert, indem Code während der Ausführung kompiliert wird, anstatt vorab (AOT). Sie wandelt Zwischencode wie Bytecode unter Verwendung von Echtzeitinformationen zur Optimierung in nativen Maschinencode um.";
+"MAMEBiosDesc"="MAME BIOS enthält verschiedene erforderliche Dateien. Tippen Sie für Details";
+"MAMECheatCodeDesc"="Der MAME-Kern enthält integrierte Cheat-Codes. Öffnen Sie während des Spiels das MAME-Menü durch Drücken von COIN + Y und wählen Sie dann Cheat Options zur Konfiguration.";
+"FBNeoNoCheats"="Keine Cheat-Codes für dieses Spiel verfügbar";
+"FBNeoCheatCodeDesc"="Bei Verwendung des FinalBurn Neo-Kerns können Cheat-Codes nur während des Spiels aktiviert werden.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Herstellerfilter aktivieren";
+"MAMEFileMissingTitle"="Fehlende Spieldateien";
+"MAMEFileMissingDesc"="Dieses Spiel könnte zu einem geteilten ROM-Set gehören, das seine Parent- oder BIOS-Dateien zum Ausführen benötigt. Bitte importieren Sie die fehlenden Dateien oder verwenden Sie stattdessen ein non-merged ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
index 4b6be4b6..0356b1e0 100644
--- a/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
@@ -764,4 +764,27 @@
"EnableTriggerPro" = "Ενεργοποίηση TriggerPro";
"DisableTriggerPro" = "Απενεργοποίηση TriggerPro";
"ActivateHold" = "Ενεργοποίηση κράτησης: %@";
-"DeactivateHold" = "Ακύρωση κράτησης: %@";
\ No newline at end of file
+"DeactivateHold" = "Ακύρωση κράτησης: %@";
+"NoGamesForManufacturer"="Δεν υπάρχουν διαθέσιμα παιχνίδια για αυτόν τον κατασκευαστή";
+"iCloudNotEnable"="Το iCloud δεν είναι ενεργοποιημένο";
+"iCloudSyncing"="Συγχρονισμός iCloud";
+"iCloudSynced"="Το iCloud συγχρονίστηκε";
+"JITNotAllow"="Το JIT δεν είναι διαθέσιμο";
+"JITAllow"="Το JIT είναι διαθέσιμο";
+"iCloudUsage"="Χρήση iCloud";
+"Usage"="Χρήση";
+"iCloudDesc"="Η ενεργοποίηση του συγχρονισμού και δημιουργίας αντιγράφων ασφαλείας iCloud διατηρεί τα παιχνίδια, τα skins και τις αποθηκεύσεις σας συγχρονισμένες μεταξύ συσκευών. Ακόμα και αν διαγράψετε και επανεγκαταστήσετε την εφαρμογή, τα δεδομένα σας θα αποκατασταθούν αμέσως.";
+"Device"="Συσκευή";
+"InstallSource"="Πηγή εγκατάστασης";
+"System"="Σύστημα";
+"Memory"="Μνήμη";
+"InstallSideloadVersion"="Εγκατάσταση έκδοσης Sideload";
+"JITDesc"="Το JIT (Just-In-Time Compilation) είναι μια δυναμική τεχνική μεταγλώττισης που βελτιώνει την απόδοση κατά τη διάρκεια εκτέλεσης μεταγλωττίζοντας κώδικα κατά την εκτέλεση αντί εκ των προτέρων (AOT). Μετατρέπει ενδιάμεσο κώδικα, όπως bytecode, σε εγγενή κώδικα μηχανής χρησιμοποιώντας πληροφορίες πραγματικού χρόνου για βελτιστοποίηση.";
+"MAMEBiosDesc"="Το MAME BIOS περιλαμβάνει διάφορα απαραίτητα αρχεία. Πατήστε για λεπτομέρειες";
+"MAMECheatCodeDesc"="Ο πυρήνας MAME περιλαμβάνει ενσωματωμένους κωδικούes cheat. Κατά τη διάρκεια του παιχνιδιού, ανοίξτε το μενού MAME πατώντας COIN + Y, στη συνέχεια επιλέξτε Cheat Options για να τα ρυθμίσετε.";
+"FBNeoNoCheats"="Δεν υπάρχουν διαθέσιμοι κωδικοί cheat για αυτό το παιχνίδι";
+"FBNeoCheatCodeDesc"="Όταν χρησιμοποιείτε τον πυρήνα FinalBurn Neo, οι κωδικοί cheat μπορούν να ενεργοποιηθούν μόνο κατά τη διάρκεια του παιχνιδιού.";
+"FilterTitle"="Φίλτρο";
+"EnableManufacturerFilter"="Ενεργοποίηση φίλτρου κατασκευαστή";
+"MAMEFileMissingTitle"="Λείπουν αρχεία παιχνιδιού";
+"MAMEFileMissingDesc"="Αυτό το παιχνίδι μπορεί να ανήκει σε ένα διαχωρισμένο σύνολο ROM, που απαιτεί τα γονικά ή αρχεία BIOS για να εκτελεστεί. Παρακαλώ εισαγάγετε τα αρχεία που λείπουν ή χρησιμοποιήστε ένα μη συγχωνευμένο ROM αντ' αυτού.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
index 13ce6399..1d24fbf7 100644
--- a/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
@@ -779,3 +779,27 @@ Press the controller button to complete mapping...";
"DisableTriggerPro" = "Disable TriggerPro";
"ActivateHold" = "Activate Hold: %@";
"DeactivateHold" = "Cancel Hold: %@";
+
+"NoGamesForManufacturer" = "No games available for this manufacturer";
+"iCloudNotEnable" = "iCloud Not Enabled";
+"iCloudSyncing" = "iCloud Syncing";
+"iCloudSynced" = "iCloud Synced";
+"JITNotAllow" = "JIT Unavailable";
+"JITAllow" = "JIT Available";
+"iCloudUsage" = "iCloud Usage";
+"Usage" = "Usage";
+"iCloudDesc" = "Enabling iCloud synchronization and backup keeps your games, skins, and saves synced across devices. Even if you delete and reinstall the app, your data will be instantly restored.";
+"Device" = "Device";
+"InstallSource" = "Install Source";
+"System" = "System";
+"Memory" = "Memory";
+"InstallSideloadVersion" = "Install Sideload Version";
+"JITDesc" = "JIT (Just-In-Time Compilation) is a dynamic compilation technique that improves runtime performance by compiling code during execution rather than ahead of time (AOT). It converts intermediate code, such as bytecode, into native machine code using real-time information for optimization.";
+"MAMEBiosDesc" = "MAME BIOS includes various required files. Tap to view details";
+"MAMECheatCodeDesc" = "The MAME core includes built-in cheat codes. During gameplay, open the MAME menu by pressing COIN + Y, then select Cheat Options to configure them.";
+"FBNeoNoCheats" = "No cheat codes available for this game.";
+"FBNeoCheatCodeDesc" = "When using the FinalBurn Neo core, cheat codes can only be activated during gameplay.";
+"FilterTitle" = "Filter";
+"EnableManufacturerFilter" = "Enable Manufacturer Filter";
+"MAMEFileMissingTitle" = "Missing Game Files";
+"MAMEFileMissingDesc" = "This game may belong to a split ROM set, which requires its parent or BIOS files to run. Please import the missing files or use a non-merged ROM instead.";
diff --git a/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
index 10cf0b32..f4af80ad 100644
--- a/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Presiona el botón del control para continuar...";
"EnableTriggerPro" = "Habilitar TriggerPro";
"DisableTriggerPro" = "Deshabilitar TriggerPro";
"ActivateHold" = "Activar mantenimiento: %@";
-"DeactivateHold" = "Cancelar mantenimiento: %@";
\ No newline at end of file
+"DeactivateHold" = "Cancelar mantenimiento: %@";
+"NoGamesForManufacturer"="No hay juegos disponibles para este fabricante";
+"iCloudNotEnable"="iCloud no está activado";
+"iCloudSyncing"="Sincronizando iCloud";
+"iCloudSynced"="iCloud sincronizado";
+"JITNotAllow"="JIT no disponible";
+"JITAllow"="JIT disponible";
+"iCloudUsage"="Uso de iCloud";
+"Usage"="Uso";
+"iCloudDesc"="Al activar la sincronización y respaldo de iCloud, tus juegos, skins y partidas guardadas se mantendrán sincronizados entre dispositivos. Incluso si eliminas y reinstalas la app, tus datos se restaurarán al instante.";
+"Device"="Dispositivo";
+"InstallSource"="Fuente de instalación";
+"System"="Sistema";
+"Memory"="Memoria";
+"InstallSideloadVersion"="Instalar versión sideload";
+"JITDesc"="JIT (Compilación Justo a Tiempo) es una técnica de compilación dinámica que mejora el rendimiento compilando código durante la ejecución en lugar de hacerlo antes (AOT). Convierte código intermedio, como bytecode, en código máquina nativo usando información en tiempo real para optimización.";
+"MAMEBiosDesc"="MAME BIOS incluye varios archivos necesarios. Toca para ver detalles";
+"MAMECheatCodeDesc"="El núcleo MAME incluye códigos de trucos integrados. Durante el juego, abre el menú de MAME presionando COIN + Y, luego selecciona Cheat Options para configurarlos.";
+"FBNeoNoCheats"="No hay códigos de trucos para este juego";
+"FBNeoCheatCodeDesc"="Al usar el núcleo FinalBurn Neo, los códigos de trucos solo se pueden activar durante el juego.";
+"FilterTitle"="Filtrar";
+"EnableManufacturerFilter"="Activar filtro de fabricante";
+"MAMEFileMissingTitle"="Archivos de juego faltantes";
+"MAMEFileMissingDesc"="Este juego puede ser parte de un set ROM dividido, que necesita sus archivos padre o BIOS para funcionar. Importa los archivos faltantes o usa un ROM no fusionado.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
index 363a062a..4149ad94 100644
--- a/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
@@ -738,4 +738,27 @@ Presiona el botón del control para completar...";
"EnableTriggerPro" = "Activar TriggerPro";
"DisableTriggerPro" = "Desactivar TriggerPro";
"ActivateHold" = "Activar mantenimiento: %@";
-"DeactivateHold" = "Cancelar mantenimiento: %@";
\ No newline at end of file
+"DeactivateHold" = "Cancelar mantenimiento: %@";
+"NoGamesForManufacturer"="No hay juegos disponibles para este fabricante";
+"iCloudNotEnable"="iCloud no activado";
+"iCloudSyncing"="Sincronizando iCloud";
+"iCloudSynced"="iCloud sincronizado";
+"JITNotAllow"="JIT no disponible";
+"JITAllow"="JIT disponible";
+"iCloudUsage"="Uso de iCloud";
+"Usage"="Uso";
+"iCloudDesc"="Al activar la sincronización y copia de seguridad de iCloud, tus juegos, skins y guardados se mantendrán sincronizados entre dispositivos. Incluso si eliminas y reinstalas la app, tus datos se restaurarán instantáneamente.";
+"Device"="Dispositivo";
+"InstallSource"="Origen de instalación";
+"System"="Sistema";
+"Memory"="Memoria";
+"InstallSideloadVersion"="Instalar versión sideload";
+"JITDesc"="JIT (Compilación Justo a Tiempo) es una técnica de compilación dinámica que mejora el rendimiento en tiempo de ejecución compilando código durante la ejecución en lugar de hacerlo previamente (AOT). Convierte código intermedio, como bytecode, en código máquina nativo utilizando información en tiempo real para optimización.";
+"MAMEBiosDesc"="MAME BIOS incluye varios archivos requeridos. Toca para ver detalles";
+"MAMECheatCodeDesc"="El núcleo MAME incluye códigos de trucos integrados. Durante el juego, abre el menú de MAME presionando COIN + Y, luego selecciona Cheat Options para configurarlos.";
+"FBNeoNoCheats"="No hay códigos de trucos disponibles para este juego";
+"FBNeoCheatCodeDesc"="Cuando se utiliza el núcleo FinalBurn Neo, los códigos de trucos solo se pueden activar durante el juego.";
+"FilterTitle"="Filtro";
+"EnableManufacturerFilter"="Activar filtro de fabricante";
+"MAMEFileMissingTitle"="Archivos de juego faltantes";
+"MAMEFileMissingDesc"="Este juego puede pertenecer a un conjunto ROM dividido, que requiere sus archivos padre o BIOS para ejecutarse. Por favor importa los archivos faltantes o utiliza un ROM no fusionado en su lugar.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
index b6fa64be..904bad34 100644
--- a/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
@@ -764,4 +764,27 @@ Paina ohjaimen nappia...";
"EnableTriggerPro" = "Ota TriggerPro käyttöön";
"DisableTriggerPro" = "Poista TriggerPro käytöstä";
"ActivateHold" = "Aktivoi pito: %@";
-"DeactivateHold" = "Peru pito: %@";
\ No newline at end of file
+"DeactivateHold" = "Peru pito: %@";
+"NoGamesForManufacturer"="Ei pelejä saatavilla tälle valmistajalle";
+"iCloudNotEnable"="iCloud ei käytössä";
+"iCloudSyncing"="iCloud-synkronointi käynnissä";
+"iCloudSynced"="iCloud synkronoitu";
+"JITNotAllow"="JIT ei käytettävissä";
+"JITAllow"="JIT käytettävissä";
+"iCloudUsage"="iCloud-käyttö";
+"Usage"="Käyttö";
+"iCloudDesc"="iCloud-synkronoinnin ja varmuuskopioinnin käyttöönotto pitää pelisi, teemat ja tallennukset synkronoituina laitteiden välillä. Vaikka poistat ja asennat sovelluksen uudelleen, tietosi palautuvat välittömästi.";
+"Device"="Laite";
+"InstallSource"="Asennuslähde";
+"System"="Järjestelmä";
+"Memory"="Muisti";
+"InstallSideloadVersion"="Asenna sideload-versio";
+"JITDesc"="JIT (Just-In-Time-kääntäminen) on dynaaminen kääntämistekniikka, joka parantaa suorituskykyä kääntämällä koodia suorituksen aikana etukäteen kääntämisen (AOT) sijaan. Se muuntaa välikoodin, kuten tavukoodin, alkuperäiseksi konekoodiksi käyttämällä reaaliaikaista tietoa optimointiin.";
+"MAMEBiosDesc"="MAME BIOS sisältää useita vaadittuja tiedostoja. Napauta nähdäksesi tiedot";
+"MAMECheatCodeDesc"="MAME-ydin sisältää sisäänrakennettuja huijauskoodeja. Pelin aikana avaa MAME-valikko painamalla COIN + Y, valitse sitten Cheat Options määrittääksesi ne.";
+"FBNeoNoCheats"="Ei huijauskoodeja tähän peliin";
+"FBNeoCheatCodeDesc"="Kun käytetään FinalBurn Neo-ydintä, huijauskoodeja voidaan aktivoida vain pelin aikana.";
+"FilterTitle"="Suodatin";
+"EnableManufacturerFilter"="Ota valmistajasuodatin käyttöön";
+"MAMEFileMissingTitle"="Puuttuvat pelitiedostot";
+"MAMEFileMissingDesc"="Tämä peli voi kuulua jaettuun ROM-sarjaan, joka vaatii vanhemman tai BIOS-tiedostonsa toimiakseen. Tuo puuttuvat tiedostot tai käytä sen sijaan ei-yhdistettyä ROMia.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
index 11318edd..18859714 100644
--- a/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
@@ -765,4 +765,27 @@ Appuyez sur le bouton du contrôleur...";
"EnableTriggerPro" = "Activer TriggerPro";
"DisableTriggerPro" = "Désactiver TriggerPro";
"ActivateHold" = "Activer le maintien : %@";
-"DeactivateHold" = "Annuler le maintien : %@";
\ No newline at end of file
+"DeactivateHold" = "Annuler le maintien : %@";
+"NoGamesForManufacturer"="Aucun jeu disponible pour ce fabricant";
+"iCloudNotEnable"="iCloud non activé";
+"iCloudSyncing"="Synchronisation iCloud en cours";
+"iCloudSynced"="iCloud synchronisé";
+"JITNotAllow"="JIT non disponible";
+"JITAllow"="JIT disponible";
+"iCloudUsage"="Utilisation iCloud";
+"Usage"="Utilisation";
+"iCloudDesc"="L'activation de la synchronisation et sauvegarde iCloud garde vos jeux, skins et sauvegardes synchronisés entre appareils. Même si vous supprimez et réinstallez l'application, vos données seront restaurées instantanément.";
+"Device"="Appareil";
+"InstallSource"="Source d'installation";
+"System"="Système";
+"Memory"="Mémoire";
+"InstallSideloadVersion"="Installer version sideload";
+"JITDesc"="JIT (Compilation à la Volée) est une technique de compilation dynamique qui améliore les performances en compilant le code pendant l'exécution plutôt qu'à l'avance (AOT). Elle convertit le code intermédiaire, comme le bytecode, en code machine natif en utilisant des informations en temps réel pour l'optimisation.";
+"MAMEBiosDesc"="MAME BIOS inclut divers fichiers requis. Appuyez pour voir les détails";
+"MAMECheatCodeDesc"="Le cœur MAME inclut des codes de triche intégrés. Pendant le jeu, ouvrez le menu MAME en appuyant sur COIN + Y, puis sélectionnez Cheat Options pour les configurer.";
+"FBNeoNoCheats"="Aucun code de triche disponible pour ce jeu";
+"FBNeoCheatCodeDesc"="Lors de l'utilisation du cœur FinalBurn Neo, les codes de triche ne peuvent être activés que pendant le jeu.";
+"FilterTitle"="Filtrer";
+"EnableManufacturerFilter"="Activer le filtre fabricant";
+"MAMEFileMissingTitle"="Fichiers de jeu manquants";
+"MAMEFileMissingDesc"="Ce jeu peut appartenir à un ensemble ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
index fe6a67a7..3e8cb5fa 100644
--- a/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
@@ -765,4 +765,27 @@ Appuyez sur le bouton du contrôleur...";
"EnableTriggerPro" = "Activer TriggerPro";
"DisableTriggerPro" = "Désactiver TriggerPro";
"ActivateHold" = "Activer le maintien : %@";
-"DeactivateHold" = "Annuler le maintien : %@";
\ No newline at end of file
+"DeactivateHold" = "Annuler le maintien : %@";
+"NoGamesForManufacturer"="Aucun jeu disponible pour ce fabricant";
+"iCloudNotEnable"="iCloud non activé";
+"iCloudSyncing"="Synchronisation iCloud en cours";
+"iCloudSynced"="iCloud synchronisé";
+"JITNotAllow"="JIT non disponible";
+"JITAllow"="JIT disponible";
+"iCloudUsage"="Utilisation iCloud";
+"Usage"="Utilisation";
+"iCloudDesc"="L'activation de la synchronisation et sauvegarde iCloud garde vos jeux, skins et sauvegardes synchronisés entre appareils. Même si vous supprimez et réinstallez l'application, vos données seront instantanément restaurées.";
+"Device"="Appareil";
+"InstallSource"="Source d'installation";
+"System"="Système";
+"Memory"="Mémoire";
+"InstallSideloadVersion"="Installer version sideload";
+"JITDesc"="JIT (Compilation à la Volée) est une technique de compilation dynamique qui améliore les performances en compilant le code pendant l'exécution plutôt qu'à l'avance (AOT). Elle convertit le code intermédiaire, comme le bytecode, en code machine natif en utilisant des informations en temps réel pour l'optimisation.";
+"MAMEBiosDesc"="MAME BIOS inclut divers fichiers requis. Appuyez pour voir les détails";
+"MAMECheatCodeDesc"="Le cœur MAME inclut des codes de triche intégrés. Pendant le jeu, ouvrez le menu MAME en appuyant sur COIN + Y, puis sélectionnez Cheat Options pour les configurer.";
+"FBNeoNoCheats"="Aucun code de triche disponible pour ce jeu";
+"FBNeoCheatCodeDesc"="Lors de l'utilisation du cœur FinalBurn Neo, les codes de triche ne peuvent être activés que pendant le jeu.";
+"FilterTitle"="Filtre";
+"EnableManufacturerFilter"="Activer le filtre fabricant";
+"MAMEFileMissingTitle"="Fichiers de jeu manquants";
+"MAMEFileMissingDesc"="Ce jeu peut appartenir à un set ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné à la place.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
index 47a064e6..7974da16 100644
--- a/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
@@ -764,4 +764,27 @@
"EnableTriggerPro" = "הפעל TriggerPro";
"DisableTriggerPro" = "בטל TriggerPro";
"ActivateHold" = "הפעל החזקה: %@";
-"DeactivateHold" = "בטל החזקה: %@";
\ No newline at end of file
+"DeactivateHold" = "בטל החזקה: %@";
+"NoGamesForManufacturer"="אין משחקים זמינים עבור יצרן זה";
+"iCloudNotEnable"="iCloud לא מופעל";
+"iCloudSyncing"="מסנכרן iCloud";
+"iCloudSynced"="iCloud סונכרן";
+"JITNotAllow"="JIT לא זמין";
+"JITAllow"="JIT זמין";
+"iCloudUsage"="שימוש ב-iCloud";
+"Usage"="שימוש";
+"iCloudDesc"="הפעלת סנכרון iCloud וגיבוי שומרת על המשחקים, הסקינים והשמירות שלך מסונכרנים בין מכשירים. גם אם תמחק ותתקין מחדש את האפליקציה, הנתונים שלך ישוקמו באופן מיידי.";
+"Device"="מכשיר";
+"InstallSource"="מקור התקנה";
+"System"="מערכת";
+"Memory"="זיכרון";
+"InstallSideloadVersion"="התקן גרסת Sideload";
+"JITDesc"="JIT (קומפילציה Just-In-Time) היא טכניקת קומפילציה דינמית המשפרת ביצועי זמן ריצה על ידי קומפילציה של קוד במהלך הביצוע במקום מראש (AOT). היא ממירה קוד ביניים, כמו bytecode, לקוד מכונה מקורי באמצעות מידע בזמן אמת לאופטימיזציה.";
+"MAMEBiosDesc"="MAME BIOS כולל קבצים נדרשים שונים. הקש לפרטים";
+"MAMECheatCodeDesc"="ליבת MAME כוללת קודי צ'יט מובנים. במהלך המשחק, פתח את תפריט MAME על ידי לחיצה על COIN + Y, לאחר מכן בחר Cheat Options כדי להגדיר אותם.";
+"FBNeoNoCheats"="אין קודי צ'יט זמינים למשחק זה";
+"FBNeoCheatCodeDesc"="בעת שימוש בליבת FinalBurn Neo, קודי צ'יט יכולים להיות מופעלים רק במהלך המשחק.";
+"FilterTitle"="מסנן";
+"EnableManufacturerFilter"="הפעל מסנן יצרן";
+"MAMEFileMissingTitle"="קבצי משחק חסרים";
+"MAMEFileMissingDesc"="משחק זה עשוי להיות שייך למערך ROM מפוצל, הדורש את קבצי ההורה או BIOS שלו כדי לפעול. אנא ייבא את הקבצים החסרים או השתמש ב-ROM לא ממוזג במקום.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
index 2383d210..7d30ae9d 100644
--- a/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
@@ -765,4 +765,27 @@
"EnableTriggerPro" = "TriggerPro सक्षम करें";
"DisableTriggerPro" = "TriggerPro अक्षम करें";
"ActivateHold" = "होल्ड सक्रिय करें: %@";
-"DeactivateHold" = "होल्ड रद्द करें: %@";
\ No newline at end of file
+"DeactivateHold" = "होल्ड रद्द करें: %@";
+"NoGamesForManufacturer"="इस निर्माता के लिए कोई गेम उपलब्ध नहीं";
+"iCloudNotEnable"="iCloud सक्षम नहीं";
+"iCloudSyncing"="iCloud सिंक हो रहा है";
+"iCloudSynced"="iCloud सिंक हो गया";
+"JITNotAllow"="JIT उपलब्ध नहीं";
+"JITAllow"="JIT उपलब्ध";
+"iCloudUsage"="iCloud उपयोग";
+"Usage"="उपयोग";
+"iCloudDesc"="iCloud सिंक्रनाइज़ेशन और बैकअप सक्षम करने से आपके गेम, स्किन और सेव डेटा डिवाइसों के बीच सिंक रहते हैं। यदि आप ऐप को हटाकर पुनः इंस्टॉल भी करते हैं, तो आपका डेटा तुरंत पुनर्स्थापित हो जाएगा।";
+"Device"="डिवाइस";
+"InstallSource"="इंस्टॉल स्रोत";
+"System"="सिस्टम";
+"Memory"="मेमोरी";
+"InstallSideloadVersion"="साइडलोड वर्जन इंस्टॉल करें";
+"JITDesc"="JIT (जस्ट-इन-टाइम कंपाइलेशन) एक डायनामिक कंपाइलेशन तकनीक है जो कोड को एक्ज़िक्यूशन के दौरान कंपाइल करके रनटाइम परफॉर्मेंस बढ़ाती है। यह इंटरमीडिएट कोड, जैसे बाइटकोड, को रियल-टाइम जानकारी का उपयोग करके ऑप्टिमाइज़ करके नेटिव मशीन कोड में बदलती है।";
+"MAMEBiosDesc"="MAME BIOS में विभिन्न आवश्यक फ़ाइलें शामिल हैं। विवरण देखने के लिए टैप करें";
+"MAMECheatCodeDesc"="MAME कोर में बिल्ट-इन चीट कोड शामिल हैं। गेमप्ले के दौरान, COIN + Y दबाकर MAME मेनू खोलें, फिर उन्हें कॉन्फ़िगर करने के लिए Cheat Options चुनें।";
+"FBNeoNoCheats"="इस गेम के लिए कोई चीट कोड उपलब्ध नहीं";
+"FBNeoCheatCodeDesc"="FinalBurn Neo कोर का उपयोग करते समय, चीट कोड केवल गेमप्ले के दौरान सक्रिय किए जा सकते हैं।";
+"FilterTitle"="फ़िल्टर";
+"EnableManufacturerFilter"="निर्माता फ़िल्टर सक्षम करें";
+"MAMEFileMissingTitle"="गेम फ़ाइलें गुम हैं";
+"MAMEFileMissingDesc"="यह गेम स्प्लिट ROM सेट से संबंधित हो सकता है, जिसे चलाने के लिए इसकी पैरेंट या BIOS फ़ाइलों की आवश्यकता होती है। कृपया गुम फ़ाइलें इंपोर्ट करें या नॉन-मर्ज्ड ROM का उपयोग करें।";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
index f177176e..b8872668 100644
--- a/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
@@ -761,4 +761,27 @@ Ako naiđete na nestabilnost u 3DS-u, pogledajte «Često Postavljana Pitanja»
"EnableTriggerPro" = "Omogući TriggerPro";
"DisableTriggerPro" = "Onemogući TriggerPro";
"ActivateHold" = "Aktiviraj zadržavanje: %@";
-"DeactivateHold" = "Otkaži zadržavanje: %@";
\ No newline at end of file
+"DeactivateHold" = "Otkaži zadržavanje: %@";
+"NoGamesForManufacturer"="Nema dostupnih igara za ovog proizvođača";
+"iCloudNotEnable"="iCloud nije omogućen";
+"iCloudSyncing"="iCloud se sinkronizira";
+"iCloudSynced"="iCloud sinkroniziran";
+"JITNotAllow"="JIT nije dostupan";
+"JITAllow"="JIT dostupan";
+"iCloudUsage"="Korištenje iClouda";
+"Usage"="Korištenje";
+"iCloudDesc"="Omogućavanje iCloud sinkronizacije i sigurnosne kopije održava vaše igre, skinove i spremanja sinkroniziranima između uređaja. Čak i ako izbrišete i ponovno instalirate aplikaciju, vaši podaci će se odmah vratiti.";
+"Device"="Uređaj";
+"InstallSource"="Izvor instalacije";
+"System"="Sustav";
+"Memory"="Memorija";
+"InstallSideloadVersion"="Instaliraj sideload verziju";
+"JITDesc"="JIT (Just-In-Time kompilacija) je dinamička tehnika kompilacije koja poboljšava performanse izvođenja kompilirajući kod tijekom izvođenja umjesto unaprijed (AOT). Pretvara međukod, kao što je bytecode, u izvorni strojni kod koristeći informacije u stvarnom vremenu za optimizaciju.";
+"MAMEBiosDesc"="MAME BIOS uključuje razne potrebne datoteke. Dodirnite za pojedinosti";
+"MAMECheatCodeDesc"="MAME jezgra uključuje ugrađene cheat kodove. Tijekom igranja, otvorite MAME izbornik pritiskom na COIN + Y, zatim odaberite Cheat Options da ih konfigurirate.";
+"FBNeoNoCheats"="Nema dostupnih cheat kodova za ovu igru";
+"FBNeoCheatCodeDesc"="Kada se koristi FinalBurn Neo jezgra, cheat kodovi se mogu aktivirati samo tijekom igranja.";
+"FilterTitle"="Filtar";
+"EnableManufacturerFilter"="Omogući filtar proizvođača";
+"MAMEFileMissingTitle"="Nedostaju datoteke igre";
+"MAMEFileMissingDesc"="Ova igra može pripadati podijeljenom ROM setu, koji zahtijeva svoje roditeljske ili BIOS datoteke za pokretanje. Molimo importajte nedostajuće datoteke ili umjesto toga koristite ne-spojeni ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
index 9bc8bd7f..004cd80f 100644
--- a/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Nyomja meg a kontroller gombját...";
"EnableTriggerPro" = "TriggerPro engedélyezése";
"DisableTriggerPro" = "TriggerPro letiltása";
"ActivateHold" = "Tartás aktiválása: %@";
-"DeactivateHold" = "Tartás megszakítása: %@";
\ No newline at end of file
+"DeactivateHold" = "Tartás megszakítása: %@";
+"NoGamesForManufacturer"="Nincsenek elérhető játékok ehhez a gyártóhoz";
+"iCloudNotEnable"="iCloud nincs engedélyezve";
+"iCloudSyncing"="iCloud szinkronizálás";
+"iCloudSynced"="iCloud szinkronizálva";
+"JITNotAllow"="JIT nem elérhető";
+"JITAllow"="JIT elérhető";
+"iCloudUsage"="iCloud használat";
+"Usage"="Használat";
+"iCloudDesc"="Az iCloud szinkronizálás és biztonsági mentés engedélyezése megtartja játékait, skinjeit és mentéseit szinkronizálva az eszközök között. Még ha törli és újratelepíti az alkalmazást is, adatai azonnal visszaállnak.";
+"Device"="Eszköz";
+"InstallSource"="Telepítés forrása";
+"System"="Rendszer";
+"Memory"="Memória";
+"InstallSideloadVersion"="Sideload verzió telepítése";
+"JITDesc"="A JIT (Just-In-Time fordítás) egy dinamikus fordítási technika, amely a futási teljesítményt javítja a kód végrehajtás közbeni fordításával, előre fordítás (AOT) helyett. Köztes kódot, mint bytecode-ot, valós idejű információkkal optimalizálva konvertál natív gépi kódra.";
+"MAMEBiosDesc"="A MAME BIOS különféle szükséges fájlokat tartalmaz. Érintse meg a részletekért";
+"MAMECheatCodeDesc"="A MAME mag beépített csalókódokat tartalmaz. Játék közben nyissa meg a MAME menüt a COIN + Y megnyomásával, majd válassza a Cheat Options lehetőséget a beállításhoz.";
+"FBNeoNoCheats"="Nincsenek csalókódok ehhez a játékhoz";
+"FBNeoCheatCodeDesc"="A FinalBurn Neo mag használatakor a csalókódok csak játék közben aktiválhatók.";
+"FilterTitle"="Szűrő";
+"EnableManufacturerFilter"="Gyártó szűrő engedélyezése";
+"MAMEFileMissingTitle"="Hiányzó játékfájlok";
+"MAMEFileMissingDesc"="Ez a játék egy felosztott ROM készlethez tartozhat, amely szülő vagy BIOS fájlokat igényel a futtatáshoz. Kérjük, importálja a hiányzó fájlokat vagy használjon nem egyesített ROM-ot helyette.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
index fce8e8eb..22c0efc2 100644
--- a/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
@@ -756,4 +756,27 @@ Tekan tombol kontroler...";
"EnableTriggerPro" = "Aktifkan TriggerPro";
"DisableTriggerPro" = "Nonaktifkan TriggerPro";
"ActivateHold" = "Aktifkan Tahan: %@";
-"DeactivateHold" = "Batalkan Tahan: %@";
\ No newline at end of file
+"DeactivateHold" = "Batalkan Tahan: %@";
+"NoGamesForManufacturer"="Tidak ada game yang tersedia untuk produsen ini";
+"iCloudNotEnable"="iCloud Tidak Diaktifkan";
+"iCloudSyncing"="Sinkronisasi iCloud";
+"iCloudSynced"="iCloud Tersinkronisasi";
+"JITNotAllow"="JIT Tidak Tersedia";
+"JITAllow"="JIT Tersedia";
+"iCloudUsage"="Penggunaan iCloud";
+"Usage"="Penggunaan";
+"iCloudDesc"="Mengaktifkan sinkronisasi dan pencadangan iCloud menjaga game, skin, dan save Anda tersinkronisasi di seluruh perangkat. Bahkan jika Anda menghapus dan menginstal ulang aplikasi, data Anda akan langsung dipulihkan.";
+"Device"="Perangkat";
+"InstallSource"="Sumber Instalasi";
+"System"="Sistem";
+"Memory"="Memori";
+"InstallSideloadVersion"="Instal Versi Sideload";
+"JITDesc"="JIT (Kompilasi Just-In-Time) adalah teknik kompilasi dinamis yang meningkatkan kinerja runtime dengan mengompilasi kode selama eksekusi daripada sebelumnya (AOT). Ini mengonversi kode perantara, seperti bytecode, menjadi kode mesin asli menggunakan informasi real-time untuk optimasi.";
+"MAMEBiosDesc"="MAME BIOS mencakup berbagai file yang diperlukan. Ketuk untuk melihat detail";
+"MAMECheatCodeDesc"="Inti MAME mencakup kode curang bawaan. Selama bermain, buka menu MAME dengan menekan COIN + Y, lalu pilih Cheat Options untuk mengonfigurasinya.";
+"FBNeoNoCheats"="Tidak ada kode curang yang tersedia untuk game ini";
+"FBNeoCheatCodeDesc"="Saat menggunakan inti FinalBurn Neo, kode curang hanya dapat diaktifkan selama bermain.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Aktifkan Filter Produsen";
+"MAMEFileMissingTitle"="File Game Hilang";
+"MAMEFileMissingDesc"="Game ini mungkin termasuk dalam set ROM terpisah, yang memerlukan file induk atau BIOS-nya untuk dijalankan. Harap impor file yang hilang atau gunakan ROM non-merged sebagai gantinya.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
index 735b71fc..5b3dff17 100644
--- a/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
@@ -767,4 +767,27 @@ Premi il pulsante del controller...";
"EnableTriggerPro" = "Abilita TriggerPro";
"DisableTriggerPro" = "Disabilita TriggerPro";
"ActivateHold" = "Attiva mantenimento: %@";
-"DeactivateHold" = "Annulla mantenimento: %@";
\ No newline at end of file
+"DeactivateHold" = "Annulla mantenimento: %@";
+"NoGamesForManufacturer"="Nessun gioco disponibile per questo produttore";
+"iCloudNotEnable"="iCloud non attivato";
+"iCloudSyncing"="Sincronizzazione iCloud in corso";
+"iCloudSynced"="iCloud sincronizzato";
+"JITNotAllow"="JIT non disponibile";
+"JITAllow"="JIT disponibile";
+"iCloudUsage"="Utilizzo iCloud";
+"Usage"="Utilizzo";
+"iCloudDesc"="Attivando la sincronizzazione e backup iCloud, i tuoi giochi, skin e salvataggi rimangono sincronizzati tra dispositivi. Anche se elimini e reinstalli l'app, i tuoi dati verranno ripristinati istantaneamente.";
+"Device"="Dispositivo";
+"InstallSource"="Fonte di installazione";
+"System"="Sistema";
+"Memory"="Memoria";
+"InstallSideloadVersion"="Installa versione sideload";
+"JITDesc"="JIT (Compilazione Just-In-Time) è una tecnica di compilazione dinamica che migliora le prestazioni in esecuzione compilando il codice durante l'esecuzione invece che in anticipo (AOT). Converte codice intermedio, come bytecode, in codice macchina nativo utilizzando informazioni in tempo reale per l'ottimizzazione.";
+"MAMEBiosDesc"="MAME BIOS include vari file richiesti. Tocca per vedere i dettagli";
+"MAMECheatCodeDesc"="Il core MAME include codici cheat integrati. Durante il gioco, apri il menu MAME premendo COIN + Y, poi seleziona Cheat Options per configurarli.";
+"FBNeoNoCheats"="Nessun codice cheat disponibile per questo gioco";
+"FBNeoCheatCodeDesc"="Quando si utilizza il core FinalBurn Neo, i codici cheat possono essere attivati solo durante il gioco.";
+"FilterTitle"="Filtro";
+"EnableManufacturerFilter"="Attiva filtro produttore";
+"MAMEFileMissingTitle"="File di gioco mancanti";
+"MAMEFileMissingDesc"="Questo gioco potrebbe appartenere a un set ROM diviso, che richiede i suoi file parent o BIOS per essere eseguito. Si prega di importare i file mancanti o utilizzare un ROM non unito.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
index ba6afc39..32d2cc78 100644
--- a/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
@@ -760,4 +760,27 @@
"EnableTriggerPro" = "TriggerProを有効化";
"DisableTriggerPro" = "TriggerProを無効化";
"ActivateHold" = "ホールド開始:%@";
-"DeactivateHold" = "ホールド解除:%@";
\ No newline at end of file
+"DeactivateHold" = "ホールド解除:%@";
+"NoGamesForManufacturer"="このメーカーには利用可能なゲームがありません";
+"iCloudNotEnable"="iCloudが有効になっていません";
+"iCloudSyncing"="iCloud同期中";
+"iCloudSynced"="iCloud同期済み";
+"JITNotAllow"="JIT利用不可";
+"JITAllow"="JIT利用可能";
+"iCloudUsage"="iCloud使用量";
+"Usage"="使用量";
+"iCloudDesc"="iCloud同期とバックアップを有効にすると、ゲーム、スキン、セーブデータが複数デバイス間で同期されます。アプリを削除して再インストールしても、データは即時に復元されます。";
+"Device"="デバイス";
+"InstallSource"="インストール元";
+"System"="システム";
+"Memory"="メモリ";
+"InstallSideloadVersion"="サイドロード版をインストール";
+"JITDesc"="JIT(Just-In-Timeコンパイル)は、実行時にコードをコンパイルすることで実行効率を向上させる動的コンパイル技術です。事前コンパイル(AOT)とは異なり、JITは中間コード(バイトコードなど)を実行時にネイティブマシンコードに変換し、リアルタイム情報を活用して最適化することでパフォーマンスを向上させます。";
+"MAMEBiosDesc"="MAME BIOSは複数の必須ファイルで構成されています。タップして詳細を表示";
+"MAMECheatCodeDesc"="MAMEコアにはチートコードが組み込まれています。ゲーム中にCOIN + Yを同時押ししてMAMEメニューを開き、Cheat Optionsを選択して設定してください。";
+"FBNeoNoCheats"="このゲームには利用可能なチートコードがありません";
+"FBNeoCheatCodeDesc"="FinalBurn Neoコアを使用する場合、チートコードはゲーム実行中のみ有効化できます。";
+"FilterTitle"="フィルター";
+"EnableManufacturerFilter"="メーカーフィルターを有効にする";
+"MAMEFileMissingTitle"="ゲームファイルが不足しています";
+"MAMEFileMissingDesc"="このゲームはSplitタイプのROMセットに属している可能性があり、実行には親ROMまたはBIOSファイルが必要です。不足しているファイルをインポートするか、non-mergedタイプのROMを使用してください。";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
index 12d310a1..5c56acdf 100644
--- a/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
@@ -767,4 +767,27 @@
"EnableTriggerPro" = "TriggerPro 활성화";
"DisableTriggerPro" = "TriggerPro 비활성화";
"ActivateHold" = "홀드 활성화: %@";
-"DeactivateHold" = "홀드 취소: %@";
\ No newline at end of file
+"DeactivateHold" = "홀드 취소: %@";
+"NoGamesForManufacturer"="해당 제조사에 사용 가능한 게임이 없습니다";
+"iCloudNotEnable"="iCloud 미활성화";
+"iCloudSyncing"="iCloud 동기화 중";
+"iCloudSynced"="iCloud 동기화 완료";
+"JITNotAllow"="JIT 사용 불가";
+"JITAllow"="JIT 사용 가능";
+"iCloudUsage"="iCloud 사용량";
+"Usage"="사용량";
+"iCloudDesc"="iCloud 동기화 및 백업을 활성화하면 게임, 스킨, 저장 데이터가 여러 기기에서 동기화됩니다. 앱을 삭제하고 재설치해도 데이터가 즉시 복원됩니다.";
+"Device"="기기";
+"InstallSource"="설치 출처";
+"System"="시스템";
+"Memory"="메모리";
+"InstallSideloadVersion"="사이드로드 버전 설치";
+"JITDesc"="JIT(Just-In-Time 컴파일)는 실행 중에 코드를 컴파일하여 런타임 성능을 향상시키는 동적 컴파일 기술입니다. AOT(사전 컴파일)와 달리 JIT는 바이트코드와 같은 중간 코드를 실시간 정보를 활용하여 최적화하고 네이티브 머신 코드로 변환합니다.";
+"MAMEBiosDesc"="MAME BIOS에는 여러 필수 파일이 포함되어 있습니다. 탭하여 세부 정보 확인";
+"MAMECheatCodeDesc"="MAME 코어에는 내장 치트 코드가 포함되어 있습니다. 게임 중 COIN + Y를 동시에 눌러 MAME 메뉴를 열고 Cheat Options를 선택하여 설정하세요.";
+"FBNeoNoCheats"="이 게임에는 사용 가능한 치트 코드가 없습니다";
+"FBNeoCheatCodeDesc"="FinalBurn Neo 코어를 사용할 경우 치트 코드는 게임 실행 중에만 활성화할 수 있습니다.";
+"FilterTitle"="필터";
+"EnableManufacturerFilter"="제조사 필터 활성화";
+"MAMEFileMissingTitle"="게임 파일 누락";
+"MAMEFileMissingDesc"="이 게임은 분할 ROM 세트에 속할 수 있으며, 실행하려면 부모 또는 BIOS 파일이 필요합니다. 누락된 파일을 가져오거나 non-merged ROM을 사용하세요.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
index 2da22e9e..5fd7ee83 100644
--- a/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
@@ -737,4 +737,27 @@ Tekan butang pengawal...";
"EnableTriggerPro" = "Dayakan TriggerPro";
"DisableTriggerPro" = "Nyahdayakan TriggerPro";
"ActivateHold" = "Aktifkan Tahan: %@";
-"DeactivateHold" = "Batal Tahan: %@";
\ No newline at end of file
+"DeactivateHold" = "Batal Tahan: %@";
+"NoGamesForManufacturer"="Tiada permainan tersedia untuk pengeluar ini";
+"iCloudNotEnable"="iCloud Tidak Diaktifkan";
+"iCloudSyncing"="Penyegerakan iCloud";
+"iCloudSynced"="iCloud Tersegerak";
+"JITNotAllow"="JIT Tidak Tersedia";
+"JITAllow"="JIT Tersedia";
+"iCloudUsage"="Penggunaan iCloud";
+"Usage"="Penggunaan";
+"iCloudDesc"="Mengaktifkan penyegerakan dan sandaran iCloud memastikan permainan, kulit dan simpanan anda disegerakkan merentas peranti. Walaupun anda memadam dan memasang semula apl, data anda akan dipulihkan serta-merta.";
+"Device"="Peranti";
+"InstallSource"="Sumber Pemasangan";
+"System"="Sistem";
+"Memory"="Memori";
+"InstallSideloadVersion"="Pasang Versi Sideload";
+"JITDesc"="JIT (Kompilasi Just-In-Time) adalah teknik kompilasi dinamik yang meningkatkan prestasi masa jalan dengan mengkompilasi kod semasa pelaksanaan dan bukannya terlebih dahulu (AOT). Ia menukar kod pertengahan, seperti bytecode, kepada kod mesin asli menggunakan maklumat masa nyata untuk pengoptimuman.";
+"MAMEBiosDesc"="MAME BIOS termasuk pelbagai fail yang diperlukan. Ketuk untuk lihat butiran";
+"MAMECheatCodeDesc"="Teras MAME termasuk kod tipu terbina dalam. Semasa permainan, buka menu MAME dengan menekan COIN + Y, kemudian pilih Cheat Options untuk mengkonfigurasinya.";
+"FBNeoNoCheats"="Tiada kod tipu tersedia untuk permainan ini";
+"FBNeoCheatCodeDesc"="Apabila menggunakan teras FinalBurn Neo, kod tipu hanya boleh diaktifkan semasa permainan.";
+"FilterTitle"="Penapis";
+"EnableManufacturerFilter"="Dayakan Penapis Pengeluar";
+"MAMEFileMissingTitle"="Fail Permainan Hilang";
+"MAMEFileMissingDesc"="Permainan ini mungkin tergolong dalam set ROM terpisah, yang memerlukan fail induk atau BIOSnya untuk dijalankan. Sila import fail yang hilang atau gunakan ROM tidak bergabung sebagai gantinya.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
index bd97a2a9..0ac8f132 100644
--- a/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
@@ -755,4 +755,27 @@ Trykk på kontrollerknappen...";
"EnableTriggerPro" = "Aktiver TriggerPro";
"DisableTriggerPro" = "Deaktiver TriggerPro";
"ActivateHold" = "Aktiver hold: %@";
-"DeactivateHold" = "Avbryt hold: %@";
\ No newline at end of file
+"DeactivateHold" = "Avbryt hold: %@";
+"NoGamesForManufacturer"="Ingen spill tilgjengelig for denne produsent";
+"iCloudNotEnable"="iCloud ikke aktivert";
+"iCloudSyncing"="iCloud-synkronisering";
+"iCloudSynced"="iCloud synkronisert";
+"JITNotAllow"="JIT ikke tilgjengelig";
+"JITAllow"="JIT tilgjengelig";
+"iCloudUsage"="iCloud-bruk";
+"Usage"="Bruk";
+"iCloudDesc"="Aktivering av iCloud-synkronisering og sikkerhetskopiering holder spillene, skin-ene og lagringene dine synkronisert på tvers av enheter. Selv om du sletter og reinstallerer appen, vil dataene dine bli gjenopprettet umiddelbart.";
+"Device"="Enhet";
+"InstallSource"="Installasjonskilde";
+"System"="System";
+"Memory"="Minne";
+"InstallSideloadVersion"="Installer sideload-versjon";
+"JITDesc"="JIT (Just-In-Time-kompilering) er en dynamisk kompileringsteknikk som forbedrer kjøretidsytelse ved å kompilere kode under kjøring i stedet for på forhånd (AOT). Den konverterer mellomkode, som bytecode, til innfødt maskinkode ved å bruke sanntidsinformasjon for optimalisering.";
+"MAMEBiosDesc"="MAME BIOS inkluderer forskjellige nødvendige filer. Trykk for å se detaljer";
+"MAMECheatCodeDesc"="MAME-kjernen inkluderer innebygde juksekoder. Under spill, åpne MAME-menyen ved å trykke COIN + Y, og velg deretter Cheat Options for å konfigurere dem.";
+"FBNeoNoCheats"="Ingen juksekoder tilgjengelig for dette spillet";
+"FBNeoCheatCodeDesc"="Ved bruk av FinalBurn Neo-kjernen kan juksekoder bare aktiveres under spill.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Aktiver produsentfilter";
+"MAMEFileMissingTitle"="Manglende spillfiler";
+"MAMEFileMissingDesc"="Dette spillet kan tilhøre et delt ROM-sett, som krever dets overordnede eller BIOS-filer for å kjøre. Vennligst importer de manglende filene eller bruk en ikke-sammenslått ROM i stedet.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
index c887a613..6ec28616 100644
--- a/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
@@ -764,4 +764,27 @@ Druk op de controllerknop...";
"EnableTriggerPro" = "TriggerPro inschakelen";
"DisableTriggerPro" = "TriggerPro uitschakelen";
"ActivateHold" = "Vasthouden activeren: %@";
-"DeactivateHold" = "Vasthouden annuleren: %@";
\ No newline at end of file
+"DeactivateHold" = "Vasthouden annuleren: %@";
+"NoGamesForManufacturer"="Geen games beschikbaar voor deze fabrikant";
+"iCloudNotEnable"="iCloud niet ingeschakeld";
+"iCloudSyncing"="iCloud synchroniseren";
+"iCloudSynced"="iCloud gesynchroniseerd";
+"JITNotAllow"="JIT niet beschikbaar";
+"JITAllow"="JIT beschikbaar";
+"iCloudUsage"="iCloud-gebruik";
+"Usage"="Gebruik";
+"iCloudDesc"="Door iCloud-synchronisatie en back-up in te schakelen, blijven uw games, skins en opslagen gesynchroniseerd tussen apparaten. Zelfs als u de app verwijdert en opnieuw installeert, worden uw gegevens direct hersteld.";
+"Device"="Apparaat";
+"InstallSource"="Installatiebron";
+"System"="Systeem";
+"Memory"="Geheugen";
+"InstallSideloadVersion"="Sideload-versie installeren";
+"JITDesc"="JIT (Just-In-Time Compilatie) is een dynamische compilatietechniek die de runtime-prestaties verbetert door code tijdens uitvoering te compileren in plaats van vooraf (AOT). Het converteert tussencode, zoals bytecode, naar native machinecode met behulp van real-time informatie voor optimalisatie.";
+"MAMEBiosDesc"="MAME BIOS bevat verschillende vereiste bestanden. Tik om details te bekijken";
+"MAMECheatCodeDesc"="De MAME-kern bevat ingebouwde cheatcodes. Tijdens het spel opent u het MAME-menu door COIN + Y in te drukken en selecteert u vervolgens Cheat Options om ze te configureren.";
+"FBNeoNoCheats"="Geen cheatcodes beschikbaar voor dit spel";
+"FBNeoCheatCodeDesc"="Bij gebruik van de FinalBurn Neo-kern kunnen cheatcodes alleen tijdens het spel worden geactiveerd.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Fabrikantfilter inschakelen";
+"MAMEFileMissingTitle"="Ontbrekende spelbestanden";
+"MAMEFileMissingDesc"="Dit spel kan deel uitmaken van een gesplitste ROM-set, waarvoor de bovenliggende of BIOS-bestanden nodig zijn om te werken. Importeer de ontbrekende bestanden of gebruik in plaats daarvan een niet-samengevoegde ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
index 3e6882d1..c2356b29 100644
--- a/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
@@ -738,4 +738,27 @@ Naciśnij przycisk kontrolera...";
"EnableTriggerPro" = "Włącz TriggerPro";
"DisableTriggerPro" = "Wyłącz TriggerPro";
"ActivateHold" = "Aktywuj przytrzymanie: %@";
-"DeactivateHold" = "Anuluj przytrzymanie: %@";
\ No newline at end of file
+"DeactivateHold" = "Anuluj przytrzymanie: %@";
+"NoGamesForManufacturer"="Brak gier dla tego producenta";
+"iCloudNotEnable"="iCloud nieaktywny";
+"iCloudSyncing"="Synchronizacja iCloud";
+"iCloudSynced"="iCloud zsynchronizowany";
+"JITNotAllow"="JIT niedostępny";
+"JITAllow"="JIT dostępny";
+"iCloudUsage"="Użycie iCloud";
+"Usage"="Użycie";
+"iCloudDesc"="Włączenie synchronizacji i kopii zapasowej iCloud utrzymuje Twoje gry, skórki i zapisy synchronizowane między urządzeniami. Nawet jeśli usuniesz i ponownie zainstalujesz aplikację, Twoje dane zostaną natychmiast przywrócone.";
+"Device"="Urządzenie";
+"InstallSource"="Źródło instalacji";
+"System"="System";
+"Memory"="Pamięć";
+"InstallSideloadVersion"="Zainstaluj wersję sideload";
+"JITDesc"="JIT (Kompilacja Just-In-Time) to dynamiczna technika kompilacji, która poprawia wydajność czasu wykonania poprzez kompilowanie kodu podczas wykonywania zamiast z wyprzedzeniem (AOT). Konwertuje kod pośredni, taki jak bytecode, na natywny kod maszynowy przy użyciu informacji w czasie rzeczywistym w celu optymalizacji.";
+"MAMEBiosDesc"="MAME BIOS zawiera różne wymagane pliki. Stuknij, aby zobaczyć szczegóły";
+"MAMECheatCodeDesc"="Rdzeń MAME zawiera wbudowane kody oszukujące. Podczas gry otwórz menu MAME, naciskając COIN + Y, a następnie wybierz Cheat Options, aby je skonfigurować.";
+"FBNeoNoCheats"="Brak kodów oszukujących dla tej gry";
+"FBNeoCheatCodeDesc"="Podczas używania rdzenia FinalBurn Neo kody oszukujące można aktywować tylko podczas gry.";
+"FilterTitle"="Filtr";
+"EnableManufacturerFilter"="Włącz filtr producenta";
+"MAMEFileMissingTitle"="Brakujące pliki gry";
+"MAMEFileMissingDesc"="Ta gra może należeć do podzielonego zestawu ROM, który wymaga swoich nadrzędnych lub BIOS plików do uruchomienia. Proszę zaimportować brakujące pliki lub użyć zamiast tego ROM niepołączonego.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
index 95528818..c7933732 100644
--- a/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
@@ -764,4 +764,27 @@ Pressione o botão do controle...";
"EnableTriggerPro" = "Ativar TriggerPro";
"DisableTriggerPro" = "Desativar TriggerPro";
"ActivateHold" = "Ativar manutenção: %@";
-"DeactivateHold" = "Cancelar manutenção: %@";
\ No newline at end of file
+"DeactivateHold" = "Cancelar manutenção: %@";
+"NoGamesForManufacturer"="Nenhum jogo disponível para este fabricante";
+"iCloudNotEnable"="iCloud não ativado";
+"iCloudSyncing"="Sincronizando iCloud";
+"iCloudSynced"="iCloud sincronizado";
+"JITNotAllow"="JIT indisponível";
+"JITAllow"="JIT disponível";
+"iCloudUsage"="Uso do iCloud";
+"Usage"="Uso";
+"iCloudDesc"="Ativar a sincronização e backup do iCloud mantém seus jogos, skins e saves sincronizados entre dispositivos. Mesmo se você excluir e reinstalar o app, seus dados serão restaurados instantaneamente.";
+"Device"="Dispositivo";
+"InstallSource"="Fonte de instalação";
+"System"="Sistema";
+"Memory"="Memória";
+"InstallSideloadVersion"="Instalar versão sideload";
+"JITDesc"="JIT (Compilação Just-In-Time) é uma técnica de compilação dinâmica que melhora o desempenho em tempo de execução compilando código durante a execução em vez de antecipadamente (AOT). Ela converte código intermediário, como bytecode, em código de máquina nativo usando informações em tempo real para otimização.";
+"MAMEBiosDesc"="MAME BIOS inclui vários arquivos necessários. Toque para ver detalhes";
+"MAMECheatCodeDesc"="O núcleo MAME inclui códigos de trapaça integrados. Durante o jogo, abra o menu MAME pressionando COIN + Y, então selecione Cheat Options para configurá-los.";
+"FBNeoNoCheats"="Nenhum código de trapaça disponível para este jogo";
+"FBNeoCheatCodeDesc"="Ao usar o núcleo FinalBurn Neo, os códigos de trapaça só podem ser ativados durante o jogo.";
+"FilterTitle"="Filtro";
+"EnableManufacturerFilter"="Ativar filtro de fabricante";
+"MAMEFileMissingTitle"="Arquivos de jogo faltantes";
+"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer seus arquivos pai ou BIOS para executar. Por favor importe os arquivos faltantes ou use um ROM não mesclado.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
index 2c56d4aa..834947d5 100644
--- a/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
@@ -765,4 +765,27 @@ Pressione o botão do comando...";
"EnableTriggerPro" = "Ativar TriggerPro";
"DisableTriggerPro" = "Desativar TriggerPro";
"ActivateHold" = "Ativar manutenção: %@";
-"DeactivateHold" = "Cancelar manutenção: %@";
\ No newline at end of file
+"DeactivateHold" = "Cancelar manutenção: %@";
+"NoGamesForManufacturer"="Nenhum jogo disponível para este fabricante";
+"iCloudNotEnable"="iCloud não ativado";
+"iCloudSyncing"="A sincronizar iCloud";
+"iCloudSynced"="iCloud sincronizado";
+"JITNotAllow"="JIT indisponível";
+"JITAllow"="JIT disponível";
+"iCloudUsage"="Utilização do iCloud";
+"Usage"="Utilização";
+"iCloudDesc"="Ativar a sincronização e cópia de segurança do iCloud mantém os seus jogos, skins e saves sincronizados entre dispositivos. Mesmo que elimine e reinstale a aplicação, os seus dados serão restaurados instantaneamente.";
+"Device"="Dispositivo";
+"InstallSource"="Fonte de instalação";
+"System"="Sistema";
+"Memory"="Memória";
+"InstallSideloadVersion"="Instalar versão sideload";
+"JITDesc"="JIT (Compilação Just-In-Time) é uma técnica de compilação dinâmica que melhora o desempenho em tempo de execução compilando código durante a execução em vez de antecipadamente (AOT). Converte código intermédio, como bytecode, em código de máquina nativo usando informações em tempo real para otimização.";
+"MAMEBiosDesc"="MAME BIOS inclui vários ficheiros necessários. Toque para ver detalhes";
+"MAMECheatCodeDesc"="O núcleo MAME inclui códigos de batota integrados. Durante o jogo, abra o menu MAME premindo COIN + Y, depois selecione Cheat Options para os configurar.";
+"FBNeoNoCheats"="Nenhum código de batota disponível para este jogo";
+"FBNeoCheatCodeDesc"="Ao usar o núcleo FinalBurn Neo, os códigos de batota só podem ser ativados durante o jogo.";
+"FilterTitle"="Filtro";
+"EnableManufacturerFilter"="Ativar filtro de fabricante";
+"MAMEFileMissingTitle"="Ficheiros de jogo em falta";
+"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer os seus ficheiros pai ou BIOS para executar. Por favor importe os ficheiros em falta ou use um ROM não fundido.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
index aadb601a..6f0163a9 100644
--- a/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Apasă butonul controlerului...";
"EnableTriggerPro" = "Activează TriggerPro";
"DisableTriggerPro" = "Dezactivează TriggerPro";
"ActivateHold" = "Activează ținere: %@";
-"DeactivateHold" = "Anulează ținere: %@";
\ No newline at end of file
+"DeactivateHold" = "Anulează ținere: %@";
+"NoGamesForManufacturer"="Nu există jocuri disponibile pentru acest producător";
+"iCloudNotEnable"="iCloud neactivat";
+"iCloudSyncing"="Se sincronizează iCloud";
+"iCloudSynced"="iCloud sincronizat";
+"JITNotAllow"="JIT indisponibil";
+"JITAllow"="JIT disponibil";
+"iCloudUsage"="Utilizare iCloud";
+"Usage"="Utilizare";
+"iCloudDesc"="Activarea sincronizării și backup-ului iCloud păstrează jocurile, skin-urile și salvările sincronizate între dispozitive. Chiar dacă ștergeți și reinstalați aplicația, datele dvs. vor fi restaurate instantaneu.";
+"Device"="Dispozitiv";
+"InstallSource"="Sursă instalare";
+"System"="Sistem";
+"Memory"="Memorie";
+"InstallSideloadVersion"="Instalați versiunea sideload";
+"JITDesc"="JIT (Compilare Just-In-Time) este o tehnică de compilare dinamică care îmbunătățește performanța runtime prin compilarea codului în timpul execuției în loc de dinainte (AOT). Convertește cod intermediar, cum ar fi bytecode, în cod mașină nativ folosind informații în timp real pentru optimizare.";
+"MAMEBiosDesc"="MAME BIOS include diverse fișiere necesare. Atingeți pentru detalii";
+"MAMECheatCodeDesc"="Nucleul MAME include coduri cheat încorporate. În timpul jocului, deschideți meniul MAME apăsând COIN + Y, apoi selectați Cheat Options pentru a le configura.";
+"FBNeoNoCheats"="Nu există coduri cheat disponibile pentru acest joc";
+"FBNeoCheatCodeDesc"="Când se utilizează nucleul FinalBurn Neo, codurile cheat pot fi activate doar în timpul jocului.";
+"FilterTitle"="Filtru";
+"EnableManufacturerFilter"="Activați filtru producător";
+"MAMEFileMissingTitle"="Fișiere joc lipsă";
+"MAMEFileMissingDesc"="Acest joc poate aparține unui set ROM divizat, care necesită fișierele părinte sau BIOS pentru a rula. Vă rugăm să importați fișierele lipsă sau să folosiți un ROM nefuzionat în schimb.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
index b53c3365..14c3ea39 100644
--- a/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
@@ -759,4 +759,27 @@
"EnableTriggerPro" = "Включить TriggerPro";
"DisableTriggerPro" = "Отключить TriggerPro";
"ActivateHold" = "Активировать удержание: %@";
-"DeactivateHold" = "Отменить удержание: %@";
\ No newline at end of file
+"DeactivateHold" = "Отменить удержание: %@";
+"NoGamesForManufacturer"="Нет доступных игр от этого производителя";
+"iCloudNotEnable"="iCloud не активирован";
+"iCloudSyncing"="Синхронизация iCloud";
+"iCloudSynced"="iCloud синхронизирован";
+"JITNotAllow"="JIT недоступен";
+"JITAllow"="JIT доступен";
+"iCloudUsage"="Использование iCloud";
+"Usage"="Использование";
+"iCloudDesc"="Включение синхронизации и резервного копирования iCloud сохраняет ваши игры, скины и сохранения синхронизированными между устройствами. Даже если вы удалите и переустановите приложение, ваши данные будут мгновенно восстановлены.";
+"Device"="Устройство";
+"InstallSource"="Источник установки";
+"System"="Система";
+"Memory"="Память";
+"InstallSideloadVersion"="Установить sideload-версию";
+"JITDesc"="JIT (Just-In-Time компиляция) — это технология динамической компиляции, которая улучшает производительность во время выполнения, компилируя код во время исполнения, а не заранее (AOT). Она преобразует промежуточный код, такой как байт-код, в машинный код с использованием информации в реальном времени для оптимизации.";
+"MAMEBiosDesc"="MAME BIOS включает различные необходимые файлы. Нажмите для просмотра деталей";
+"MAMECheatCodeDesc"="Ядро MAME включает встроенные чит-коды. Во время игры откройте меню MAME, нажав COIN + Y, затем выберите Cheat Options для их настройки.";
+"FBNeoNoCheats"="Нет доступных чит-кодов для этой игры";
+"FBNeoCheatCodeDesc"="При использовании ядра FinalBurn Neo чит-коды можно активировать только во время игры.";
+"FilterTitle"="Фильтр";
+"EnableManufacturerFilter"="Включить фильтр производителя";
+"MAMEFileMissingTitle"="Отсутствуют файлы игры";
+"MAMEFileMissingDesc"="Эта игра может принадлежать к разделенному набору ROM, для запуска которого требуются родительские или BIOS файлы. Пожалуйста, импортируйте отсутствующие файлы или используйте non-merged ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
index fdf8650f..c95bc3ce 100644
--- a/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Ak sa vyskytne nestabilita v 3DS, pozrite si «Časté otázky» alebo sa pripoj
"EnableTriggerPro" = "Povoliť TriggerPro";
"DisableTriggerPro" = "Zakázať TriggerPro";
"ActivateHold" = "Aktivovať podržanie: %@";
-"DeactivateHold" = "Zrušiť podržanie: %@";
\ No newline at end of file
+"DeactivateHold" = "Zrušiť podržanie: %@";
+"NoGamesForManufacturer"="Žiadne hry dostupné pre tohto výrobcu";
+"iCloudNotEnable"="iCloud nie je povolené";
+"iCloudSyncing"="Prebieha synchronizácia iCloud";
+"iCloudSynced"="iCloud synchronizované";
+"JITNotAllow"="JIT nie je k dispozícii";
+"JITAllow"="JIT k dispozícii";
+"iCloudUsage"="Využitie iCloud";
+"Usage"="Využitie";
+"iCloudDesc"="Povolenie synchronizácie a zálohovania iCloud udržiava vaše hry, skiny a uložené pozície synchronizované medzi zariadeniami. Aj keď aplikáciu vymažete a znova nainštalujete, vaše dáta sa okamžite obnovia.";
+"Device"="Zariadenie";
+"InstallSource"="Zdroj inštalácie";
+"System"="Systém";
+"Memory"="Pamäť";
+"InstallSideloadVersion"="Nainštalovať sideload verziu";
+"JITDesc"="JIT (Just-In-Time kompilácia) je dynamická kompilačná technika, ktorá zlepšuje výkon za behu kompiláciou kódu počas vykonávania namiesto vopred (AOT). Konvertuje medzikód, ako je bytecode, na natívny strojový kód pomocou informácií v reálnom čase na optimalizáciu.";
+"MAMEBiosDesc"="MAME BIOS obsahuje rôzne požadované súbory. Klepnite pre podrobnosti";
+"MAMECheatCodeDesc"="Jadro MAME obsahuje vstavané cheat kódy. Počas hry otvorte menu MAME stlačením COIN + Y, potom vyberte Cheat Options pre ich konfiguráciu.";
+"FBNeoNoCheats"="Pre túto hru nie sú k dispozícii žiadne cheat kódy";
+"FBNeoCheatCodeDesc"="Pri použití jadra FinalBurn Neo je možné cheat kódy aktivovať iba počas hry.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Povoliť filter výrobcu";
+"MAMEFileMissingTitle"="Chýbajúce herné súbory";
+"MAMEFileMissingDesc"="Táto hra môže patriť do rozdeleného setu ROM, ktorý na spustenie vyžaduje svoje nadradené alebo BIOS súbory. Importujte chýbajúce súbory alebo namiesto toho použite nespojené ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
index 317c0aed..954d9560 100644
--- a/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
@@ -757,4 +757,27 @@ Tryck på kontrollknappen...";
"EnableTriggerPro" = "Aktivera TriggerPro";
"DisableTriggerPro" = "Inaktivera TriggerPro";
"ActivateHold" = "Aktivera håll: %@";
-"DeactivateHold" = "Avbryt håll: %@";
\ No newline at end of file
+"DeactivateHold" = "Avbryt håll: %@";
+"NoGamesForManufacturer"="Inga spel tillgängliga för denna tillverkare";
+"iCloudNotEnable"="iCloud inte aktiverat";
+"iCloudSyncing"="iCloud-synkronisering pågår";
+"iCloudSynced"="iCloud synkroniserad";
+"JITNotAllow"="JIT ej tillgänglig";
+"JITAllow"="JIT tillgänglig";
+"iCloudUsage"="iCloud-användning";
+"Usage"="Användning";
+"iCloudDesc"="Aktivering av iCloud-synkronisering och säkerhetskopiering håller dina spel, skinn och sparade filer synkroniserade mellan enheter. Även om du tar bort och installerar om appen kommer dina data att återställas omedelbart.";
+"Device"="Enhet";
+"InstallSource"="Installationskälla";
+"System"="System";
+"Memory"="Minne";
+"InstallSideloadVersion"="Installera sideload-version";
+"JITDesc"="JIT (Just-In-Time-kompilering) är en dynamisk kompileringsteknik som förbättrar körningsprestanda genom att kompilera kod under körning istället för i förväg (AOT). Den omvandlar mellankod, som bytecode, till inbyggd maskinkod med hjälp av realtidsinformation för optimering.";
+"MAMEBiosDesc"="MAME BIOS innehåller olika nödvändiga filer. Tryck för att se detaljer";
+"MAMECheatCodeDesc"="MAME-kärnan innehåller inbyggda fuskkoder. Under spel, öppna MAME-menyn genom att trycka COIN + Y, välj sedan Cheat Options för att konfigurera dem.";
+"FBNeoNoCheats"="Inga fuskkoder tillgängliga för detta spel";
+"FBNeoCheatCodeDesc"="När FinalBurn Neo-kärnan används kan fuskkoder endast aktiveras under spel.";
+"FilterTitle"="Filter";
+"EnableManufacturerFilter"="Aktivera tillverkarfilter";
+"MAMEFileMissingTitle"="Saknade spelfiler";
+"MAMEFileMissingDesc"="Detta spel kan tillhöra en uppdelad ROM-uppsättning, som kräver dess förälder- eller BIOS-filer för att köra. Importera de saknade filerna eller använd en icke-sammanslagen ROM istället.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
index c1b1fba5..ca75a415 100644
--- a/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
@@ -753,4 +753,27 @@
"EnableTriggerPro" = "เปิดใช้งาน TriggerPro";
"DisableTriggerPro" = "ปิดใช้งาน TriggerPro";
"ActivateHold" = "เปิดใช้งานการกดค้าง: %@";
-"DeactivateHold" = "ยกเลิกการกดค้าง: %@";
\ No newline at end of file
+"DeactivateHold" = "ยกเลิกการกดค้าง: %@";
+"NoGamesForManufacturer"="ไม่มีเกมสำหรับผู้ผลิตนี้";
+"iCloudNotEnable"="iCloud ยังไม่ได้เปิดใช้งาน";
+"iCloudSyncing"="กำลังซิงค์ iCloud";
+"iCloudSynced"="ซิงค์ iCloud แล้ว";
+"JITNotAllow"="JIT ไม่พร้อมใช้งาน";
+"JITAllow"="JIT พร้อมใช้งาน";
+"iCloudUsage"="การใช้งาน iCloud";
+"Usage"="การใช้งาน";
+"iCloudDesc"="การเปิดใช้งานการซิงโครไนซ์และสำรองข้อมูล iCloud จะทำให้เกม สกิน และข้อมูลเซฟของคุณคงสภาพระหว่างอุปกรณ์ แม้ว่าคุณจะลบและติดตั้งแอปใหม่ ข้อมูลของคุณจะถูกกู้คืนทันที";
+"Device"="อุปกรณ์";
+"InstallSource"="แหล่งที่ติดตั้ง";
+"System"="ระบบ";
+"Memory"="หน่วยความจำ";
+"InstallSideloadVersion"="ติดตั้งเวอร์ชัน Sideload";
+"JITDesc"="JIT (Just-In-Time Compilation) เป็นเทคนิคการคอมไพล์แบบไดนามิกที่ปรับปรุงประสิทธิภาพรันไทม์โดยการคอมไพล์โค้ดระหว่างการทำงานแทนที่จะคอมไพล์ล่วงหน้า (AOT) โดยแปลงโค้ดระดับกลาง เช่น bytecode เป็นโค้ดเครื่องโดยใช้ข้อมูลแบบเรียลไทม์เพื่อการปรับปรุงประสิทธิภาพ";
+"MAMEBiosDesc"="MAME BIOS ประกอบด้วยไฟล์ที่จำเป็นหลายไฟล์ แตะเพื่อดูรายละเอียด";
+"MAMECheatCodeDesc"="MAME core มีรหัสโกงในตัว ระหว่างเล่นเกม เปิดเมนู MAME โดยกด COIN + Y แล้วเลือก Cheat Options เพื่อตั้งค่า";
+"FBNeoNoCheats"="ไม่มีรหัสโกงสำหรับเกมนี้";
+"FBNeoCheatCodeDesc"="เมื่อใช้ FinalBurn Neo core รหัสโกงสามารถเปิดใช้งานได้เฉพาะระหว่างเล่นเกม";
+"FilterTitle"="ตัวกรอง";
+"EnableManufacturerFilter"="เปิดใช้งานตัวกรองผู้ผลิต";
+"MAMEFileMissingTitle"="ไฟล์เกมหายไป";
+"MAMEFileMissingDesc"="เกมนี้อาจเป็นส่วนหนึ่งของชุด ROM แบบ split ซึ่งต้องการไฟล์หลักหรือไฟล์ BIOS ในการทำงาน กรุณานำเข้าไฟล์ที่ขาดหายไปหรือใช้ ROM แบบ non-merged แทน";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
index 69cdd6e54..6373a6ae 100644
--- a/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
@@ -763,4 +763,27 @@ Kontrolcü düğmesine basın...";
"EnableTriggerPro" = "TriggerPro'yu Etkinleştir";
"DisableTriggerPro" = "TriggerPro'yu Devre Dışı Bırak";
"ActivateHold" = "Basılı Tutmayı Etkinleştir: %@";
-"DeactivateHold" = "Basılı Tutmayı İptal Et: %@";
\ No newline at end of file
+"DeactivateHold" = "Basılı Tutmayı İptal Et: %@";
+"NoGamesForManufacturer"="Bu üretici için mevcut oyun yok";
+"iCloudNotEnable"="iCloud Etkin Değil";
+"iCloudSyncing"="iCloud Senkronize Ediliyor";
+"iCloudSynced"="iCloud Senkronize Edildi";
+"JITNotAllow"="JIT Kullanılamıyor";
+"JITAllow"="JIT Kullanılabilir";
+"iCloudUsage"="iCloud Kullanımı";
+"Usage"="Kullanım";
+"iCloudDesc"="iCloud senkronizasyonu ve yedeklemeyi etkinleştirmek, oyunlarınızı, skin'lerinizi ve kayıtlarınızı cihazlar arasında senkronize tutar. Uygulamayı silip yeniden yükleseniz bile verileriniz anında geri yüklenir.";
+"Device"="Cihaz";
+"InstallSource"="Kurulum Kaynağı";
+"System"="Sistem";
+"Memory"="Bellek";
+"InstallSideloadVersion"="Sideload Sürümünü Yükle";
+"JITDesc"="JIT (Just-In-Time Derleme), kodu yürütme sırasında derleyerek çalışma zamanı performansını artıran dinamik bir derleme tekniğidir. AOT'nin aksine, JIT ara kodu (bytecode gibi) gerçek zamanlı bilgileri kullanarak optimize eder ve yerel makine koduna dönüştürür.";
+"MAMEBiosDesc"="MAME BIOS çeşitli gerekli dosyaları içerir. Ayrıntıları görüntülemek için dokunun";
+"MAMECheatCodeDesc"="MAME çekirdeği yerleşik hile kodları içerir. Oyun sırasında COIN + Y tuşlarına basarak MAME menüsünü açın ve ardından yapılandırmak için Cheat Options'ı seçin.";
+"FBNeoNoCheats"="Bu oyun için hile kodu mevcut değil";
+"FBNeoCheatCodeDesc"="FinalBurn Neo çekirdeği kullanılırken hile kodları yalnızca oyun sırasında etkinleştirilebilir.";
+"FilterTitle"="Filtre";
+"EnableManufacturerFilter"="Üretici Filtresini Etkinleştir";
+"MAMEFileMissingTitle"="Eksik Oyun Dosyaları";
+"MAMEFileMissingDesc"="Bu oyun, çalıştırmak için ana veya BIOS dosyalarına ihtiyaç duyan bölünmüş bir ROM setine ait olabilir. Lütfen eksik dosyaları içe aktarın veya bunun yerine birleştirilmemiş ROM kullanın.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
index 45356535..82ecf68a 100644
--- a/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
@@ -763,4 +763,27 @@
"EnableTriggerPro" = "Увімкнути TriggerPro";
"DisableTriggerPro" = "Вимкнути TriggerPro";
"ActivateHold" = "Активувати утримання: %@";
-"DeactivateHold" = "Скасувати утримання: %@";
\ No newline at end of file
+"DeactivateHold" = "Скасувати утримання: %@";
+"NoGamesForManufacturer"="Немає доступних ігор для цього виробника";
+"iCloudNotEnable"="iCloud не увімкнено";
+"iCloudSyncing"="Синхронізація iCloud";
+"iCloudSynced"="iCloud синхронізовано";
+"JITNotAllow"="JIT недоступний";
+"JITAllow"="JIT доступний";
+"iCloudUsage"="Використання iCloud";
+"Usage"="Використання";
+"iCloudDesc"="Увімкнення синхронізації та резервного копіювання iCloud зберігає ваші ігри, скіни та збереження синхронізованими між пристроями. Навіть якщо ви видалите та перевстановите додаток, ваші дані будуть негайно відновлені.";
+"Device"="Пристрій";
+"InstallSource"="Джерело встановлення";
+"System"="Система";
+"Memory"="Пам'ять";
+"InstallSideloadVersion"="Встановити sideload-версію";
+"JITDesc"="JIT (Just-In-Time компіляція) — це динамічна техніка компіляції, яка покращує продуктивність під час виконання шляхом компіляції коду під час виконання замість заздалегідь (AOT). Вона перетворює проміжний код, такий як bytecode, у рідний машинний код, використовуючи інформацію в реальному часі для оптимізації.";
+"MAMEBiosDesc"="MAME BIOS включає різні необхідні файли. Торкніться для перегляду деталей";
+"MAMECheatCodeDesc"="Ядро MAME включає вбудовані чіт-коди. Під час гри відкрийте меню MAME, натиснувши COIN + Y, потім виберіть Cheat Options для їх налаштування.";
+"FBNeoNoCheats"="Немає чіт-кодів для цієї гри";
+"FBNeoCheatCodeDesc"="Під час використання ядра FinalBurn Neo чіт-коди можна активувати лише під час гри.";
+"FilterTitle"="Фільтр";
+"EnableManufacturerFilter"="Увімкнути фільтр виробника";
+"MAMEFileMissingTitle"="Відсутні файли гри";
+"MAMEFileMissingDesc"="Ця гра може належати до розділеного набору ROM, для запуску якого потрібні його батьківські або BIOS файли. Будь ласка, імпортуйте відсутні файли або використовуйте non-merged ROM.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
index 183cbcf6..9b4c39c0 100644
--- a/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
@@ -757,4 +757,27 @@ Nhấn nút điều khiển...";
"EnableTriggerPro" = "Bật TriggerPro";
"DisableTriggerPro" = "Tắt TriggerPro";
"ActivateHold" = "Kích hoạt giữ: %@";
-"DeactivateHold" = "Hủy giữ: %@";
\ No newline at end of file
+"DeactivateHold" = "Hủy giữ: %@";
+"NoGamesForManufacturer"="Không có trò chơi nào cho nhà sản xuất này";
+"iCloudNotEnable"="iCloud Chưa Bật";
+"iCloudSyncing"="Đang Đồng bộ iCloud";
+"iCloudSynced"="Đã Đồng bộ iCloud";
+"JITNotAllow"="JIT Không Khả dụng";
+"JITAllow"="JIT Khả dụng";
+"iCloudUsage"="Mức sử dụng iCloud";
+"Usage"="Mức sử dụng";
+"iCloudDesc"="Bật đồng bộ và sao lưu iCloud giữ cho trò chơi, skin và dữ liệu lưu của bạn được đồng bộ giữa các thiết bị. Ngay cả khi bạn xóa và cài đặt lại ứng dụng, dữ liệu của bạn sẽ được khôi phục ngay lập tức.";
+"Device"="Thiết bị";
+"InstallSource"="Nguồn cài đặt";
+"System"="Hệ thống";
+"Memory"="Bộ nhớ";
+"InstallSideloadVersion"="Cài đặt phiên bản Sideload";
+"JITDesc"="JIT (Biên dịch Just-In-Time) là kỹ thuật biên dịch động cải thiện hiệu suất thời gian chạy bằng cách biên dịch mã trong quá trình thực thi thay vì trước (AOT). Nó chuyển đổi mã trung gian, như bytecode, thành mã máy gốc bằng cách sử dụng thông tin thời gian thực để tối ưu hóa.";
+"MAMEBiosDesc"="MAME BIOS bao gồm nhiều tệp cần thiết. Chạm để xem chi tiết";
+"MAMECheatCodeDesc"="Lõi MAME bao gồm mã cheat tích hợp. Trong khi chơi, mở menu MAME bằng cách nhấn COIN + Y, sau đó chọn Cheat Options để cấu hình chúng.";
+"FBNeoNoCheats"="Không có mã cheat cho trò chơi này";
+"FBNeoCheatCodeDesc"="Khi sử dụng lõi FinalBurn Neo, mã cheat chỉ có thể được kích hoạt trong khi chơi.";
+"FilterTitle"="Bộ lọc";
+"EnableManufacturerFilter"="Bật bộ lọc nhà sản xuất";
+"MAMEFileMissingTitle"="Thiếu tệp trò chơi";
+"MAMEFileMissingDesc"="Trò chơi này có thể thuộc bộ ROM tách, cần tệp gốc hoặc tệp BIOS để chạy. Vui lòng nhập các tệp còn thiếu hoặc sử dụng ROM không hợp nhất thay thế.";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
index 740e5062..85194a88 100644
--- a/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
@@ -769,4 +769,27 @@
"EnableTriggerPro" = "啟用TriggerPro";
"DisableTriggerPro" = "停用TriggerPro";
"ActivateHold" = "啟動長按:%@";
-"DeactivateHold" = "取消長按:%@";
\ No newline at end of file
+"DeactivateHold" = "取消長按:%@";
+"NoGamesForManufacturer"="該廠商暫無可用遊戲";
+"iCloudNotEnable"="iCloud 未啟用";
+"iCloudSyncing"="iCloud 同步中";
+"iCloudSynced"="iCloud 已同步";
+"JITNotAllow"="JIT 不可用";
+"JITAllow"="JIT 可用";
+"iCloudUsage"="iCloud 用量";
+"Usage"="用量";
+"iCloudDesc"="啟用 iCloud 同步與備份後,您的遊戲、皮膚與存檔將在多裝置間保持一致。即使刪除並重新安裝應用程式,也會立即恢復當前數據。";
+"Device"="裝置";
+"InstallSource"="安裝來源";
+"System"="系統";
+"Memory"="記憶體";
+"InstallSideloadVersion"="安裝側載版本";
+"JITDesc"="JIT(即時編譯)是一種動態編譯技術,通過在程式運行過程中對代碼進行編譯,提高執行效率。與預先編譯(AOT)不同,JIT 會將中間代碼(如字節碼)在運行時轉換為本機機器碼,並利用實時信息進行優化,從而提升性能。";
+"MAMEBiosDesc"="MAME BIOS 由多個檔案組成,點擊查看詳情";
+"MAMECheatCodeDesc"="MAME 核心已集成金手指。在遊戲中同時按下 COIN + Y 進入 MAME 選單,然後選擇 Cheat Options 進行設定。";
+"FBNeoNoCheats"="當前遊戲暫無金手指";
+"FBNeoCheatCodeDesc"="使用 FinalBurn Neo 核心時,金手指只能在遊戲運行過程中啟動。";
+"FilterTitle"="篩選";
+"EnableManufacturerFilter"="啟用廠商篩選";
+"MAMEFileMissingTitle"="遊戲檔案缺失";
+"MAMEFileMissingDesc"="當前遊戲可能屬於 Split 類型的 ROM 集,需要依賴 Parent 或 BIOS 檔案才能運行。請匯入缺失檔案,或使用 non-merged 類型的 ROM。";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
index 9a8a6747..41407ed8 100644
--- a/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
@@ -775,3 +775,26 @@
"ActivateHold" = "启动长按:%@";
"DeactivateHold" = "取消长按:%@";
+"NoGamesForManufacturer" = "该厂商下暂无可用游戏";
+"iCloudNotEnable" = "iCloud 未启用";
+"iCloudSyncing" = "iCloud 同步中";
+"iCloudSynced" = "iCloud 已同步";
+"JITNotAllow" = "JIT 不可用";
+"JITAllow" = "JIT 可用";
+"iCloudUsage" = "iCloud 用量";
+"Usage" = "用量";
+"iCloudDesc" = "启用 iCloud 同步与备份后,您的游戏、皮肤与存档将在多设备间保持一致。即使删除并重新安装应用,也会立即恢复当前数据。";
+"Device" = "设备";
+"InstallSource" = "安装来源";
+"System" = "系统";
+"Memory" = "内存";
+"InstallSideloadVersion" = "安装侧载版本";
+"JITDesc" = "JIT(即时编译)是一种动态编译技术,通过在程序运行过程中对代码进行编译,提高执行效率。与预先编译(AOT)不同,JIT 会将中间代码(如字节码)在运行时转换为本机机器码,并利用实时信息进行优化,从而提升性能。";
+"MAMEBiosDesc" = "MAME BIOS 由多个文件组成,点击查看详情";
+"MAMECheatCodeDesc" = "MAME 核心已集成金手指。在游戏中同时按下 COIN + Y 进入 MAME 菜单,然后选择 Cheat Options 进行设置。";
+"FBNeoNoCheats" = "当前游戏暂无金手指。";
+"FBNeoCheatCodeDesc" = "使用 FinalBurn Neo 核心时,金手指只能在游戏运行过程中激活。";
+"FilterTitle" = "筛选";
+"EnableManufacturerFilter" = "启用厂商筛选";
+"MAMEFileMissingTitle" = "游戏文件缺失";
+"MAMEFileMissingDesc" = "当前游戏可能属于 Split 类型的 ROM 集,需要依赖 Parent 或 BIOS 文件才能运行。请导入缺失文件,或使用 non-merged 类型的 ROM。";
diff --git a/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
index 8b6463ae..fd8e0a48 100644
--- a/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
@@ -769,4 +769,27 @@
"EnableTriggerPro" = "啟用TriggerPro";
"DisableTriggerPro" = "停用TriggerPro";
"ActivateHold" = "啟動長按:%@";
-"DeactivateHold" = "取消長按:%@";
\ No newline at end of file
+"DeactivateHold" = "取消長按:%@";
+"NoGamesForManufacturer"="該廠商暫無可用遊戲";
+"iCloudNotEnable"="iCloud 未啟用";
+"iCloudSyncing"="iCloud 同步中";
+"iCloudSynced"="iCloud 已同步";
+"JITNotAllow"="JIT 不可用";
+"JITAllow"="JIT 可用";
+"iCloudUsage"="iCloud 用量";
+"Usage"="用量";
+"iCloudDesc"="啟用 iCloud 同步與備份後,您的遊戲、皮膚與存檔將在多裝置間保持一致。即使刪除並重新安裝應用程式,也會立即恢復當前資料。";
+"Device"="裝置";
+"InstallSource"="安裝來源";
+"System"="系統";
+"Memory"="記憶體";
+"InstallSideloadVersion"="安裝側載版本";
+"JITDesc"="JIT(即時編譯)是一種動態編譯技術,透過在程式執行過程中對程式碼進行編譯,提高執行效率。與預先編譯(AOT)不同,JIT 會將中間程式碼(如位元組碼)在執行時轉換為本機機器碼,並利用即時資訊進行優化,從而提升效能。";
+"MAMEBiosDesc"="MAME BIOS 包含多個必要檔案。點擊查看詳情";
+"MAMECheatCodeDesc"="MAME 核心已內建金手指。在遊戲中同時按下 COIN + Y 開啟 MAME 選單,然後選擇 Cheat Options 進行設定。";
+"FBNeoNoCheats"="此遊戲暫無金手指";
+"FBNeoCheatCodeDesc"="使用 FinalBurn Neo 核心時,金手指只能在遊戲執行過程中啟動。";
+"FilterTitle"="篩選";
+"EnableManufacturerFilter"="啟用廠商篩選";
+"MAMEFileMissingTitle"="遊戲檔案遺失";
+"MAMEFileMissingDesc"="此遊戲可能屬於分割 ROM 集,需要其父 ROM 或 BIOS 檔案才能執行。請匯入遺失的檔案,或改用非合併 ROM。";
\ No newline at end of file
diff --git a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
index fc3160d3..6bd099f6 100644
--- a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
@@ -39,9 +39,6 @@ class ApplicationSceneDelegate: UIResponder, UIWindowSceneDelegate {
self.scene(scene, openURLContexts: connectionOptions.urlContexts)
}
- //设置控制器死区配置
- ExternalGameControllerUtils.shared.deadZone = Settings.defalut.getExtraFloat(key: ExtraKey.deadZone.rawValue) ?? 0
-
//设置RetroAchievement
CheevosBridge.setup(with: Constants.Config.AppVersion, requireCredentials: {
if let user = AchievementsUser.getUser() {
diff --git a/ManicEmu/ManicEmu/Sources/Base/Constants.swift b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
index 42a2dd82..b52e24f8 100644
--- a/ManicEmu/ManicEmu/Sources/Base/Constants.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
@@ -94,6 +94,7 @@ struct Constants {
case .ss: return 0.638
case .n64: return 1.369
case .mcd: return (Locale.prefersUS ? 0.5864 : 1.1)
+ case .arcade: return 0.731
default: return 1.0
}
case .style2:
@@ -135,6 +136,10 @@ struct Constants {
static var GamesHideTitle = false
static var GamesHideGroupTitle = false
static var GamesGroupTitleStyle: GroupTitleStyle = .abbr
+ static var GamesToolViewHeight: CGFloat {
+ let enableFilter = Theme.defalut.getExtraBool(key: ExtraKey.enableManufacturerFilter.rawValue) ?? false
+ return Constants.Size.ItemHeightHuge + (enableFilter ? Constants.Size.ItemHeightUltraTiny + Constants.Size.ContentSpaceMid : 0)
+ }
}
struct Color {
@@ -154,6 +159,11 @@ struct Constants {
light: .black.withAlphaComponent(0.05),
dark: .white.withAlphaComponent(0.05))
+ //侧边栏
+ static let SideList = UIColor(.dm,
+ light: UIColor(hexString: "#F7F8FC")!,
+ dark: UIColor(hexString: "#17171D")!)
+
//背景
static let Background = UIColor(.dm,
light: UIColor(hexString: "#F1F4FE")!,
@@ -277,8 +287,10 @@ struct Constants {
static let ThreeDS = Document.appendingPathComponent("3DS")
static let ThreeDSSystemData = ThreeDS.appendingPathComponent("sysdata")
static let ThreeDSStateLoad = ThreeDS.appendingPathComponent("states")
- static let ThreeDSConfig = ThreeDS.appendingPathComponent("config/config.ini")
- static let ThreeDSDefaultConfig = Resource.appendingPathComponent("3DS.ini")
+ static let CitraConfig = ThreeDS.appendingPathComponent("config/config.ini")
+ static let CitraDefaultConfig = Resource.appendingPathComponent("3DS.ini")
+ static let AzaharConfig = Libretro.appendingPathComponent("config/Azahar/Azahar.opt")
+ static let AzaharDefaultConfig = Resource.appendingPathComponent("Azahar.opt")
static let BoxArtsCache = Cache.appendingPathComponent("BoxArtsCache")
static let Libretro = Library.appendingPathComponent("Libretro")
static func PSPCheat(gameCode: String) -> String { Document.appendingPathComponent("PPSSPP/PSP/Cheats/\(gameCode).ini") }
@@ -304,8 +316,10 @@ struct Constants {
static let BeetlePSXHW = Document.appendingPathComponent(LibretroCore.Cores.BeetlePSXHW.name)
static let Flycast = Document.appendingPathComponent(LibretroCore.Cores.Flycast.name)
static let bsnes = Document.appendingPathComponent(LibretroCore.Cores.bsnes.name)
+ static let MAME = Document.appendingPathComponent(LibretroCore.Cores.MAME.name)
static let LibretroSavePath = Document
static let GamesDB = Resource.appendingPathComponent("Games.db")
+ static let MAMEDB = Resource.appendingPathComponent("MAME.db")
static let Assets = Document.appendingPathComponent("Assets")
static var GameListBackground: String = {
var backgroundImageName = ""
@@ -410,6 +424,7 @@ struct Constants {
static var PSXController = "PlayStation Controller"
static var PSXDualShock = "DualShock"
static var ThreeDSHomeMenuRegions = ["JPN", "USA", "EUR", "CHN", "KOR", "TWN"]
+ static let MAMEBiosTitle = "MAME BIOS"
}
enum Config {
@@ -435,7 +450,7 @@ struct Constants {
/// 游戏截图发大倍数
static let GameSnapshotScaleRatio = 5.0
/// 自动存档间隔 秒
- static let AutoSaveGameDuration = 60
+ static let AutoSaveGameDuration = 120
/// 自动存档最大个数
static var AutoSaveGameCount: Int {
PurchaseManager.isMember ? 50 : 3
@@ -447,7 +462,7 @@ struct Constants {
///非会员最大金手指数量
static let NonMemberCheatCodeCount = 3
///非会员最大TriggerPro数量
- static let NonMemberTriggerProCount = 3
+ static let NonMemberTriggerProCount = 10
/// 动画执行时间
static let LongAnimationDuration = 1.0
///主题颜色最大数量
@@ -499,6 +514,12 @@ struct Constants {
static let TurnOffAlwaysShowProgress = NSNotification.Name(rawValue: "TurnOffAlwaysShowProgress")
//游戏库背景变更
static let GameListBackgroundChange = NSNotification.Name(rawValue: "GameListBackgroundChange")
+ //iCloud同步状态变更
+ static let iCloudDriveSyncChange = NSNotification.Name(rawValue: "iCloudDriveSyncChange")
+ //iCloud开关变更
+ static let iCloudEnableChange = NSNotification.Name(rawValue: "iCloudEnableChange")
+ //厂商分类变更通知
+ static let ManufacturerFilterChange = NSNotification.Name(rawValue: "ManufacturerFilterChange")
}
struct URLs {
@@ -530,6 +551,9 @@ struct Constants {
static var AirPlayUsageGuide: URL {
Locale.prefersCN ? URL(string: ManicEMU + "AirPlay-Usage-Guide-CN")! : URL(string: ManicEMU + "AirPlay-Usage-Guide-EN")!
}
+ static func manufacturer(_ manufacturer: Manufacturer) -> URL {
+ return URL(string: ManicEMU + "Manufacturer-" + manufacturer.title + "-EN")!
+ }
static var JoinQQ: URL {
URL(string: "https://pd.qq.com/s/7i1g6jf5k")!
}
@@ -579,6 +603,8 @@ struct Constants {
static let Retro = URL(string: "https://retroachievements.org")!
static let MobyGames = URL(string: "https://www.mobygames.com")!
static let RomPatcher = URL(string: "https://www.marcrobledo.com/RomPatcher.js")!
+ static let InstallSideload = URL(string: "sidestore://source?url=apps.manicemu.site/altstore")!
+ static let SideStore = URL(string: "https://sidestore.io")!
}
struct BIOS {
@@ -641,6 +667,92 @@ struct Constants {
static let ThreeDSBios = [
BIOSItem(fileName: "nand.zip", imported: false, desc: "The internal storage of 3DS ", required: false)
]
-
+
+ static let ArcadeDSBios = [
+ BIOSItem(fileName: Strings.MAMEBiosTitle, imported: false, desc: R.string.localizable.mameBiosDesc(), required: false)
+ ]
+
+ static var MAMEBiosMap: [String: String] {
+ ["3dobios.zip" : "3DO BIOS",
+ "airlbios.zip" : "NAOMI Airline Pilots (deluxe) BIOS",
+ "aleck64.zip" : "Aleck64 PIF BIOS",
+ "alg3do.zip" : "ALG 3DO BIOS",
+ "alg_bios.zip" : "American Laser Games BIOS",
+ "allied.zip" : "Allied System",
+ "ar_bios.zip" : "Arcadia System BIOS",
+ "aristmk5.zip" : "MKV Set-Clear Chips (US)",
+ "aristmk6.zip" : "MK6 System Software-Setchips",
+ "aristmk7.zip" : "Aristocrat MK-7 BIOS",
+ "atarisy1.zip" : "Atari System 1 BIOS",
+ "awbios.zip" : "Atomiswave BIOS",
+ "bubsys.zip" : "Bubble System BIOS",
+ "cdibios.zip" : "CD-i (Mono-I) (PAL) BIOS",
+ "cedmag.zip" : "Magnet System",
+ "chihiro.zip" : "Chihiro BIOS",
+ "coh1000a.zip" : "Acclaim ZN-1",
+ "coh1000c.zip" : "Capcom ZN-1",
+ "coh1000t.zip" : "Taito FX-1",
+ "coh1000w.zip" : "Time Warner ZN-1",
+ "coh1001l.zip" : "Atlus ZN-1",
+ "coh1002e.zip" : "Eighting - Raizing ZN-1",
+ "coh1002m.zip" : "Tecmo TPS System",
+ "coh1002t.zip" : "Taito G NET (COH-1002T)",
+ "coh1002v.zip" : "Video System ZN-1",
+ "coh3002c.zip" : "Capcom ZN-2",
+ "coh3002t.zip" : "Taito G NET (COH-3002T)",
+ "crysbios.zip" : "Crystal System BIOS",
+ "cubo.zip" : "Cubo BIOS",
+ "decocass.zip" : "DECO Cassette System",
+ "f355bios.zip" : "NAOMI Ferrari F355 Challenge (twin-deluxe) BIOS",
+ "f355dlx.zip" : "NAOMI Ferrari F355 Challenge (deluxe) BIOS",
+ "galgbios.zip" : "Galaxy Games BIOS",
+ "genpin.zip" : "genpin",
+ "gp_110.zip" : "Model 110",
+ "gq863.zip" : "Twinkle System",
+ "gts1.zip" : "System 1",
+ "hikaru.zip" : "Hikaru BIOS",
+ "hng64.zip" : "Hyper NeoGeo 64 BIOS",
+ "hod2bios.zip" : "NAOMI The House of the Dead 2 BIOS",
+ "isgsm.zip" : "ISG Selection Master Type 2006 BIOS",
+ "iteagle.zip" : "Eagle BIOS",
+ "konamigv.zip" : "Baby Phoenix-GV System",
+ "konamigx.zip" : "System GX",
+ "konendev.zip" : "Konami Endeavour BIOS",
+ "kpython.zip" : "Konami Python BIOS",
+ "kpython2.zip" : "Konami Python 2 BIOS",
+ "kviper.zip" : "Konami Viper BIOS",
+ "lindbios.zip" : "Sega Lindbergh BIOS",
+ "mac2bios.zip" : "Multi Amenity Cassette System 2 BIOS",
+ "macsbios.zip" : "Multi Amenity Cassette System BIOS",
+ "maxaflex.zip" : "Max-A-Flex",
+ "megaplay.zip" : "Mega Play BIOS",
+ "megatech.zip" : "Mega-Tech",
+ "miuchiz.zip" : "Miuchiz Virtual Companions common BIOS",
+ "naomi.zip" : "NAOMI BIOS",
+ "naomi2.zip" : "NAOMI 2 BIOS",
+ "naomigd.zip" : "NAOMI GD-ROM BIOS",
+ "neogeo.zip" : "Neo-Geo MV-6F",
+ "nichidvd.zip" : "Nichibutsu High Rate DVD BIOS",
+ "nss.zip" : "Nintendo Super System BIOS",
+ "pgm.zip" : "PGM (Polygame Master) System BIOS",
+ "playch10.zip" : "PlayChoice-10 BIOS",
+ "pumpitup.zip" : "Pump It Up BIOS",
+ "recel.zip" : "Recel BIOS",
+ "sammymdl.zip" : "Sammy Medal Game System BIOS",
+ "segasp.zip" : "Sega System SP (Spider) BIOS",
+ "sfcbox.zip" : "Super Famicom Box BIOS",
+ "shtzone.zip" : "Shooting Zone System BIOS",
+ "skns.zip" : "Super Kaneko Nova System BIOS",
+ "stvbios.zip" : "ST-V BIOS",
+ "su2000.zip" : "SU2000",
+ "sys246.zip" : "System 246 BIOS",
+ "sys256.zip" : "System 256 BIOS",
+ "sys573.zip" : "System 573 BIOS",
+ "systemy2.zip" : "System Board Y2",
+ "taitotz.zip" : "Type Zero BIOS",
+ "tourvis.zip" : "TourVisión (PC Engine bootleg)",
+ "triforce.zip" : "Triforce BIOS",
+ "v4bios.zip" : "MPU4 Video Firmware"]
+ }
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Base/ExternalSceneDelegate.swift b/ManicEmu/ManicEmu/Sources/Base/ExternalSceneDelegate.swift
index 73770499..552e25ae 100644
--- a/ManicEmu/ManicEmu/Sources/Base/ExternalSceneDelegate.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/ExternalSceneDelegate.swift
@@ -76,7 +76,7 @@ class ExternalSceneDelegate: UIResponder, UIWindowSceneDelegate {
}
private func updateScene() {
- if PurchaseManager.isMember, Settings.defalut.airPlay, PlayViewController.isGaming, PlayViewController.playingGameType != ._3ds {
+ if PurchaseManager.isMember, Settings.defalut.airPlay, PlayViewController.isGaming, PlayViewController.enableAirplay {
//开启了airPlay的全屏模式
window?.isHidden = false
} else {
diff --git a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeBlankSlateView.swift b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeBlankSlateView.swift
index d6a3ec38..30d6c1cb 100644
--- a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeBlankSlateView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeBlankSlateView.swift
@@ -79,3 +79,43 @@ class CheatCodeBlankSlateView: BaseView {
}
}
+
+
+class FBNeoBlankSlateView: BaseView {
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ Log.debug("\(String(describing: Self.self)) init")
+ let containerView = UIView()
+ addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ }
+
+ let iconImageView = UIImageView(image: R.image.cheatcode_empty_icon())
+ iconImageView.contentMode = .center
+ containerView.addSubview(iconImageView)
+ iconImageView.snp.makeConstraints { make in
+ make.top.centerX.equalToSuperview()
+ make.size.equalTo(100)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ titleLabel.font = Constants.Font.title(size: .s, weight: .semibold)
+ titleLabel.text = R.string.localizable.fbNeoNoCheats()
+ containerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerX.bottom.equalToSuperview()
+ make.top.equalTo(iconImageView.snp.bottom).offset(Constants.Size.ContentSpaceHuge)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift
new file mode 100644
index 00000000..6d0664c5
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift
@@ -0,0 +1,189 @@
+//
+// FBNeoCheatCodeListView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/20.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+import ProHUD
+
+class FBNeoCheatCodeListView: BaseView {
+ /// 充当导航条
+ private var navigationBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ self.didTapClose?()
+ }
+ return view
+ }()
+
+ private lazy var tableView: UITableView = {
+ let view = BlankSlateTableView()
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.delegate = self
+ view.dataSource = self
+ view.separatorStyle = .none
+ view.showsVerticalScrollIndicator = false
+ view.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: Constants.Size.ContentInsetBottom, right: 0)
+ view.register(cellWithClass: CheatCodeCollectionViewCell.self)
+ view.blankSlateView = FBNeoBlankSlateView()
+ return view
+ }()
+
+ ///游戏
+ private var gameCheats: [GameCheat]
+
+ var didTapClose: (()->Void)? = nil
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ init(game: Game) {
+ if let configs = LibretroCore.sharedInstance().getConfigs(LibretroCore.Cores.FinalBurnNeo.name),
+ PlayViewController.isGaming {
+
+ var tuples = [(key: String, enable: Bool, name: String)]()
+ configs.enumerateLines { line, stop in
+ if line.hasPrefix("fbneo-cheat-") {
+ let parts = line.split(separator: "=", maxSplits: 1).map { $0.trimmingCharacters(in: .whitespaces) }
+ if parts.count == 2 {
+ let key = parts[0]
+ let value = parts[1].trimmingCharacters(in: CharacterSet(charactersIn: "\""))
+ let keyComponents = key.split(separator: "-")
+ if keyComponents.count >= 4 {
+ tuples.append((key: key, enable: value != "0 - Disabled", name: String(keyComponents[4])))
+ }
+ }
+ }
+ }
+
+ self.gameCheats = tuples.map({
+ let cheatCode = GameCheat()
+ cheatCode.name = $0.name
+ cheatCode.code = $0.key
+ cheatCode.activate = $0.enable
+ return cheatCode
+ })
+ } else {
+ self.gameCheats = []
+ }
+
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+
+ addSubview(tableView)
+ tableView.snp.makeConstraints { make in
+ make.leading.bottom.trailing.equalToSuperview()
+ make.top.equalToSuperview().offset(Constants.Size.ItemHeightMid)
+ }
+
+ addSubview(navigationBlurView)
+ navigationBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.font = Constants.Font.title(size: .s)
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ titleLabel.text = R.string.localizable.gamesCheatCode()
+ navigationBlurView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ }
+
+ navigationBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+}
+
+extension FBNeoCheatCodeListView: UITableViewDataSource, UITableViewDelegate {
+ func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
+ gameCheats.count
+ }
+
+ func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
+ let cheatCode = gameCheats[indexPath.row]
+ let cell = tableView.dequeueReusableCell(withClass: CheatCodeCollectionViewCell.self)
+ cell.setData(cheatCode: cheatCode)
+ cell.switchButton.onChange { value in
+ LibretroCore.sharedInstance().updateFBNeoCheatCode([cheatCode.code], enable: value)
+ }
+ return cell
+ }
+
+ func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
+ return 70
+ }
+}
+
+extension FBNeoCheatCodeListView {
+ static var isShow: Bool {
+ Sheet.find(identifier: String(describing: FBNeoCheatCodeListView.self)).count > 0 ? true : false
+ }
+
+ static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ Sheet.lazyPush(identifier: String(describing: FBNeoCheatCodeListView.self)) { sheet in
+ sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+
+ let view = UIView()
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ containerView.backgroundColor = Constants.Color.Background
+ view.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ if let maxHeight = sheet.config.cardMaxHeight {
+ make.height.equalTo(maxHeight)
+ }
+ }
+ view.addPanGesture { [weak view, weak sheet] gesture in
+ guard let view = view, let sheet = sheet else { return }
+ let point = gesture.translation(in: gesture.view)
+ view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+ if gesture.state == .recognized {
+ let v = gesture.velocity(in: gesture.view)
+ if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+ // 达到移除的速度
+ sheet.pop()
+ }
+ UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+ view.transform = .identity
+ })
+ }
+ }
+
+ let listView = FBNeoCheatCodeListView(game: game)
+ listView.didTapClose = { [weak sheet] in
+ sheet?.pop()
+ didTapClose?()
+ }
+ containerView.addSubview(listView)
+ listView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ sheet.set(customView: view).snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
index b17456b1..38ba7c42 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
@@ -38,4 +38,5 @@ enum ExtraKey: String {
case triggerProID
case forceFullSkin
case recoverIcon
+ case enableManufacturerFilter
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Models/FileType.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Models/FileType.swift
index 546afed3..7edd23c8 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Models/FileType.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Models/FileType.swift
@@ -78,19 +78,24 @@ enum FileType {
return results
}
- static func humanReadableFileSize(_ sizeInBytes: UInt64) -> String? {
+ static func humanReadableFileSize(_ sizeInBytes: UInt64, numeralSystem: Double = 1024, decimalPlaces: Int = 2) -> String? {
let units = ["Bytes", "KB", "MB", "GB", "TB", "PB"]
var size = Double(sizeInBytes)
var unitIndex = 0
- while size >= 1024 && unitIndex < units.count - 1 {
- size /= 1024
+ while size >= numeralSystem && unitIndex < units.count - 1 {
+ size /= numeralSystem
unitIndex += 1
}
if size == 0 {
return nil
}
- return String(format: "%.2f %@", size, units[unitIndex])
+ if decimalPlaces == 0 {
+ return String(format: "%.0f %@", size, units[unitIndex])
+ } else {
+ return String(format: "%.\(decimalPlaces)f %@", size, units[unitIndex])
+ }
+
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Models/Manufacturer.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Models/Manufacturer.swift
new file mode 100644
index 00000000..f5b8a9e1
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Models/Manufacturer.swift
@@ -0,0 +1,56 @@
+//
+// Manufacturer.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/12.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import ManicEmuCore
+
+enum Manufacturer: Int, CaseIterable {
+ case nintendo, sony, sega, arcade
+
+ var title: String {
+ switch self {
+ case .nintendo:
+ "Nintendo"
+ case .sony:
+ "SONY"
+ case .sega:
+ "SEGA"
+ case .arcade:
+ "Arcade"
+ }
+ }
+
+ var gameTypes: [GameType] {
+ System.allCases.map({ $0.gameType }).filter({ $0.manufacturer == self })
+ }
+
+ var normalImage: UIImage {
+ switch self {
+ case .nintendo:
+ R.image.nintendo_normal()!
+ case .sony:
+ R.image.sony_normal()!
+ case .sega:
+ R.image.sega_normal()!
+ case .arcade:
+ R.image.arcade_normal()!
+ }
+ }
+
+ var highlightImage: UIImage {
+ switch self {
+ case .nintendo:
+ R.image.nintendo_highlight()!
+ case .sony:
+ R.image.sony_highlight()!
+ case .sega:
+ R.image.sega_highlight()!
+ case .arcade:
+ R.image.arcade_highlight()!
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Protocols/DynamicShadow.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Protocols/DynamicShadow.swift
new file mode 100644
index 00000000..efe771a2
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Protocols/DynamicShadow.swift
@@ -0,0 +1,21 @@
+//
+// DynamicShadow.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/18.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+protocol DynamicShadow {
+ func updateDynamicShadow(ofColor: UIColor, offset: CGSize, radius: CGFloat, opacity: Float)
+}
+
+extension DynamicShadow where Self: UIView {
+ func updateDynamicShadow(ofColor: UIColor = .black, offset: CGSize = CGSize(width: 0, height: 5), radius: CGFloat = 10, opacity: Float = 0.05) {
+ if traitCollection.userInterfaceStyle == .light {
+ self.makeShadow(ofColor: ofColor, offset: offset, opacity: opacity)
+ } else {
+ self.removeShadow()
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/IconView.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/IconView.swift
new file mode 100644
index 00000000..a6b91ed2
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/IconView.swift
@@ -0,0 +1,34 @@
+//
+// IconView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/18.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class IconView: UIView {
+ var image: UIImage? = nil {
+ didSet {
+ imageView.image = image
+ }
+ }
+
+ let imageView: UIImageView = {
+ let view = UIImageView()
+ view.contentMode = .center
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ masksToBounds = true
+ addSubview(imageView)
+ imageView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
index 7b74ba6c..0aa602a4 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
@@ -139,7 +139,6 @@ class SettingItemCollectionViewCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
func setData(item: SettingCellItem, editable: Bool = false, isPlus: Bool = false, enable: Bool = true, mappingMode: Bool = false, specialTitle: String? = nil) {
if item.title == R.string.localizable.gameSettingQuit() {
iconView.image = item.image.applySymbolConfig(color: Constants.Color.Red)
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SymbolButton.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SymbolButton.swift
index 2250bf94..9c2cb560 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SymbolButton.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SymbolButton.swift
@@ -277,8 +277,8 @@ class SymbolButton: UIView {
titleLabel.text = title
}
- convenience init(symbol: SFSymbol, symbolColor: UIColor = Constants.Color.LabelPrimary, enableGlass: Bool = false, cornerStyle: UIButton.Configuration.CornerStyle = .capsule) {
- self.init(image: .symbolImage(symbol).applySymbolConfig(color: symbolColor), enableGlass: enableGlass, cornerStyle: cornerStyle)
+ convenience init(symbol: SFSymbol, symbolFont: UIFont? = nil, symbolColor: UIColor = Constants.Color.LabelPrimary, enableGlass: Bool = false, cornerStyle: UIButton.Configuration.CornerStyle = .capsule) {
+ self.init(image: .symbolImage(symbol).applySymbolConfig(font: symbolFont, color: symbolColor), enableGlass: enableGlass, cornerStyle: cornerStyle)
}
init(image: UIImage?, enableGlass: Bool = false, cornerStyle: UIButton.Configuration.CornerStyle = .capsule) {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersCollectionViewCell.swift
index f357e38d..f7533576 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersCollectionViewCell.swift
@@ -47,7 +47,7 @@ class ControllersCollectionViewCell: UICollectionViewCell {
override init(frame: CGRect) {
super.init(frame: frame)
- backgroundColor = Constants.Color.Background
+ backgroundColor = Constants.Color.SideList
layerCornerRadius = Constants.Size.CornerRadiusMid
addSubviews([iconView, titleLabel, selectButton])
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift
index f5c1bab5..e2ce62d5 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift
@@ -81,13 +81,13 @@ class FilterSelectionView: BaseView {
super.init(frame: .zero)
Log.debug("\(String(describing: Self.self)) init")
- if !game.gameType.isLibretroType {
+ if !game.isLibretroType {
UIView.makeLoading()
}
- if game.gameType.isLibretroType {
+ if game.isLibretroType {
FilterManager.allLibretroPreviews(origin: self.snapshot, isGlsl: game.gameType == .n64 ? true : false) { [weak self] results in
- if !game.gameType.isLibretroType {
+ if !game.isLibretroType {
UIView.hideLoading()
}
@@ -152,7 +152,7 @@ class FilterSelectionView: BaseView {
guard let self = self else { return nil }
var group: NSCollectionLayoutGroup
- if self.game.gameType.isLibretroType {
+ if self.game.isLibretroType {
let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1)))
group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(50)), subitem: item, count: Int(1))
} else {
@@ -218,7 +218,7 @@ extension FilterSelectionView: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let filter = filters[indexPath.row]
- if game.gameType.isLibretroType {
+ if game.isLibretroType {
let cell = collectionView.dequeueReusableCell(withClass: FilterNameOnlyCollectionCell.self, for: indexPath)
cell.setData(title: filter.name)
return cell
@@ -252,7 +252,7 @@ extension FilterSelectionView: UICollectionViewDelegate {
if currentSelected is OriginFilter {
self.game.filterName = nil
} else {
- if self.game.gameType.isLibretroType {
+ if self.game.isLibretroType {
if let filter = currentSelected as? LibretroPreViewFilter {
if let shaderPath = filter.shaderPath, let range = shaderPath.range(of: "shaders/") {
self.game.filterName = String(shaderPath[range.upperBound...])
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
index b086a42f..a92ad5fc 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
@@ -14,7 +14,7 @@ import Kingfisher
class GameInfoCoverView: BaseView {
var maskTopView: UIView = {
let view = UIView()
- view.backgroundColor = Constants.Color.BackgroundPrimary
+ view.backgroundColor = Constants.Color.Background
view.alpha = 0
view.isUserInteractionEnabled = false
return view
@@ -29,7 +29,7 @@ class GameInfoCoverView: BaseView {
private var coverContainerView: UIView = {
let view = UIView()
view.layer.cornerRadius = Constants.Size.CornerRadiusMax
- view.makeShadow(ofColor: Constants.Color.BackgroundPrimary, radius: 30)
+ view.makeShadow(ofColor: Constants.Color.Background.forceStyle(.dark), radius: 30)
return view
}()
@@ -74,7 +74,7 @@ class GameInfoCoverView: BaseView {
init(game: Game) {
self.game = game
super.init(frame: .zero)
- backgroundColor = Constants.Color.BackgroundPrimary
+ backgroundColor = Constants.Color.Background
addSubview(backgroundGradientView)
backgroundGradientView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
index bc368642..c5e898d1 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
@@ -92,7 +92,8 @@ class GameInfoDetailReusableView: UICollectionReusableView {
view.addTapGesture { [weak self] gesture in
guard let self, let game else { return }
if !game.supportRetroAchievements {
- UIView.makeToast(message: R.string.localizable.achievementsNotSupport(game.gameType.localizedShortName))
+ let showName = game.gameType == .arcade ? LibretroCore.Cores.MAME.name : game.gameType.localizedShortName
+ UIView.makeToast(message: R.string.localizable.achievementsNotSupport(showName))
return
}
if let _ = AchievementsUser.getUser() {
@@ -137,6 +138,14 @@ class GameInfoDetailReusableView: UICollectionReusableView {
view.addTapGesture { [weak self] gesture in
guard let self = self else { return }
if let game = self.game {
+ if game.gameType == .arcade {
+ if game.defaultCore == 0 {
+ UIView.makeAlert(detail: R.string.localizable.mameCheatCodeDesc(), cancelTitle: R.string.localizable.confirmTitle())
+ } else if game.defaultCore == 1 {
+ UIView.makeToast(message: R.string.localizable.fbNeoCheatCodeDesc())
+ }
+ return
+ }
topViewController()?.present(CheatCodeViewController(game: game), animated: true)
}
}
@@ -197,7 +206,7 @@ class GameInfoDetailReusableView: UICollectionReusableView {
Settings.defalut.threeDSAdvancedSettingMode.toggle()
}
self.threeDSAdvancedModeButton.titleLabel.text = Settings.defalut.threeDSAdvancedSettingMode ? R.string.localizable.threeDSBasicSettingMode() : R.string.localizable.threeDSAdvanceSettingMode()
- self.update3DSFunctionButton()
+ self.updateCitra3DSFunctionButton()
self.addManualsButton()
}
return view
@@ -461,8 +470,13 @@ class GameInfoDetailReusableView: UICollectionReusableView {
private lazy var threeDSAdvancedSettingButton: SymbolButton = {
let view = SymbolButton(symbol: .gear, title: R.string.localizable.threeDSAdvanceSettingTitle(), horizontalContian: true)
view.titleLabel.numberOfLines = 0
- view.addTapGesture { gesture in
- topViewController()?.present(ThreeDSAdvancedSettingViewController(), animated: true)
+ view.addTapGesture { [weak self] gesture in
+ guard let self, let game else { return }
+ if game.defaultCore == 0 {
+ topViewController()?.present(CitraAdvancedSettingViewController(), animated: true)
+ } else {
+ topViewController()?.present(AzaharAdvancedSettingViewController(), animated: true)
+ }
}
view.isAccessibilityElement = true
view.accessibilityLabel = R.string.localizable.threeDSAdvanceSettingTitle()
@@ -925,12 +939,27 @@ class GameInfoDetailReusableView: UICollectionReusableView {
}
}
}))
+ actions.append((UIAction(title: "JITLess Ver: Fuse") { [weak self] _ in
+ guard let self = self else { return }
+ self.dcCoreButton.titleLabel.text = "JITLess Ver: Fuse"
+ if let game {
+ Game.change { _ in
+ game.defaultCore = 2
+ }
+ }
+ }))
let view = ContextMenuButton(image: nil, menu: UIMenu(title: R.string.localizable.dcjitLessVer(), children: actions))
return view
}()
private lazy var dcCoreButton: SymbolButton = {
- let ver = (game?.defaultCore ?? 0) == 0 ? "Default" : "WinCE"
+ var ver = "Default"
+ let defaultCore = (game?.defaultCore ?? 0)
+ if defaultCore == 1 {
+ ver = "WinCE"
+ } else if defaultCore == 2 {
+ ver = "Fuse"
+ }
let view = SymbolButton(symbol: .boltSlash, title: "JITLess Ver: \(ver)", horizontalContian: true)
view.titleLabel.numberOfLines = 0
view.addTapGesture { [weak self] gesture in
@@ -1140,7 +1169,11 @@ class GameInfoDetailReusableView: UICollectionReusableView {
if !hasSetupViews {
if game.gameType == ._3ds {
- update3DSFunctionButton()
+ if game.defaultCore == 0 {
+ updateCitra3DSFunctionButton()
+ } else {
+ updateAzahar3DSFunctionButton()
+ }
} else if game.gameType == .psp {
updatePSPFunctionButton()
} else if game.gameType == .ss {
@@ -1283,7 +1316,7 @@ class GameInfoDetailReusableView: UICollectionReusableView {
fatalError("init(coder:) has not been implemented")
}
- private func update3DSFunctionButton() {
+ private func updateCitra3DSFunctionButton() {
manualButton.removeFromSuperview()
threeDSAdvancedModeButton.removeFromSuperview()
jitContextMenuButton.removeFromSuperview()
@@ -1379,6 +1412,18 @@ class GameInfoDetailReusableView: UICollectionReusableView {
}
}
+ private func updateAzahar3DSFunctionButton() {
+ if let lastView = functionButtonContainerView.subviews.last {
+ functionButtonContainerView.addSubview(threeDSAdvancedSettingButton)
+ threeDSAdvancedSettingButton.snp.makeConstraints { make in
+ make.leading.equalTo(lastView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.IconSizeHuge)
+ make.trailing.equalToSuperview()
+ }
+ }
+ }
+
private func updatePSPFunctionButton() {
manualButton.removeFromSuperview()
languageContextMenuButton.removeFromSuperview()
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/SaveItemCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/SaveItemCollectionViewCell.swift
index 71b2d21d..413b4168 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/SaveItemCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/SaveItemCollectionViewCell.swift
@@ -157,7 +157,6 @@ class SaveItemCollectionViewCell: SwipeCollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
func setData(item: GameSaveState, index: Int) {
iconView.image = .tryDataImageOrPlaceholder(tryData: item.stateCover?.storedData(), preferenceSize: iconView.size)
titleLabel.text = R.string.localizable.gameSaveTitle(index)
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/AzaharAdvancedSettingViewController.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/AzaharAdvancedSettingViewController.swift
new file mode 100644
index 00000000..39adaa6a
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/AzaharAdvancedSettingViewController.swift
@@ -0,0 +1,281 @@
+//
+// AzaharAdvancedSettingViewController.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/21.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import UniformTypeIdentifiers
+
+class AzaharAdvancedSettingViewController: QuickTableViewController {
+
+ enum SettingType {
+ case none, `switch`, option
+ }
+
+ private lazy var currentConfig: [String: String] = { readConfig() }()
+
+ private var isModified = false
+
+ private var isFirstInit = true
+
+ private var navigationBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var moreContextMenuButton: ContextMenuButton = {
+ var actions: [UIMenuElement] = []
+ actions.append((UIAction(title: R.string.localizable.controllerMappingReset()) { [weak self] _ in
+ guard let self = self else { return }
+ //重置
+ self.isModified = false
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.AzaharDefaultConfig), to: URL(fileURLWithPath: Constants.Path.AzaharConfig), shouldReplace: true)
+ self.currentConfig = self.readConfig()
+ self.updateData()
+ }))
+ actions.append(UIAction(title: R.string.localizable.shareConfigButtonTitle()) { [weak self] _ in
+ guard let self = self else { return }
+ //分享配置
+ if self.isModified {
+ if FileManager.default.fileExists(atPath: Constants.Path.AzaharConfig) {
+ try? FileManager.default.removeItem(atPath: Constants.Path.AzaharConfig)
+ }
+ self.writeConfig()
+ self.isModified = false
+ }
+ ShareManager.shareFile(fileUrl: URL(fileURLWithPath: Constants.Path.AzaharConfig))
+ })
+ actions.append((UIAction(title: R.string.localizable.importConfigButtonTitle()) { [weak self] _ in
+ guard let self = self else { return }
+ //导入配置
+ FilesImporter.shared.presentImportController(supportedTypes: UTType.configTypes, allowsMultipleSelection: false) { [weak self] urls in
+ guard let self else { return }
+ if let url = urls.first {
+ do {
+ try FileManager.safeCopyItem(at: url, to: URL(fileURLWithPath: Constants.Path.AzaharConfig), shouldReplace: true)
+ self.currentConfig = self.readConfig()
+ self.updateData()
+ } catch {
+ UIView.makeToast(message: R.string.localizable.readConfigFileFailed())
+ }
+ }
+ }
+ }))
+ let view = ContextMenuButton(image: nil, menu: UIMenu(children: actions))
+ return view
+ }()
+
+ private lazy var moreButton: SymbolButton = {
+ let view = SymbolButton(symbol: .ellipsis, enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ self?.moreContextMenuButton.triggerTapGesture()
+ }
+ return view
+ }()
+
+ init() {
+ super.init(style: .insetGrouped)
+ }
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ self.updateData()
+
+ view.addSubview(navigationBlurView)
+ navigationBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ navigationBlurView.addSubview(moreContextMenuButton)
+ moreContextMenuButton.snp.makeConstraints { make in
+ make.leading.equalTo(Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ navigationBlurView.addSubview(moreButton)
+ moreButton.snp.makeConstraints { make in
+ make.edges.equalTo(moreContextMenuButton)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.text = R.string.localizable.threeDSAdvanceSettingTitle()
+ titleLabel.font = Constants.Font.title(size: .s)
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ navigationBlurView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ }
+
+ addCloseButton(makeConstraints: { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalTo(self.moreButton)
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ })
+ }
+
+ override func viewDidDisappear(_ animated: Bool) {
+ super.viewDidDisappear(animated)
+ if isModified {
+ writeConfig()
+ }
+ }
+
+ private func readConfig(useDefault: Bool = false) -> [String: String] {
+ var config: String?
+ if useDefault {
+ config = try? String(contentsOfFile: Constants.Path.AzaharDefaultConfig, encoding: .utf8)
+ } else {
+ if !FileManager.default.fileExists(atPath: Constants.Path.AzaharConfig) {
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.AzaharDefaultConfig), to: URL(fileURLWithPath: Constants.Path.AzaharConfig))
+ }
+ config = try? String(contentsOfFile: Constants.Path.AzaharConfig, encoding: .utf8)
+ }
+ if let config {
+ var result = [String: String]()
+ config.enumerateLines { line, stop in
+ let components = line.components(separatedBy: "=")
+ if components.count == 2 {
+ result[components[0].trimmed.replacingOccurrences(of: "citra_", with: "")] = components[1].trimmed.replacingOccurrences(of: "\"", with: "")
+ }
+ }
+ return result
+ }
+ return [:]
+ }
+
+ private func writeConfig() {
+ guard isModified else { return }
+ try? FileManager.safeRemoveItem(at: URL(fileURLWithPath: Constants.Path.AzaharConfig))
+ let configString = currentConfig.reduce("", { $0 + "citra_\($1.key) = \"\($1.value)\"\n" })
+ try? configString.write(toFile: Constants.Path.AzaharConfig, atomically: true, encoding: .utf8)
+ }
+
+ private func updateData() {
+ var results = [Section]()
+ for config in currentConfig {
+ let key = config.key
+ switch getType(key: key) {
+ case .switch:
+ let forDisable = (key == "use_cpu_jit" && !LibretroCore.jitAvailable()) ? true : false
+ let value = config.value == "enabled" ? true : false
+ let rows = [SwitchRow(text: key,
+ switchValue: forDisable ? false : value,
+ action: { [weak self] row in
+ guard let self else { return }
+ //开关操作
+ if let switchRow = row as? SwitchRow {
+ if switchRow.text == "use_cpu_jit", switchRow.switchValue, !LibretroCore.jitAvailable() {
+ UIView.makeToast(message: R.string.localizable.jitNoSupportDesc())
+ switchRow.switchValue = false
+ self.tableView.reloadData()
+ return
+ }
+ currentConfig[key] = switchRow.switchValue ? "enabled" : "disabled"
+ self.isModified = true
+ }
+ })]
+ let section = Section(title: nil, rows: rows, footer: self.getDesc(key: key))
+ results.append(section)
+
+ case .option:
+ var rows = [Row & RowStyle]()
+ let options = getOptions(key: key)
+ let defaultSelected = options.firstIndex(where: {
+ $0 == (key == "cpu_scale" ? config.value + "%" : config.value)
+ }) ?? 0
+ for (index, option) in options.enumerated() {
+ rows.append(OptionRow(text: option, isSelected: index == defaultSelected, action: { [weak self] row in
+ guard let self else { return }
+ //选择操作
+ if let optionRow = row as? OptionRow {
+ currentConfig[key] = optionRow.text.replacingOccurrences(of: "%", with: "")
+ self.isModified = true
+ }
+ }))
+ }
+ results.append(Section(title: key, rows: rows, footer: getDesc(key: key)))
+ case .none:
+ break
+ }
+ }
+
+ tableContents = results.sorted(by: {
+ let firstkey = $0.rows.count == 1 ? $0.rows.first?.text : $0.title
+ let secondKey = $1.rows.count == 1 ? $1.rows.first?.text : $1.title
+ if let firstkey, let secondKey, let firstIndex = sortKeys.firstIndex(of: firstkey), let secondIndex = sortKeys.firstIndex(of: secondKey) {
+ return firstIndex < secondIndex
+ } else {
+ return true
+ }
+ })
+
+ if isFirstInit {
+ isFirstInit = false
+ DispatchQueue.main.asyncAfter(delay: 0.35) {
+ var contentOffset = self.tableView.contentOffset
+ contentOffset.y = -Constants.Size.ItemHeightMid
+ self.tableView.contentOffset = contentOffset
+ }
+ }
+ }
+
+ @MainActor required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ var configInfo: [(key: String, type: SettingType, options: [String], desc: String)] {
+ [
+ ("use_cpu_jit", .switch, [], "Enable Just-In-Time compilation for ARM CPU emulation.\nSignificantly improves performance but may reduce accuracy. ")
+
+ , ("cpu_scale", .option, ["25%", "50%", "75%", "100%", "125%", "150%", "175%", "200%", "225%", "250%", "275%", "300%", "325%", "350%", "375%", "400%"], "Adjust the emulated 3DS CPU clock speed as a percentage of normal speed.\nHigher values may improve performance in some games but can cause issues.\nLower values can help with games that run too fast.")
+
+ , ("is_new_3ds", .option, ["Old 3DS", "New 3DS"], "Select whether to emulate the original 3DS or New 3DS.\nNew 3DS has additional CPU power and memory, required for some games. ")
+
+ , ("region_value", .option, ["Auto", "Japan", "USA", "Europe", "Australia", "China", "Korea", "Taiwan"], "Set the 3DS system region_value. Auto-select will choose based on the game.\nSome games are region_value-locked and require matching region_values.")
+
+ , ("language", .option, ["English", "Japanese", "French", "Spanish", "German", "Italian", "Dutch", "Portuguese", "Russian", "Korean", "Traditional Chinese", "Simplified Chinese"], "Set the system language for the emulated 3DS.\nThis affects in-game text language when supported.")
+
+ , ("audio_emulation", .option, ["hle", "lle"], "Select audio emulation method. HLE is faster, LLE is more accurate.")
+
+ , ("use_hw_shaders", .switch, [], "Use GPU hardware to accelerate shader processing.\nSignificantly improves performance but may reduce accuracy.")
+
+ , ("use_shader_jit", .switch, [], "Use Just-In-Time compilation for shaders.\nImproves performance but may cause graphical issues in some games.")
+
+ , ("use_acc_mul", .switch, [], "Use accurate multiplication in shaders.\nMore accurate but can reduce performance. Only works with hardware shaders.")
+
+ , ("use_hw_shader_cache", .switch, [], "Save compiled shaders to disk to reduce loading times on subsequent runs.")
+
+ , ("texture_filter", .option, ["none", "Anime4K Ultrafast", "Bicubic", "ScaleForce", "xBRZ", "MMPX"], "Apply texture filtering to enhance visual quality.\nSome filters may significantly impact performance.")
+
+ , ("texture_sampling", .option, ["GameControlled", "NearestNeighbor", "Linear"], "Control how textures are sampled and filtered.")
+
+ , ("custom_textures", .switch, [], "Enable loading of custom texture packs to replace original game textures.")
+
+ , ("dump_textures", .switch, [], "Save original game textures to disk for creating custom texture packs.\nMay impact performance.")
+
+ , ("use_virtual_sd", .switch, [], "Enable virtual SD card support for homebrew and some commercial games.")
+ ]
+ }
+
+ var sortKeys: [String] { configInfo.map({ $0.key }) }
+
+ private func getType(key: String) -> SettingType {
+ configInfo.first(where: { $0.key == key })?.type ?? .none
+ }
+
+ private func getOptions(key: String) -> [String] {
+ configInfo.first(where: { $0.key == key })?.options ?? []
+ }
+
+ private func getDesc(key: String) -> String? {
+ configInfo.first(where: { $0.key == key })?.desc
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/ThreeDSAdvancedSettingViewController.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/CitraAdvancedSettingViewController.swift
similarity index 97%
rename from ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/ThreeDSAdvancedSettingViewController.swift
rename to ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/CitraAdvancedSettingViewController.swift
index 5b1d1bcd..6c226872 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/ThreeDSAdvancedSettingViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/ViewControllers/CitraAdvancedSettingViewController.swift
@@ -1,5 +1,5 @@
//
-// ThreeDSAdvancedSettingViewController.swift
+// CitraAdvancedSettingViewController.swift
// ManicEmu
//
// Created by Daiuno on 2025/6/26.
@@ -9,14 +9,14 @@
import UniformTypeIdentifiers
-class ThreeDSAdvancedSettingViewController: QuickTableViewController {
+class CitraAdvancedSettingViewController: QuickTableViewController {
enum SettingType {
case none, `switch`, option, action
}
- private var currentConfig = try? INIFile(fileName: Constants.Path.ThreeDSConfig)
- private let defaultConfig = try? INIFile(fileName: Constants.Path.ThreeDSDefaultConfig)
+ private var currentConfig = try? INIFile(fileName: Constants.Path.CitraConfig)
+ private let defaultConfig = try? INIFile(fileName: Constants.Path.CitraDefaultConfig)
private var isModified = false
private var navigationBlurView: UIView = {
@@ -31,8 +31,8 @@ class ThreeDSAdvancedSettingViewController: QuickTableViewController {
guard let self = self else { return }
//重置
self.isModified = false
- try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.ThreeDSDefaultConfig), to: URL(fileURLWithPath: Constants.Path.ThreeDSConfig), shouldReplace: true)
- self.currentConfig = try? INIFile(fileName: Constants.Path.ThreeDSConfig)
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.CitraDefaultConfig), to: URL(fileURLWithPath: Constants.Path.CitraConfig), shouldReplace: true)
+ self.currentConfig = try? INIFile(fileName: Constants.Path.CitraConfig)
self.updateData()
}))
actions.append(UIAction(title: R.string.localizable.shareConfigButtonTitle()) { [weak self] _ in
@@ -42,7 +42,7 @@ class ThreeDSAdvancedSettingViewController: QuickTableViewController {
try? self.currentConfig?.writeFile()
self.isModified = false
}
- ShareManager.shareFile(fileUrl: URL(fileURLWithPath: Constants.Path.ThreeDSConfig))
+ ShareManager.shareFile(fileUrl: URL(fileURLWithPath: Constants.Path.CitraConfig))
})
actions.append((UIAction(title: R.string.localizable.importConfigButtonTitle()) { [weak self] _ in
guard let self = self else { return }
@@ -51,8 +51,8 @@ class ThreeDSAdvancedSettingViewController: QuickTableViewController {
guard let self else { return }
if let url = urls.first {
do {
- try FileManager.safeCopyItem(at: url, to: URL(fileURLWithPath: Constants.Path.ThreeDSConfig), shouldReplace: true)
- self.currentConfig = try INIFile(fileName: Constants.Path.ThreeDSConfig)
+ try FileManager.safeCopyItem(at: url, to: URL(fileURLWithPath: Constants.Path.CitraConfig), shouldReplace: true)
+ self.currentConfig = try INIFile(fileName: Constants.Path.CitraConfig)
self.updateData()
} catch {
UIView.makeToast(message: R.string.localizable.readConfigFileFailed())
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/ViewControllers/GamesViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Games/ViewControllers/GamesViewController.swift
index 09f53321..2fc04672 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/ViewControllers/GamesViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/ViewControllers/GamesViewController.swift
@@ -78,6 +78,22 @@ class GamesViewController: BaseViewController {
view.didSearchTextResignFirstResponder = { [weak self] in
self?.gamesListView.collectionView.becomeFirstResponder()
}
+ view.manufacturerCategoryView.didManufacturerChange = { [weak self] manufacturer in
+ guard let self else { return false }
+ if let manufacturer, !self.gamesListView.isGameExist(for: manufacturer) {
+ UIView.makeToast(message: R.string.localizable.noGamesForManufacturer())
+ return false
+ }
+ self.gamesListView.filteredManufacturer = manufacturer
+ return (manufacturer == nil ? false : true)
+ }
+ view.didFilterVisibleChange = { [weak self] in
+ guard let self else { return }
+ self.gamesToolView.snp.updateConstraints { make in
+ make.height.equalTo(Constants.Size.GamesToolViewHeight)
+ }
+ self.gamesListView.updateFilterChange()
+ }
return view
}()
///游戏列表
@@ -266,6 +282,8 @@ class GamesViewController: BaseViewController {
} else if UIDevice.isPhone {
self.gamesToolView.stopSearch()
self.gamesToolView.stopSelect()
+ self.gamesToolView.stopFilterManufacturer()
+ self.gamesListView.filteredManufacturer = nil
coordinator.animate(alongsideTransition: nil) { [weak self] _ in
self?.hideSideMenu { [weak self] in
self?.updateViews()
@@ -297,7 +315,7 @@ class GamesViewController: BaseViewController {
gamesToolView.snp.makeConstraints { make in
make.top.equalTo(gamesNavigationView.snp.bottom)
make.leading.trailing.equalToSuperview()
- make.height.equalTo(Constants.Size.ItemHeightHuge)
+ make.height.equalTo(Constants.Size.GamesToolViewHeight)
}
@@ -350,7 +368,7 @@ class GamesViewController: BaseViewController {
gamesToolView.snp.makeConstraints { make in
make.top.equalTo(gamesNavigationView.snp.bottom)
make.leading.trailing.equalTo(gamesListView)
- make.height.equalTo(Constants.Size.ItemHeightHuge)
+ make.height.equalTo(Constants.Size.GamesToolViewHeight)
}
@@ -469,7 +487,7 @@ class GamesViewController: BaseViewController {
///更新顶部的模糊视图 如果编辑模式 则toolView不会隐藏 所以需要将blurView加大 反之则需要减小
private func updateTopBlurView() {
topBlurView.snp.updateConstraints { make in
- make.bottom.equalTo(self.gamesNavigationView).offset((gamesListView.isSelectionMode || gamesListView.isSearchMode) ? Constants.Size.ItemHeightHuge : 0)
+ make.bottom.equalTo(self.gamesNavigationView).offset((gamesListView.isSelectionMode || gamesListView.isSearchMode) ? Constants.Size.GamesToolViewHeight : 0)
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCollectionViewCell.swift
index d350da87..5863fc5e 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCollectionViewCell.swift
@@ -11,7 +11,7 @@ import UIKit
import MarqueeLabel
import ManicEmuCore
-class GameCollectionViewCell: UICollectionViewCell {
+class GameCollectionViewCell: UICollectionViewCell, DynamicShadow {
private var gameType: GameType? = nil
private var lastFrame: CGRect? = nil
@@ -42,6 +42,7 @@ class GameCollectionViewCell: UICollectionViewCell {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
selectImageView.layer.shadowColor = Constants.Color.Shadow.cgColor
+ updateDynamicShadow()
}
}
@@ -94,6 +95,7 @@ class GameCollectionViewCell: UICollectionViewCell {
backgroundColor = .clear
enableInteractive = true
delayInteractiveTouchEnd = true
+ updateDynamicShadow()
contentView.addSubview(selectedBackground)
selectedBackground.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
index 1006b244..45a3f77a 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
@@ -214,6 +214,8 @@ class GameCoverView: UIView {
image = style == .style2 ? R.image.ps1_cover_v() : R.image.ps1_cover_h()
} else if gameType == .dc {
image = style == .style2 ? R.image.dc_cover_v() : R.image.dc_cover_h()
+ } else if gameType == .arcade {
+ image = style == .style2 ? R.image.arcade_cover_v() : R.image.arcade_cover_h()
}
if UIDevice.isPhone, !UIDevice.isLandscape, scalePlatform, Constants.Size.GamesPerRow != 2, let unwrapImage = image {
image = unwrapImage.scaled(toWidth: unwrapImage.size.width * (1/(Constants.Size.GamesPerRow-1)))
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
index 033fea42..2eff260b 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
@@ -29,7 +29,7 @@ class GameListView: BaseView {
view.dataSource = self
view.delegate = self
view.allowsMultipleSelection = true
- let top = Constants.Size.ContentInsetTop + Constants.Size.ItemHeightMid + Constants.Size.ItemHeightHuge
+ let top = Constants.Size.ContentInsetTop + Constants.Size.ItemHeightMid + Constants.Size.GamesToolViewHeight
let bottom = Constants.Size.ContentInsetBottom + Constants.Size.HomeTabBarSize.height + Constants.Size.ContentSpaceMax
view.contentInset = UIEdgeInsets(top: top, left: 0, bottom: bottom, right: 0)
view.blankSlateView = GamesListBlankSlateView()
@@ -144,7 +144,7 @@ class GameListView: BaseView {
if UIDevice.isPhone, UIDevice.isLandscape {
return gamesNavigationBottom
} else {
- return gamesNavigationBottom + Constants.Size.ItemHeightHuge
+ return gamesNavigationBottom + Constants.Size.GamesToolViewHeight
}
}
private var landscapePhonePagingHeight = 0.0
@@ -170,6 +170,20 @@ class GameListView: BaseView {
}
}
+ //筛选厂商
+ var filteredManufacturer: Manufacturer? = nil {
+ didSet {
+ updateDatas()
+ collectionView.reloadData()
+ reloadIndexView()
+ if isSearchMode, let searchString {
+ searchDatas(string: searchString, forceSearch: true)
+ }
+ }
+ }
+
+ private var foldedGameTypes: [GameType: Bool] = [:]
+
override init(frame: CGRect) {
super.init(frame: frame)
Log.debug("\(String(describing: Self.self)) init")
@@ -324,7 +338,18 @@ class GameListView: BaseView {
///构造符合UI展示的数据源
private func updateDatas() {
- let groupGames = Dictionary(grouping: games, by: { $0.gameType })
+ let groupGames = Dictionary(grouping: games, by: {
+ $0.gameType
+ }).filter({
+ if let filteredManufacturer {
+ if filteredManufacturer.gameTypes.contains([$0.key]) {
+ return true
+ } else {
+ return false
+ }
+ }
+ return true
+ })
// 数据结果 [GameType: [Game]]
let sortType = GameSortType(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortType.rawValue) ?? 0) ?? .title
let sortOrder = GameSortOrder(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortOrder.rawValue) ?? 0) ?? .ascending
@@ -506,8 +531,8 @@ class GameListView: BaseView {
return layout
}
- func searchDatas(string: String) {
- guard searchString != string else { return }
+ func searchDatas(string: String, forceSearch: Bool = false) {
+ guard forceSearch || searchString != string else { return }
//开始搜索前获取已经选中的games
let games = collectionView.indexPathsForSelectedItems?.compactMap({ getGame(at: $0) })
isSearchMode = false
@@ -720,6 +745,21 @@ class GameListView: BaseView {
}
}
}
+
+ func isGameExist(for manufacturer: Manufacturer) -> Bool {
+ for gameType in manufacturer.gameTypes {
+ if games.count(where: { $0.gameType == gameType }) > 0 {
+ return true
+ }
+ }
+ return false
+ }
+
+ func updateFilterChange() {
+ var contentInset = collectionView.contentInset
+ contentInset.top = Constants.Size.ContentInsetTop + Constants.Size.ItemHeightMid + Constants.Size.GamesToolViewHeight
+ collectionView.contentInset = contentInset
+ }
}
extension GameListView: UICollectionViewDataSource {
@@ -788,6 +828,12 @@ extension GameListView: UICollectionViewDataSource {
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ if !(UIDevice.isPhone && UIDevice.isLandscape) {
+ let gameType = sortDatasKeys()[section]
+ if foldedGameTypes[gameType] ?? false {
+ return 0
+ }
+ }
return getGames(at: section).count
}
@@ -804,14 +850,29 @@ extension GameListView: UICollectionViewDataSource {
//header
let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withClass: GamesCollectionReusableView.self, for: indexPath)
let gameType = sortDatasKeys()[indexPath.section]
- header.setData(gameType: gameType, highlightString: searchString, contentInsets: UIDevice.isPhone && UIDevice.isLandscape ? .init(top: 0, left: Constants.Size.SafeAera.left, bottom: 0, right: Constants.Size.SafeAera.right) : .zero, forceHideBlur: enableBackground)
- if gameType == .unknown {
- header.skinButton.isHidden = true
- } else {
- header.skinButton.isHidden = false
- header.skinButton.onTap {
- topViewController()?.present(SkinSettingsViewController(gameType: gameType), animated: true)
+ header.setData(gameType: gameType,
+ highlightString: searchString,
+ contentInsets: UIDevice.isPhone && UIDevice.isLandscape ? .init(top: 0,
+ left: Constants.Size.SafeAera.left,
+ bottom: 0,
+ right: Constants.Size.SafeAera.right) : .zero,
+ forceHideBlur: enableBackground,
+ gamesCount: getGames(at: indexPath.section).count,
+ isFolded: foldedGameTypes[gameType] ?? false)
+ header.gamesCountButton.addTapGesture { [weak self] gesture in
+ guard let self else { return }
+ if UIDevice.isPhone, UIDevice.isLandscape {
+ //横屏时禁用折叠
+ return
}
+ if self.foldedGameTypes[gameType] ?? false {
+ //展开
+ self.foldedGameTypes[gameType] = false
+ } else {
+ //折叠
+ self.foldedGameTypes[gameType] = true
+ }
+ self.collectionView.reloadSections([indexPath.section])
}
header.didTapPlatform = {
if gameType != .unknown {
@@ -1093,6 +1154,14 @@ extension GameListView: UICollectionViewDelegate {
}
#endif
+// if game.gameType == ._3ds {
+// if game.is3DSHomeMenuGame {
+// supportSwitchCore = false
+// } else if game.fileExtension.lowercased() != "3ds" {
+// supportSwitchCore = false
+// }
+// }
+
if supportSwitchCore {
//添加切换核心的操作
let action = UIAction(title: R.string.localizable.switchEmulationCore(), image: .symbolImage(.memorychip)) { _ in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
index a068eaae..8237c42f 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
@@ -12,40 +12,49 @@ import ManicEmuCore
import VisualEffectView
class GamesCollectionReusableView: UICollectionReusableView {
- var titleLabel: UILabel = {
+ private var titleLabel: UILabel = {
let view = UILabel()
view.isHidden = true
return view
}()
- var brandImageView: UIImageView = {
+ private var brandImageView: UIImageView = {
let view = UIImageView()
view.isHidden = true
return view
}()
- var skinButton: UIButton = {
- let view = UIButton(type: .custom)
- view.titleLabel?.font = Constants.Font.body(weight: .medium)
- view.setTitleColor(Constants.Color.LabelSecondary, for: .normal)
- view.setTitle(R.string.localizable.gamesSpecifySkin(), for: .normal)
+ var gamesCountButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .chevronUp,
+ font: Constants.Font.caption(size: .l, weight: .bold),
+ color: Constants.Color.LabelSecondary),
+ title: "",
+ titleFont: Constants.Font.body(size: .s, weight: .semibold),
+ titleColor: Constants.Color.LabelSecondary,
+ edgeInsets: .zero,
+ titlePosition: .left,
+ imageAndTitlePadding: Constants.Size.ContentSpaceUltraTiny)
+ view.layerCornerRadius = 0
+ view.backgroundColor = .clear
return view
}()
var didTapPlatform: (()->Void)? = nil
+ var didTapGameCount: (()->Void)? = nil
+
private var highlightString: String? = nil
override init(frame: CGRect) {
super.init(frame: frame)
if UIDevice.isPad {
- backgroundColor = Constants.Color.Background.withAlphaComponent(0.965)
+ backgroundColor = Constants.Color.Background.forceStyle(UIDevice.isDarkMode ? .dark : .light).withAlphaComponent(0.965)
} else {
makeBlur(blurColor: Constants.Color.Background)
}
- addSubviews([titleLabel, brandImageView, skinButton])
+ addSubviews([titleLabel, brandImageView, gamesCountButton])
titleLabel.snp.makeConstraints { make in
make.centerY.equalToSuperview()
@@ -57,9 +66,9 @@ class GamesCollectionReusableView: UICollectionReusableView {
make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
}
- skinButton.snp.makeConstraints { make in
+ gamesCountButton.snp.makeConstraints { make in
make.centerY.equalTo(titleLabel)
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax-Constants.Size.ContentSpaceTiny)
}
titleLabel.isUserInteractionEnabled = true
@@ -75,7 +84,7 @@ class GamesCollectionReusableView: UICollectionReusableView {
}
}
- func setData(gameType: GameType, highlightString: String? = nil, contentInsets: UIEdgeInsets = .zero, forceHideBlur: Bool = false) {
+ func setData(gameType: GameType, highlightString: String? = nil, contentInsets: UIEdgeInsets = .zero, forceHideBlur: Bool = false, gamesCount: Int = 0, isFolded: Bool = false) {
if Constants.Size.GamesGroupTitleStyle == .brand && gameType != .unknown {
titleLabel.isHidden = true
brandImageView.isHidden = false
@@ -93,7 +102,14 @@ class GamesCollectionReusableView: UICollectionReusableView {
}
titleLabel.attributedText = NSAttributedString(string: title, attributes: [.font: Constants.Font.title(), .foregroundColor: Constants.Color.LabelPrimary]).highlightString(highlightString)
}
- skinButton.setTitleColor(Constants.Color.LabelSecondary, for: .normal)
+ gamesCountButton.titleLabel.text = "\(gamesCount) \(R.string.localizable.tabbarTitleGames())"
+ if UIDevice.isPhone, UIDevice.isLandscape {
+ gamesCountButton.imageView.image = nil
+ } else {
+ gamesCountButton.imageView.image = UIImage(symbol: isFolded ? .chevronDown : .chevronUp,
+ font: Constants.Font.caption(size: .l, weight: .bold),
+ color: Constants.Color.LabelSecondary)
+ }
self.highlightString = highlightString
if (UIDevice.isPhone && UIDevice.isLandscape) || forceHideBlur {
//隐藏模糊
@@ -182,11 +198,28 @@ class GamesCollectionReusableView: UICollectionReusableView {
image = R.image.ps1_group_brand(compatibleWith: traitCollection)
} else if gameType == .dc {
image = R.image.dc_group_brand(compatibleWith: traitCollection)
+ } else if gameType == .arcade {
+ image = R.image.arcade_group_brand(compatibleWith: traitCollection)
}
Self.brandImageCaches[key] = image
return image
}
}
+ //完全搞不懂为什么UICollectionView的滚动会导致UIColor的dynamicColor错乱,只能这样处理了
+ //发现了仅仅在iOS26上会出现 当系统是darkmode 应用设置为lightmode的时候会发生
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.userInterfaceStyle.rawValue != previousTraitCollection?.userInterfaceStyle.rawValue {
+ if UIDevice.isPad {
+ backgroundColor = Constants.Color.Background.forceStyle(UIDevice.isDarkMode ? .dark : .light).withAlphaComponent(0.965)
+ } else {
+ if let blurView = subviews.first(where: { $0 is VisualEffectView }) as? VisualEffectView {
+ blurView.colorTint = Constants.Color.Background.forceStyle(UIDevice.isDarkMode ? .dark : .light)
+ blurView.colorTintAlpha = 0.9
+ }
+ }
+ }
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesToolView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesToolView.swift
index 5e3911d8..ab01eda1 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesToolView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesToolView.swift
@@ -123,9 +123,23 @@ class GamesToolView: UIView {
return view
}()
+ lazy var manufacturerCategoryView: ManufacturerCategoryView = {
+ let view = ManufacturerCategoryView()
+ return view
+ }()
+
var didToolViewSelectionChange: ((SelectionChangeMode)->Void)?
var didSearchChange: ((String?)->Void)?
var didSearchTextResignFirstResponder: (()->Void)? = nil
+ var didFilterVisibleChange: (()->Void)? = nil
+
+ private var manufacturerFilterChange: Any? = nil
+
+ deinit {
+ if let manufacturerFilterChange {
+ NotificationCenter.default.removeObserver(manufacturerFilterChange)
+ }
+ }
override init(frame: CGRect) {
super.init(frame: frame)
@@ -141,7 +155,7 @@ class GamesToolView: UIView {
addSubviews(icons)
for (index, icon) in icons.enumerated() {
icon.snp.makeConstraints { make in
- make.centerY.equalToSuperview()
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
if index == 0 {
make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
} else {
@@ -152,6 +166,22 @@ class GamesToolView: UIView {
}
}
}
+
+ addSubview(manufacturerCategoryView)
+ manufacturerCategoryView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.height.equalTo(Constants.Size.ItemHeightUltraTiny)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+ manufacturerCategoryView.isHidden = !(Theme.defalut.getExtraBool(key: ExtraKey.enableManufacturerFilter.rawValue) ?? false)
+
+
+ manufacturerFilterChange = NotificationCenter.default.addObserver(forName: Constants.NotificationName.ManufacturerFilterChange, object: nil, queue: .main) { [weak self] notification in
+ let enableFilter = (notification.object as? Bool) ?? false
+ self?.manufacturerCategoryView.isHidden = !enableFilter
+ self?.didFilterVisibleChange?()
+ self?.stopFilterManufacturer()
+ }
}
override func layoutSubviews() {
@@ -193,6 +223,10 @@ class GamesToolView: UIView {
}
}
+ func stopFilterManufacturer() {
+ manufacturerCategoryView.deselectAll()
+ }
+
func foldKeyboard() {
if searchTextField.isFirstResponder {
searchTextField.resignFirstResponder()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/ManufacturerCategoryView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/ManufacturerCategoryView.swift
new file mode 100644
index 00000000..08d3d04f
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/ManufacturerCategoryView.swift
@@ -0,0 +1,162 @@
+//
+// ManufacturerCategoryView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/9.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ManufacturerCategoryView: BaseView {
+ class ManufacturerCategoryCell: UICollectionViewCell {
+ let normalImageView: UIImageView = {
+ let view = UIImageView()
+ view.contentMode = .center
+ return view
+ }()
+
+ let selectedImageView: UIImageView = {
+ let view = UIImageView()
+ view.contentMode = .center
+ view.isHidden = true
+ return view
+ }()
+
+ var onLongPress: (()->Void)? = nil
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ backgroundColor = .clear
+ enableInteractive = true
+ delayInteractiveTouchEnd = true
+
+ addSubview(normalImageView)
+ normalImageView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(selectedImageView)
+ selectedImageView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ let longPress = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPress(_:)))
+ longPress.minimumPressDuration = 0.5
+ longPress.cancelsTouchesInView = true
+ longPress.delaysTouchesBegan = false
+ longPress.delaysTouchesEnded = true
+ addGestureRecognizer(longPress)
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ @objc private func handleLongPress(_ gesture: UILongPressGestureRecognizer) {
+ if gesture.state == .began {
+ onLongPress?()
+ }
+ }
+
+ override var isSelected: Bool {
+ willSet {
+ normalImageView.isHidden = newValue
+ selectedImageView.isHidden = !newValue
+ }
+ }
+
+ func setDatas(normalImage: UIImage, highlightImage: UIImage) {
+ normalImageView.image = normalImage
+ selectedImageView.image = highlightImage
+ }
+ }
+
+ var didManufacturerChange: ((Manufacturer?)->Bool)? = nil
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: ManufacturerCategoryCell.self)
+ view.showsVerticalScrollIndicator = false
+ view.showsHorizontalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.alwaysBounceHorizontal = false
+ view.alwaysBounceVertical = false
+ view.allowsSelection = true
+ view.allowsMultipleSelection = false
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(0.25),
+ heightDimension: .fractionalHeight(1)))
+
+
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1)), subitems: [item])
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.orthogonalScrollingBehavior = .continuous
+
+ return section
+ }
+ return layout
+ }
+
+ func deselectAll() {
+ if let indexPaths = collectionView.indexPathsForSelectedItems {
+ for indexPath in indexPaths {
+ collectionView.deselectItem(at: indexPath, animated: false)
+ }
+ _ = didManufacturerChange?(nil)
+ }
+ }
+}
+
+extension ManufacturerCategoryView: UICollectionViewDataSource {
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ return Manufacturer.allCases.count
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ let cell = collectionView.dequeueReusableCell(withClass: ManufacturerCategoryCell.self, for: indexPath)
+ if let manufacturer = Manufacturer(rawValue: indexPath.row) {
+ cell.setDatas(normalImage: manufacturer.normalImage, highlightImage: manufacturer.highlightImage)
+ cell.onLongPress = {
+ topViewController()?.present(WebViewController(url: Constants.URLs.manufacturer(manufacturer)), animated: true)
+ }
+ }
+ return cell
+ }
+}
+
+extension ManufacturerCategoryView: UICollectionViewDelegate {
+ func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
+ if let cell = collectionView.cellForItem(at: indexPath), cell.isSelected {
+ collectionView.deselectItem(at: indexPath, animated: true)
+ return didManufacturerChange?(nil) ?? false
+ }
+
+ if let manufacturer = Manufacturer(rawValue: indexPath.row) {
+ return didManufacturerChange?(manufacturer) ?? false
+ }
+
+ return false
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryFavouriteCollectionCell.swift b/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryFavouriteCollectionCell.swift
index 4b6defba..d3de5377 100644
--- a/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryFavouriteCollectionCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryFavouriteCollectionCell.swift
@@ -21,7 +21,7 @@ class PlayHistoryFavouriteCollectionCell: UICollectionViewCell {
imageAndTitlePadding: 4,
enableGlass: true)
view.enableRoundCorner = true
- view.backgroundColor = Constants.Color.Background
+ view.backgroundColor = Constants.Color.SideList
return view
}()
@@ -38,7 +38,7 @@ class PlayHistoryFavouriteCollectionCell: UICollectionViewCell {
private let iconViewContainerView: UIView = {
let view = UIView()
view.layer.cornerRadius = Constants.Size.CornerRadiusMin
- view.makeShadow(ofColor: Constants.Color.BackgroundPrimary, radius: 15)
+ view.makeShadow(ofColor: Constants.Color.BackgroundPrimary.forceStyle(.dark), radius: 10)
return view
}()
@@ -65,7 +65,7 @@ class PlayHistoryFavouriteCollectionCell: UICollectionViewCell {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
titleLabel.layer.shadowColor = Constants.Color.Background.cgColor
- iconViewContainerView.makeShadow(ofColor: Constants.Color.BackgroundPrimary, radius: 15)
+ iconViewContainerView.makeShadow(ofColor: Constants.Color.BackgroundPrimary.forceStyle(.dark), radius: 10)
}
}
@@ -167,7 +167,6 @@ class PlayHistoryFavouriteCollectionCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
func setData(game: Game, didTapRetro: (()->Void)? = nil) {
let estimated = iconView.size == .zero ? .init((UIDevice.isPad ? 85 : 106)) : iconView.size
iconView.setGameCover(game: game, size: estimated) { [weak self] image in
diff --git a/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryItemCollectionCell.swift b/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryItemCollectionCell.swift
index 2a6277e4..ae1e2f3e 100644
--- a/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryItemCollectionCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/History/Views/PlayHistoryItemCollectionCell.swift
@@ -43,7 +43,7 @@ class PlayHistoryItemCollectionCell: UICollectionViewCell {
override init(frame: CGRect) {
super.init(frame: frame)
- backgroundColor = Constants.Color.Background
+ backgroundColor = Constants.Color.SideList
layerCornerRadius = Constants.Size.CornerRadiusMid
enableInteractive = true
delayInteractiveTouchEnd = true
@@ -91,7 +91,6 @@ class PlayHistoryItemCollectionCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
func setData(game: Game, didTapRetro: (()->Void)? = nil) {
let estimated = iconView.size == .zero ? .init(40) : iconView.size
iconView.setGameCover(game: game, size: estimated)
diff --git a/ManicEmu/ManicEmu/Sources/Business/Home/ViewControllers/HomeViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Home/ViewControllers/HomeViewController.swift
index 035509fc..25b6aa88 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Home/ViewControllers/HomeViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Home/ViewControllers/HomeViewController.swift
@@ -101,8 +101,8 @@ class HomeViewController: BaseViewController {
private var homeTabBarBlurView: UIView = {
let view = BlurUIKit.VariableBlurView()
view.direction = .up
- view.maximumBlurRadius = 15
- view.dimmingAlpha = .interfaceStyle(lightModeAlpha: 0.5, darkModeAlpha: 0.6)
+ view.maximumBlurRadius = 1
+ view.dimmingAlpha = .interfaceStyle(lightModeAlpha: 0.05, darkModeAlpha: 0.05)
view.dimmingTintColor = Constants.Color.Background
return view
}()
@@ -208,7 +208,7 @@ class HomeViewController: BaseViewController {
view.addSubview(homeTabBar)
homeTabBarBlurView.snp.makeConstraints { make in
make.leading.trailing.bottom.equalToSuperview()
- make.top.equalTo(homeTabBar.snp.centerY)
+ make.top.equalTo(homeTabBar).offset(-20)
}
homeTabBar.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/AddImportServiceView.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/AddImportServiceView.swift
index b837516f..0962a454 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/AddImportServiceView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/AddImportServiceView.swift
@@ -133,7 +133,7 @@ class AddImportServiceView: BaseView {
var backgroundView: UIView = {
let view = UIView()
view.layerCornerRadius = Constants.Size.CornerRadiusMax
- view.backgroundColor = Constants.Color.Background
+ view.backgroundColor = Constants.Color.SideList
return view
}()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/DownloadItemCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/DownloadItemCollectionViewCell.swift
index eea5b123..08c4296a 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/DownloadItemCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/DownloadItemCollectionViewCell.swift
@@ -127,7 +127,6 @@ class DownloadItemCollectionViewCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
func setData(task: DownloadTask) {
titleLabel.text = task.fileName
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
index 9336d049..89750d75 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
@@ -428,7 +428,7 @@ extension GameSaveMatchGameView: UICollectionViewDataSource {
let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withClass: GamesCollectionReusableView.self, for: indexPath)
let gameType = sortDatasKeys()[indexPath.section]
header.setData(gameType: gameType)
- header.skinButton.isHidden = true
+ header.gamesCountButton.isHidden = true
return header
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportFileCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportFileCollectionViewCell.swift
index f69d247e..84213c5f 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportFileCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportFileCollectionViewCell.swift
@@ -9,7 +9,7 @@
import UIKit
-class ImportFileCollectionViewCell: UICollectionViewCell {
+class ImportFileCollectionViewCell: UICollectionViewCell, DynamicShadow {
private var iconView: ServiceIconView = {
let view = ServiceIconView(roundCorner: .allCorners)
return view
@@ -32,6 +32,7 @@ class ImportFileCollectionViewCell: UICollectionViewCell {
override init(frame: CGRect) {
super.init(frame: frame)
+ updateDynamicShadow()
let topHintView = UIView()
addSubview(topHintView)
@@ -86,7 +87,13 @@ class ImportFileCollectionViewCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
+ updateDynamicShadow()
+ }
+ }
+
func setData(service: ImportService) {
iconView.imageView.image = service.iconImage
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListCollectionViewCell.swift
index 20fc084e..61bd184d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListCollectionViewCell.swift
@@ -9,7 +9,7 @@
import UIKit
-class ImportServiceListCollectionViewCell: UICollectionViewCell {
+class ImportServiceListCollectionViewCell: UICollectionViewCell, DynamicShadow {
private var iconView: ServiceIconView = {
let view = ServiceIconView(roundCorner: .allCorners)
return view
@@ -43,6 +43,8 @@ class ImportServiceListCollectionViewCell: UICollectionViewCell {
delayInteractiveTouchEnd = true
backgroundColor = Constants.Color.BackgroundPrimary
layerCornerRadius = Constants.Size.CornerRadiusMax
+
+ updateDynamicShadow()
addSubviews([iconView, titleLabel, switchButton])
@@ -75,7 +77,13 @@ class ImportServiceListCollectionViewCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
- //TODO: 需要处理图片的尺寸
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
+ updateDynamicShadow()
+ }
+ }
+
func setData(service: ImportService) {
iconView.imageView.image = service.iconImage
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Models/Game.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Models/Game.swift
index e26631bc..e4ce2168 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Models/Game.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Models/Game.swift
@@ -175,6 +175,8 @@ class Game: Object, ObjectUpdatable {
return URL(fileURLWithPath: Constants.Path.PokeMini.appendingPathComponent("\(name).eep"))
} else if gameType == .ps1 {
return URL(fileURLWithPath: Constants.Path.BeetlePSXHW.appendingPathComponent("\(name).srm"))
+ } else if gameType == .arcade {
+ return URL(fileURLWithPath: Constants.Path.MAME.appendingPathComponent("\(name).srm"))
}
let localUrl = URL(fileURLWithPath: Constants.Path.Data.appendingPathComponent("\(name).\(gameType.manicEmuCore?.gameSaveExtension ?? "")"))
@@ -350,12 +352,22 @@ class Game: Object, ObjectUpdatable {
} else {
if defaultCore == 0 {
return Bundle.main.path(forResource: "flycast-jitless.libretro", ofType: "framework", inDirectory: "Frameworks")
- } else {
+ } else if defaultCore == 1 {
return Bundle.main.path(forResource: "flycast-jitless-wince.libretro", ofType: "framework", inDirectory: "Frameworks")
+ } else if defaultCore == 2 {
+ return Bundle.main.path(forResource: "flycast-jitless-fuse.libretro", ofType: "framework", inDirectory: "Frameworks")
}
}
} else if gameType == .ds {
return Bundle.main.path(forResource: "melondsds.libretro", ofType: "framework", inDirectory: "Frameworks")
+ } else if gameType == .arcade {
+ if defaultCore == 0 {
+ return Bundle.main.path(forResource: "mame.libretro", ofType: "framework", inDirectory: "Frameworks")
+ } else {
+ return Bundle.main.path(forResource: "fbneo.libretro", ofType: "framework", inDirectory: "Frameworks")
+ }
+ } else if gameType == ._3ds, defaultCore == 1 {
+ return Bundle.main.path(forResource: "azahar.libretro", ofType: "framework", inDirectory: "Frameworks")
}
return nil
}
@@ -457,6 +469,9 @@ class Game: Object, ObjectUpdatable {
if gameType == ._3ds {
return false
}
+ if gameType == .arcade, defaultCore == 0 {
+ return false
+ }
return true
}
@@ -609,6 +624,21 @@ class Game: Object, ObjectUpdatable {
}
return Self.defaultNesPalette
}
+
+ var isLibretroType: Bool {
+ if gameType == ._3ds, defaultCore == 0 {
+ return false
+ }
+ return true
+ }
+
+ var isCitra3DS: Bool {
+ return gameType == ._3ds && defaultCore == 0
+ }
+
+ var isAzahar3DS: Bool {
+ return gameType == ._3ds && defaultCore == 1
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
index c059545a..1478d498 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
@@ -648,7 +648,7 @@ struct GameSetting: SettingCellItem {
}
if type == .airPlayLayout {
- return gameType == .ds
+ return gameType == .ds || (gameType == ._3ds && defaultCore == 1)
}
if type == .toggleAnalog {
@@ -657,8 +657,14 @@ struct GameSetting: SettingCellItem {
switch gameType {
case ._3ds:
- if type == .fastForward || type == .filter || type == .palette || type == .swapDisk || type == .retro || type == .airPlayScaling {
- return false
+ if defaultCore == 0 {
+ if type == .fastForward || type == .filter || type == .palette || type == .swapDisk || type == .retro || type == .airPlayScaling || type == .retro {
+ return false
+ }
+ } else {
+ if type == .palette || type == .swapDisk || type == .retro || type == .retro || type == .consoleHome || type == .amiibo {
+ return false
+ }
}
return true
case .ds:
@@ -666,7 +672,7 @@ struct GameSetting: SettingCellItem {
return false
}
return true
- case .gba, .gbc, .gb, .nes, .fds, .snes, .md, .mcd, ._32x, .gg, .sg1000, .ms, .ss, .vb, .pm:
+ case .gba, .gbc, .gb, .nes, .fds, .snes, .md, .mcd, ._32x, .gg, .sg1000, .ms, .ss, .vb, .pm, .arcade:
if (gameType == .gb || gameType == .vb || gameType == .pm || gameType == .nes || gameType == .fds) && type == .palette {
return true
}
@@ -687,6 +693,10 @@ struct GameSetting: SettingCellItem {
return false
}
+ if gameType == .arcade, type == .retro, defaultCore == 0 {
+ return false
+ }
+
if type == .swapScreen || type == .resolution || type == .consoleHome || type == .amiibo || type == .simBlowing || type == .palette || type == .swapDisk {
return false
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
index 879e1578..d8ce5da7 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
@@ -47,6 +47,7 @@ class PlayViewController: GameViewController {
private var quitGamingNotification: Any? = nil
private var turnOffHardcoreNotification: Any? = nil
private var turnOffAlwaysShowProgressNotification: Any? = nil
+ private var mameGameFileMissingNotification: Any? = nil
//每分钟执行一次
private lazy var repeatTimer: Schedule.Task = {
@@ -60,7 +61,7 @@ class PlayViewController: GameViewController {
//每分钟保存一次存档
DispatchQueue.main.async { [weak self] in
guard Settings.defalut.autoSaveState, let self = self else { return }
- if self.manicGame.gameType.isLibretroType {
+ if self.manicGame.isLibretroType {
self.saveStateForLibretro(type: .autoSaveState)
}
}
@@ -163,6 +164,9 @@ class PlayViewController: GameViewController {
if let turnOffAlwaysShowProgressNotification {
NotificationCenter.default.removeObserver(turnOffAlwaysShowProgressNotification)
}
+ if let mameGameFileMissingNotification {
+ NotificationCenter.default.removeObserver(mameGameFileMissingNotification)
+ }
if SyncManager.shared.hasDownloadTask {
UIView.makeLoadingToast(message: R.string.localizable.loadingTitle())
}
@@ -210,7 +214,7 @@ class PlayViewController: GameViewController {
}
func launchGameByDismissOtherVC() {
//游戏控制器和rootVC之间存在控制器则会导致游戏卡顿异常 估计是iOS的bug,导致了Main Run Loop调度异常
- if game.gameType.isLibretroType {
+ if game.isLibretroType {
LibretroCore.sharedInstance().workspace = Constants.Path.Libretro
}
if let homeVC = topViewController(appController: true), homeVC is HomeViewController {
@@ -285,7 +289,7 @@ class PlayViewController: GameViewController {
//rom存在iCloud上
//rom还没离线下来
UIView.makeLoadingToast(message: R.string.localizable.loadingTitle())
- SyncManager.download(localFilePath: game.romUrl.path) { error in
+ SyncManager.download(to: game.romUrl.path) { error in
UIView.hideLoadingToast()
UIView.makeToast(message: R.string.localizable.loadRomSuccess(game.aliasName ?? game.name))
}
@@ -355,7 +359,7 @@ class PlayViewController: GameViewController {
//从后台回到前台
self?.setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
guard let self = self else { return }
- if (self.manicGame.gameType == ._3ds || self.manicGame.gameType.isLibretroType) && self.gameViewControllerShouldResume(self) {
+ if self.gameViewControllerShouldResume(self) {
self.resumeEmulationAndHandleAudio()
}
}
@@ -401,7 +405,7 @@ class PlayViewController: GameViewController {
// //在线游戏 禁用加速 禁用金手指
UIView.makeToast(message: R.string.localizable.wfcConnectDesc())
self.isWFCConnect = true
- self.manicEmuCore?.setRate(speed: .one)
+ self.updateFastforward(speed: .one)
}
//监听WFC断开连接
@@ -409,7 +413,7 @@ class PlayViewController: GameViewController {
guard let self else { return }
UIView.makeToast(message: R.string.localizable.wfcDisconnectDesc())
self.isWFCConnect = false
- self.manicEmuCore?.setRate(speed: self.manicGame.speed)
+ self.updateFastforward(speed: self.manicGame.speed)
}
//核心请求退出
@@ -574,6 +578,11 @@ class PlayViewController: GameViewController {
self.hideAchievementProgressIfNeed()
})
+ //MAME游戏文件缺失
+ mameGameFileMissingNotification = NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: "MAMEGameFileMissingNotification"), object: nil, queue: .main) { notification in
+ UIView.makeAlert(title: R.string.localizable.mameFileMissingTitle(), detail: R.string.localizable.mameFileMissingDesc(), cancelTitle: R.string.localizable.confirmTitle())
+ }
+
//更新最新游戏时间
updateLatestPlayDate()
@@ -694,9 +703,6 @@ class PlayViewController: GameViewController {
}
override func viewWillAppear(_ animated: Bool) {
- if manicGame.gameType != ._3ds && !manicGame.gameType.isLibretroType {
- super.viewWillAppear(animated)
- }
setOrientationConfig()
setNeedsUpdateOfScreenEdgesDeferringSystemGestures()
}
@@ -707,10 +713,6 @@ class PlayViewController: GameViewController {
updateSkin()
//更新声音
updateAudio()
- if manicGame.gameType != ._3ds && !manicGame.gameType.isLibretroType {
- //设置速度
- self.manicEmuCore?.setRate(speed: self.manicGame.speed)
- }
functionButtonContainer.isHidden = false
}
@@ -723,7 +725,7 @@ class PlayViewController: GameViewController {
super.viewDidDisappear(animated)
repeatTimer.suspend()
//清理AirPlay画面
- if let airPlayViewController = ExternalSceneDelegate.airPlayViewController, let airPlayGameView = airPlayViewController.libretroView, manicGame.gameType.isLibretroType {
+ if let airPlayViewController = ExternalSceneDelegate.airPlayViewController, let airPlayGameView = airPlayViewController.libretroView, manicGame.isLibretroType {
airPlayGameView.parentViewController?.removeFromParent()
airPlayGameView.removeFromSuperview()
airPlayViewController.libretroView = nil
@@ -742,7 +744,7 @@ class PlayViewController: GameViewController {
}
#endif
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
threeDSCore?.destory()
}
@@ -752,9 +754,7 @@ class PlayViewController: GameViewController {
NotificationCenter.default.post(name: Constants.NotificationName.StopPlayGame, object: nil)
//取消静音监听
- if manicGame.gameType.isLibretroType || manicGame.gameType == ._3ds {
- muteSwitchMonitor.stopMonitoring()
- }
+ muteSwitchMonitor.stopMonitoring()
//通知游戏列表更新
if let gameSortType = GameSortType(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortType.rawValue) ?? 0),
@@ -764,6 +764,10 @@ class PlayViewController: GameViewController {
//取消Alert的MenuInset
UIView.alertBottomInset = nil
+
+ if manicGame.gameType == .arcade, manicGame.defaultCore == 0 {
+ LibretroCore.sharedInstance().setLibretroLogMonitor(false)
+ }
}
/// 进入默认显示的方向
@@ -801,8 +805,8 @@ class PlayViewController: GameViewController {
}) { [weak self] _ in
guard let self = self else { return }
self.resumeEmulationAndHandleAudio()
- if self.manicGame.gameType.isLibretroType {
- self.manicEmuCore?.setRate(speed: self.manicGame.speed)
+ if self.manicGame.isLibretroType {
+ self.updateFastforward(speed: self.manicGame.speed)
}
}
}
@@ -861,9 +865,9 @@ class PlayViewController: GameViewController {
self.updateSkin()
//更新声音
self.updateAudio()
- if manicGame.gameType != ._3ds {
+ if !manicGame.isCitra3DS {
//设置速度
- self.manicEmuCore?.setRate(speed: manicGame.speed)
+ self.updateFastforward(speed: self.manicGame.speed)
}
}
topViewController()?.present(vc, animated: true)
@@ -871,15 +875,15 @@ class PlayViewController: GameViewController {
}
var images = [UIImage?]()
- if manicGame.gameType == ._3ds, let snapShots = snapShotFor3DS() {
+ if manicGame.isCitra3DS, let snapShots = snapShotFor3DS() {
images = snapShots
updateFlex(images: images)
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
LibretroCore.sharedInstance().snapshot { [weak self] image in
guard let self else { return }
- if self.manicGame.gameType == .ds {
+ if self.manicGame.gameType == .ds || self.manicGame.isAzahar3DS {
if let image {
- updateFlex(images: self.snapShotForNDS(source: image) ?? [])
+ updateFlex(images: self.snapShotForDualScreen(source: image) ?? [])
} else {
updateFlex(images: [])
}
@@ -905,7 +909,7 @@ class PlayViewController: GameViewController {
input.stringValue == "fastForward3x" ||
input.stringValue == "fastForward4x" {
if !PurchaseManager.isMember {
- manicEmuCore?.setRate(speed: .two)
+ updateFastforward(speed: .two)
} else {
if manicGame.speed.rawValue < GameSetting.FastForwardSpeed.five.rawValue {
let speed: GameSetting.FastForwardSpeed
@@ -919,7 +923,7 @@ class PlayViewController: GameViewController {
speed = .five
}
Log.debug("长按速度: \(speed.rawValue)x")
- manicEmuCore?.setRate(speed: speed)
+ updateFastforward(speed: speed)
}
}
} else if input.stringValue == "toggleFastForward" {
@@ -1006,7 +1010,7 @@ class PlayViewController: GameViewController {
input.stringValue == "fastForward2x" ||
input.stringValue == "fastForward3x" ||
input.stringValue == "fastForward4x" {
- manicEmuCore?.setRate(speed: manicGame.speed)
+ updateFastforward(speed: manicGame.speed)
Log.debug("长按结束,恢复原速度")
}
}
@@ -1016,10 +1020,10 @@ class PlayViewController: GameViewController {
guard !isWFCConnect else {
return false
}
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
threeDSCore?.pause()
return true
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
LibretroCore.sharedInstance().pause()
return true
} else {
@@ -1102,8 +1106,8 @@ extension PlayViewController {
}
LibretroCore.sharedInstance().snapshot { snapshot in
var image = snapshot
- if self.manicGame.gameType == .ds, let i = image {
- image = self.snapShotForNDS(topOnly: true, source: i)?.first
+ if (self.manicGame.gameType == .ds || self.manicGame.isAzahar3DS), let i = image {
+ image = self.snapShotForDualScreen(topOnly: true, source: i)?.first
}
let submitSuccess = LibretroCore.sharedInstance().saveState { statePath in
if let statePath {
@@ -1223,18 +1227,18 @@ extension PlayViewController {
confirmAutoHide: false,
confirmAction: {
topViewController()?.present(PurchaseViewController(), animated: true)
- }) { [weak self] in
+ }, hideAction: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
- }
+ })
return false
}
//没有超限 则继续存储
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
saveStateFor3DS(type: .manualSaveState)
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
saveStateForLibretro(type: .manualSaveState)
}
case .quickLoadState:
@@ -1248,9 +1252,9 @@ extension PlayViewController {
return true
}
//快速读档
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
quickLoadStateFor3DS(item.loadState)
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
quickLoadStateForLibretro(item.loadState)
}
case .volume:
@@ -1272,7 +1276,7 @@ extension PlayViewController {
UIView.makeToast(message: R.string.localizable.notAllowOnlineGame())
return true
}
- guard manicGame.gameType != ._3ds else { return true }
+ guard !manicGame.isCitra3DS else { return true }
//快进
if !PurchaseManager.isMember && item.fastForwardSpeed.rawValue > GameSetting.FastForwardSpeed.two.rawValue {
//超限了
@@ -1285,24 +1289,24 @@ extension PlayViewController {
confirmTitle: R.string.localizable.goToUpgrade(),
confirmAutoHide: false, cancelAction: { [weak self] in
guard let self = self else { return }
- self.manicEmuCore?.setRate(speed: .one)
+ self.updateFastforward(speed: .one)
Game.change { realm in
self.manicGame.speed = .one
}
UIView.makeToast(message: R.string.localizable.gameSettingFastForwardResume())
}, confirmAction: {
topViewController()?.present(PurchaseViewController(), animated: true)
- }) { [weak self] in
+ }, hideAction: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
- }
+ })
} else {
if manicGame.speed.rawValue == 0 || manicGame.speed != item.fastForwardSpeed {
if manicGame.gameType == .ps1, menuSheet == nil {
pauseEmulation()
}
- manicEmuCore?.setRate(speed: item.fastForwardSpeed)
+ updateFastforward(speed: item.fastForwardSpeed)
if manicGame.gameType == .ps1, menuSheet == nil {
resumeEmulationAndHandleAudio()
}
@@ -1329,19 +1333,19 @@ extension PlayViewController {
GameInfoView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), selection: { [weak self, weak menuSheet] saveState in
guard let self = self else { return }
func loadSave() {
- if self.manicGame.gameType == ._3ds {
+ if self.manicGame.isCitra3DS {
DispatchQueue.main.asyncAfter(delay: 1) {
self.resumeEmulationAndHandleAudio()
self.quickLoadStateFor3DS(saveState)
}
- } else if self.manicGame.gameType.isLibretroType {
+ } else if self.manicGame.isLibretroType {
self.quickLoadStateForLibretro(saveState)
}
}
if menuSheet == nil {
loadSave()
} else {
- if self.manicGame.gameType.isLibretroType {
+ if self.manicGame.isLibretroType {
loadSave()
menuSheet?.pop()
} else {
@@ -1368,15 +1372,25 @@ extension PlayViewController {
}
if manicGame.gameType == .ss && manicGame.defaultCore == 0 {
UIView.makeToast(message: R.string.localizable.beetleSaturnNoSupportCheat())
+ } else if manicGame.gameType == .arcade, manicGame.defaultCore == 0 {
+ UIView.makeAlert(detail: R.string.localizable.mameCheatCodeDesc(), cancelTitle: R.string.localizable.confirmTitle())
} else {
if menuSheet == nil {
pauseEmulation()
}
- CheatCodeListView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
- if menuSheet == nil {
- self?.resumeEmulationAndHandleAudio()
- }
- })
+ if manicGame.gameType == .arcade, manicGame.defaultCore == 1 {
+ FBNeoCheatCodeListView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ if menuSheet == nil {
+ self?.resumeEmulationAndHandleAudio()
+ }
+ })
+ } else {
+ CheatCodeListView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ if menuSheet == nil {
+ self?.resumeEmulationAndHandleAudio()
+ }
+ })
+ }
}
return false
case .skins:
@@ -1392,11 +1406,11 @@ extension PlayViewController {
return false
case .filter:
//MARK: handleMenuGameSetting.filter
- guard manicGame.gameType != ._3ds else { return true }
+ guard !manicGame.isCitra3DS else { return true }
if menuSheet == nil {
pauseEmulation()
}
- if manicGame.gameType.isLibretroType {
+ if manicGame.isLibretroType {
FilterSelectionView.show(game: self.manicGame, snapshot: nil, gameViewRect: self.gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
@@ -1407,7 +1421,7 @@ extension PlayViewController {
case .screenShot:
//MARK: handleMenuGameSetting.screenShot
//截屏
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
if let images = self.snapShotFor3DS() {
DispatchQueue.global().asyncAfter(delay: menuSheet == nil ? 0 : 1, execute: {
var imageDatas = [Data]()
@@ -1421,10 +1435,10 @@ extension PlayViewController {
}
})
}
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
DispatchQueue.main.asyncAfter(delay: menuSheet == nil ? 0 : 1, execute: {
LibretroCore.sharedInstance().snapshot { image in
- if self.manicGame.gameType == .ds, let i = image, let images = self.snapShotForNDS(source: i) {
+ if (self.manicGame.gameType == .ds || self.manicGame.isAzahar3DS), let i = image, let images = self.snapShotForDualScreen(source: i) {
var imageDatas = [Data]()
for image in images {
if let imageData = image.jpegData(compressionQuality: 0.7) {
@@ -1519,20 +1533,20 @@ extension PlayViewController {
return false
case .reload:
//MARK: handleMenuGameSetting.reload
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
threeDSCore?.reload()
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
LibretroCore.sharedInstance().reload()
updateFilter()
}
case .quit:
//MARK: handleMenuGameSetting.quit
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
threeDSCore?.stop()
DispatchQueue.main.asyncAfter(delay: 0.5) {
self.dismiss(animated: true)
}
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
LibretroCore.sharedInstance().stop()
gameMetalView = nil;
DispatchQueue.main.asyncAfter(delay: 0.5) {
@@ -1548,7 +1562,12 @@ extension PlayViewController {
manicGame.resolution = item.resolution
}
if manicGame.gameType == ._3ds {
- threeDSCore?.setResolution(resolution: item.resolution)
+ if manicGame.isCitra3DS {
+ threeDSCore?.setResolution(resolution: item.resolution)
+ } else {
+ let resolutionRaw = item.resolution == .undefine ? 1 : item.resolution.rawValue
+ LibretroCore.sharedInstance().updateRunningCoreConfigs(["citra_resolution_factor": "\(resolutionRaw)"], flush: false)
+ }
} else if manicGame.gameType == .psp {
updatePSPResolution(item.resolution, reload: true)
} else if manicGame.gameType == .n64 {
@@ -1581,39 +1600,47 @@ extension PlayViewController {
//MARK: handleMenuGameSetting.consoleHome
//回到主页
if manicGame.gameType == ._3ds, let threeDSCore {
- if manicGame.is3DSHomeMenuGame {
- DispatchQueue.main.asyncAfter(delay: 0.5) {
- threeDSCore.jumpToHome()
+ if manicGame.isCitra3DS {
+ if manicGame.is3DSHomeMenuGame {
+ DispatchQueue.main.asyncAfter(delay: 0.5) {
+ threeDSCore.jumpToHome()
+ }
+ } else {
+ UIView.makeToast(message: R.string.localizable.threeDSHomeMenuNotRunning())
}
} else {
- UIView.makeToast(message: R.string.localizable.threeDSHomeMenuNotRunning())
+ //TODO: azahar 返回主页
}
}
case .amiibo:
//MARK: handleMenuGameSetting.amiibo
//加载amiibo
if manicGame.gameType == ._3ds, let threeDSCore {
- if threeDSCore.isAmiiboSearching() {
- if menuSheet == nil {
- pauseEmulation()
- }
- Log.debug("amiibo正在搜索中")
- FilesImporter.shared.presentImportController(supportedTypes: UTType.binTypes, allowsMultipleSelection: false) { [weak self] urls in
- guard let self = self else { return }
- self.resumeEmulationAndHandleAudio()
- UIView.hideAllAlert { [weak self] in
+ if manicGame.isCitra3DS {
+ if threeDSCore.isAmiiboSearching() {
+ if menuSheet == nil {
+ pauseEmulation()
+ }
+ Log.debug("amiibo正在搜索中")
+ FilesImporter.shared.presentImportController(supportedTypes: UTType.binTypes, allowsMultipleSelection: false) { [weak self] urls in
guard let self = self else { return }
- if let url = urls.first {
- DispatchQueue.main.asyncAfter(delay: 1) {
- self.threeDSCore?.loadAmiibo(path: url.path)
+ self.resumeEmulationAndHandleAudio()
+ UIView.hideAllAlert { [weak self] in
+ guard let self = self else { return }
+ if let url = urls.first {
+ DispatchQueue.main.asyncAfter(delay: 1) {
+ self.threeDSCore?.loadAmiibo(path: url.path)
+ }
}
}
}
+ return false
+ } else {
+ Log.debug("amiibo没有搜索")
+ UIView.makeToast(message: R.string.localizable.amiiboNotSearching())
}
- return false
} else {
- Log.debug("amiibo没有搜索")
- UIView.makeToast(message: R.string.localizable.amiiboNotSearching())
+ //TODO: azahar amiibo
}
}
case .toggleFullscreen:
@@ -1625,9 +1652,16 @@ extension PlayViewController {
case .simBlowing:
//MARK: handleMenuGameSetting.simBlowing
if manicGame.gameType == ._3ds {
- threeDSCore?.setSimBlowing(start: true)
- DispatchQueue.main.asyncAfter(delay: 5) { [weak self] in
- self?.threeDSCore?.setSimBlowing(start: false)
+ if manicGame.isCitra3DS {
+ threeDSCore?.setSimBlowing(start: true)
+ DispatchQueue.main.asyncAfter(delay: 5) { [weak self] in
+ self?.threeDSCore?.setSimBlowing(start: false)
+ }
+ } else {
+ LibretroCore.sharedInstance().updateRunningCoreConfigs(["citra_input_type": "static_noise"], flush: false)
+ DispatchQueue.main.asyncAfter(delay: 5) {
+ LibretroCore.sharedInstance().updateRunningCoreConfigs(["citra_input_type": "frontend"], flush: false)
+ }
}
} else if manicGame.gameType == .ds {
LibretroCore.sharedInstance().updateRunningCoreConfigs(["melonds_mic_input": "blow"], flush: false)
@@ -1846,7 +1880,7 @@ extension PlayViewController {
controler.addReceiver(self)
controler.addReceiver(manicEmuCore)
}
- if let mfi = controler as? MFiGameController, manicGame.gameType.isLibretroType, let playerIndex = mfi.playerIndex {
+ if let mfi = controler as? MFiGameController, manicGame.isLibretroType, let playerIndex = mfi.playerIndex {
if LibretroCore.sharedInstance().getSensorEnable(Int32(playerIndex)) {
mfi.controller.motion?.sensorsActive = true
} else {
@@ -1871,17 +1905,17 @@ extension PlayViewController {
}
private func resumeEmulationAndHandleAudio() {
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
threeDSCore?.resume()
updateAudio()
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
LibretroCore.sharedInstance().resume()
updateAudio()
}
}
private func updateAudio() {
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
if manicGame.volume {
if Settings.defalut.respectSilentMode, muteSwitchMonitor.isMonitoring, muteSwitchMonitor.isMuted {
threeDSCore?.disableVolume()
@@ -1891,7 +1925,7 @@ extension PlayViewController {
} else {
threeDSCore?.disableVolume()
}
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
if Settings.defalut.respectSilentMode, muteSwitchMonitor.isMonitoring, muteSwitchMonitor.isMuted {
LibretroCore.sharedInstance().mute(false)
} else {
@@ -1903,7 +1937,7 @@ extension PlayViewController {
private func updateCheatCodes(firstInit: Bool = false) {
guard !isWFCConnect else { return }
guard !isHardcoreMode else { return }
- if manicGame.gameType == ._3ds {
+ if manicGame.isCitra3DS {
let identifier = manicGame.identifierFor3DS
if identifier != 0 {
var cheatsTxt = ""
@@ -1938,17 +1972,39 @@ extension PlayViewController {
lastPSPCheatCode = cheatsTxt
}
}
- } else if manicGame.gameType.isLibretroType {
+ } else if manicGame.isLibretroType {
DispatchQueue.main.asyncAfter(delay: manicGame.isPicodriveCore && firstInit ? 1 : 0) {
- LibretroCore.sharedInstance().resetCheatCode()
- for (index, cheatCode) in self.manicGame.gameCheats.enumerated() {
- if cheatCode.activate {
- if CheatType(cheatCode.type) == .actionReplay16, self.manicGame.isPicodriveCore, cheatCode.code.count > 6 {
- //MD不支持0123456789格式的作弊码,需要转换成012345:6789格式
- let processedCode = cheatCode.code[...5] + ":" + cheatCode.code[6...]
- LibretroCore.sharedInstance().addCheatCode(String(processedCode), index: UInt32(index), enable: true)
- } else {
- LibretroCore.sharedInstance().addCheatCode(cheatCode.code, index: UInt32(index), enable: true)
+ if self.manicGame.gameType == .arcade, self.manicGame.defaultCore == 1, firstInit, !self.isHardcoreMode {
+ //FBNeo激活作弊码
+ if let configs = LibretroCore.sharedInstance().getConfigs(LibretroCore.Cores.FinalBurnNeo.name) {
+ var needToActivedKeys = [String]()
+ configs.enumerateLines { line, stop in
+ if line.hasPrefix("fbneo-cheat-") {
+ let parts = line.split(separator: "=", maxSplits: 1).map { $0.trimmingCharacters(in: .whitespaces) }
+ if parts.count == 2 {
+ let key = parts[0]
+ let value = parts[1].trimmingCharacters(in: CharacterSet(charactersIn: "\""))
+ if value != "0 - Disabled" {
+ needToActivedKeys.append(key)
+ }
+ }
+ }
+ }
+ if needToActivedKeys.count > 0 {
+ LibretroCore.sharedInstance().updateFBNeoCheatCode(needToActivedKeys, enable: true)
+ }
+ }
+ } else {
+ LibretroCore.sharedInstance().resetCheatCode()
+ for (index, cheatCode) in self.manicGame.gameCheats.enumerated() {
+ if cheatCode.activate {
+ if CheatType(cheatCode.type) == .actionReplay16, self.manicGame.isPicodriveCore, cheatCode.code.count > 6 {
+ //MD不支持0123456789格式的作弊码,需要转换成012345:6789格式
+ let processedCode = cheatCode.code[...5] + ":" + cheatCode.code[6...]
+ LibretroCore.sharedInstance().addCheatCode(String(processedCode), index: UInt32(index), enable: true)
+ } else {
+ LibretroCore.sharedInstance().addCheatCode(cheatCode.code, index: UInt32(index), enable: true)
+ }
}
}
}
@@ -1958,9 +2014,9 @@ extension PlayViewController {
}
private func updateFilter() {
- guard manicGame.gameType != ._3ds else { return }
+ guard !manicGame.isCitra3DS else { return }
- if manicGame.gameType.isLibretroType {
+ if manicGame.isLibretroType {
//Libretro filterName是滤镜的路径
LibretroCore.sharedInstance().setShader(manicGame.libretroShaderPath)
}
@@ -1978,19 +2034,25 @@ extension PlayViewController {
DispatchQueue.main.asyncAfter(delay: 1) { [weak self] in
guard let self = self else { return }
//模拟器如果没有加载好 直接加载存档可能会导致闪退
- if self.manicGame.gameType == ._3ds {
+ if self.manicGame.isCitra3DS {
DispatchQueue.main.asyncAfter(delay: 5) {
self.quickLoadStateFor3DS(saveState)
}
- } else if self.manicGame.gameType.isLibretroType {
- self.quickLoadStateForLibretro(saveState)
+ } else if self.manicGame.isLibretroType {
+ var delay = 0.0
+ if self.manicGame.gameType == .arcade || self.manicGame.isAzahar3DS {
+ delay = 4.0
+ }
+ DispatchQueue.main.asyncAfter(delay: delay) {
+ self.quickLoadStateForLibretro(saveState)
+ }
}
}
}
//设置触感
updateHaptic()
- DispatchQueue.main.asyncAfter(delay: (manicGame.gameType == ._3ds || manicGame.gameType == .psp) ? 0 : 1) { [weak self] in
+ DispatchQueue.main.asyncAfter(delay: (manicGame.isCitra3DS || manicGame.gameType == .psp) ? 0 : 1) { [weak self] in
//加载作弊码
self?.updateCheatCodes(firstInit: true)
//设置AirPlay
@@ -2137,17 +2199,46 @@ extension PlayViewController {
configs: ["reicast_renderer": "Vulkan",
"reicast_language" : Constants.Strings.DCConsoleLanguage[manicGame.region]],
reload: false)
+ } else if manicGame.gameType == .arcade {
+ if manicGame.defaultCore == 0 {
+ LibretroCore.sharedInstance().updateConfig(LibretroCore.Cores.MAME.name, configs: ["mame_cheats_enable": "enabled"], reload: false)
+ LibretroCore.sharedInstance().setLibretroLogMonitor(true)
+ }
+ } else if manicGame.gameType == ._3ds {
+ ThreeDS.isAzaharCore = manicGame.isAzahar3DS
+ if manicGame.isAzahar3DS {
+ var enableJIT = false
+ if LibretroCore.jitAvailable() {
+ if let value = LibretroCore.sharedInstance().coreConfigValue(LibretroCore.Cores.Azahar.name, key: "citra_use_cpu_jit"), value == "disabled" {
+ enableJIT = false
+ } else {
+ enableJIT = true
+ }
+ }
+ LibretroCore.sharedInstance().updateConfig(LibretroCore.Cores.Azahar.name,
+ configs: [
+ "citra_layout_option": "custom",
+ "citra_touch_touchscreen": "enabled",
+ "citra_input_type": "frontend",
+ "citra_use_cpu_jit": enableJIT ? "enabled" : "disabled"
+ ],
+ reload: false)
+ //Azahar核心每次启动都不进行加速,免得闪退
+ Game.change { realm in
+ self.manicGame.speed = .one
+ }
+ }
}
//配置静音模式
- if manicGame.gameType.isLibretroType {
+ if manicGame.isLibretroType {
LibretroCore.sharedInstance().setRespectSilentMode(Settings.defalut.respectSilentMode)
- } else if manicGame.gameType == ._3ds {
+ } else if manicGame.isCitra3DS {
//不需要配置
} else {
manicEmuCore?.audioManager.followSilentMode = Settings.defalut.respectSilentMode
}
- if (manicGame.gameType.isLibretroType || manicGame.gameType == ._3ds) && Settings.defalut.respectSilentMode {
+ if Settings.defalut.respectSilentMode {
//监听静音键
muteSwitchMonitor.startMonitoring { [weak self] isMute in
guard let self else { return }
@@ -2158,21 +2249,22 @@ extension PlayViewController {
}
//Libretro配置
- if manicGame.gameType.isLibretroType {
+ if manicGame.isLibretroType {
var enableLibretroLog = "false"
var libretroLogLevel = "1"
#if DEBUG
enableLibretroLog = "true"
libretroLogLevel = "0"
#endif
- let enableMircophone = manicGame.gameType == .ds && (manicGame.getExtraBool(key: ExtraKey.microphone.rawValue) ?? false)
+ let enableMircophone = (manicGame.gameType == .ds && (manicGame.getExtraBool(key: ExtraKey.microphone.rawValue) ?? false)) || manicGame.isAzahar3DS
LibretroCore.sharedInstance().updateLibretroConfigs([
- "fastforward_frameskip": manicGame.gameType == .ps1 ? "false" : "true",
+ "fastforward_frameskip": "false",
"log_verbosity": enableLibretroLog,
"libretro_log_level": libretroLogLevel,
"camera_driver": ((manicGame.gameType == .gb || manicGame.gameType == .gbc) && manicGame.defaultCore == 1) ? "null" : "avfoundation",
"microphone_enable": enableMircophone ? "true" : "false",
- "microphone_driver": "coreaudio"
+ "microphone_driver": "coreaudio",
+ "audio_latency": "200"
])
if manicGame.isN64ParaLLEl {
LibretroCore.sharedInstance().setReloadDelay(1)
@@ -2226,6 +2318,17 @@ extension PlayViewController {
LibretroCore.sharedInstance().updateLibretroConfig("system_directory", value: Constants.Path.System.libretroPath)
}
}
+
+ //配置控制器死区,
+ ExternalGameControllerUtils.shared.deadZone = Settings.defalut.getExtraFloat(key: ExtraKey.deadZone.rawValue) ?? 0
+ if !manicGame.gameType.supportAnalogInput {
+ //对于没有摇杆输入的平台,如果使用外置控制器的摇杆来映射按键的时候,会有很多不可预见的问题
+ let settingDeadzone = Settings.defalut.getExtraFloat(key: ExtraKey.deadZone.rawValue) ?? 0
+ if settingDeadzone < 0.4 {
+ //强制设置0.4以上可以避免摇杆细微变动输入带来的错误
+ ExternalGameControllerUtils.shared.deadZone = 0.4
+ }
+ }
}
//更新皮肤
@@ -2305,7 +2408,7 @@ extension PlayViewController {
updateFunctionButtonContainer()
}
//更新3DS画面视图
- update3DSViews()
+ updateCitra3DSViews()
//设置Alert的menuInsets
if let menuInsets = getMenuInsets() {
UIView.alertBottomInset = menuInsets.bottom
@@ -2403,19 +2506,19 @@ extension PlayViewController {
/// 更新AirPlay
private func updateAirPlay() {
- guard manicGame.gameType != ._3ds else { return }
+ guard !manicGame.isCitra3DS else { return }
- if manicGame.gameType.isLibretroType {
+ if manicGame.isLibretroType {
if PurchaseManager.isMember, Settings.defalut.airPlay, ExternalSceneDelegate.isAirPlaying {
//执行全屏投屏
if let airPlayViewController = ExternalSceneDelegate.airPlayViewController, let gameMetalView {
gameMetalView.removeFromSuperview()
var dimensions = manicEmuCore?.videoManager.videoFormat.dimensions ?? CGSize(width: 480, height: 360)
- if manicGame.gameType == .ds {
+ if manicGame.gameType == .ds || manicGame.isAzahar3DS {
dimensions.height = dimensions.height/2
}
let scaledDimensions = airPlayViewController.addLibretroView(gameMetalView, dimensions: dimensions, scalingType: Settings.defalut.airPlayScaling)
- updateNDSViews(dimensions: scaledDimensions)
+ updateDualScreenViews(dimensions: scaledDimensions)
updateNDSCursor()
}
} else {
@@ -2579,8 +2682,8 @@ extension PlayViewController {
}
}
- private func update3DSViews() {
- guard manicGame.gameType == ._3ds else { return }
+ private func updateCitra3DSViews() {
+ guard manicGame.isCitra3DS else { return }
guard let controllerSkin = controllerView.controllerSkin as? ControllerSkin else { return }
guard let frames = controllerSkin.getFrames() else { return }
guard let touchGameViewFrame = frames.touchGameViewFrame else { return }
@@ -2616,18 +2719,18 @@ extension PlayViewController {
}
private func updateLibretroViews() {
- guard manicGame.gameType.isLibretroType else { return }
+ guard manicGame.isLibretroType else { return }
if let gameMetalView {
if gameMetalView.superview == view {
gameMetalView.snp.remakeConstraints { make in
- if self.manicGame.gameType == .ds {
+ if self.manicGame.gameType == .ds || self.manicGame.isAzahar3DS {
make.edges.equalTo(controllerView)
} else {
make.edges.equalTo(gameView)
}
}
}
- updateNDSViews()
+ updateDualScreenViews()
} else {
DispatchQueue.main.asyncAfter(delay: 0.35) { [weak self] in
guard let self = self else { return }
@@ -2648,6 +2751,8 @@ extension PlayViewController {
customSaveDir = Constants.Path.bsnes
} else if manicGame.gameType == .ds {
customSaveDir = Constants.Path.DSSavePath
+ } else if manicGame.isAzahar3DS {
+ customSaveDir = Constants.Path.ThreeDS
}
let vc = LibretroCore.sharedInstance().start(withCustomSaveDir: customSaveDir)
@@ -2655,7 +2760,7 @@ extension PlayViewController {
guard let gameMetalView else { return }
self.view.insertSubview(gameMetalView, belowSubview: controllerView)
gameMetalView.snp.makeConstraints { make in
- if self.manicGame.gameType == .ds {
+ if self.manicGame.gameType == .ds || self.manicGame.isAzahar3DS {
make.edges.equalTo(self.controllerView)
} else {
make.edges.equalTo(self.gameView)
@@ -2672,10 +2777,11 @@ extension PlayViewController {
}
}
}
- self.updateNDSViews()
+ self.updateDualScreenViews()
LibretroCore.sharedInstance().setCustomSaveExtension(customSaveExtension)
if self.manicGame.isNDSHomeMenuGame || self.manicGame.isDSiHomeMenuGame {
LibretroCore.sharedInstance().loadWithoutContent(corePath)
+ //TODO: Azahar的home menu加载
} else {
LibretroCore.sharedInstance().loadGame(manicGame.romUrl.path, corePath: corePath, completion: compltion)
}
@@ -2691,7 +2797,7 @@ extension PlayViewController {
LibretroCore.sharedInstance().startWFCStatusMonitor()
}
DispatchQueue.main.asyncAfter(delay: 2.5) {
- self.manicEmuCore?.setRate(speed: self.manicGame.speed)
+ self.updateFastforward(speed: self.manicGame.speed)
}
}
}
@@ -2699,8 +2805,8 @@ extension PlayViewController {
}
}
- private func updateNDSViews(dimensions: CGSize = CGSize(width: 480, height: 360)) {
- guard manicGame.gameType == .ds else { return }
+ private func updateDualScreenViews(dimensions: CGSize = CGSize(width: 480, height: 360)) {
+ guard manicGame.gameType == .ds || manicGame.isAzahar3DS else { return }
if ExternalSceneDelegate.isAirPlaying {
let layoutType = Settings.defalut.airPlayLayout
@@ -2709,36 +2815,55 @@ extension PlayViewController {
let scale = UIScreen.main.scale
let dimensions = dimensions.applying(CGAffineTransform(scaleX: scale, y: scale))
let bufferSize = "\(dimensions.width),\(dimensions.height)"
+ let bottomRatio = 0.75 //NDS和3DS的bottom屏幕都是3:4
switch layoutType {
case .embeddedTopLeft, .embeddedTopRight, .embeddedBottomLeft, .embeddedBottomRight:
+ let bottomWidth = dimensions.width*ratio
+ let bottomHeight = bottomWidth*bottomRatio
var bottomOrigin = "\(0),\(0)"
if layoutType == .embeddedTopRight {
bottomOrigin = "\(dimensions.width*(1-ratio)),\(0)"
} else if layoutType == .embeddedBottomLeft {
- bottomOrigin = "\(0),\(dimensions.height*(1-ratio))"
+ bottomOrigin = "\(0),\(dimensions.height-bottomHeight)"
} else if layoutType == .embeddedBottomRight {
- bottomOrigin = "\(dimensions.width*(1-ratio)),\(dimensions.height*(1-ratio))"
+ bottomOrigin = "\(dimensions.width*(1-ratio)),\(dimensions.height-bottomHeight)"
}
- layout = "\(0),\(0),\(dimensions.width),\(dimensions.height),\(bottomOrigin),\(dimensions.width*ratio),\(dimensions.height*ratio),\(bufferSize)"
-
+ layout = "\(0),\(0),\(dimensions.width),\(dimensions.height),\(bottomOrigin),\(bottomWidth),\(bottomHeight),\(bufferSize)"
case .sideBySide:
- layout = "\(0),\(0),\(dimensions.width/2),\(dimensions.height),\(dimensions.width/2),\(0),\(dimensions.width/2),\(dimensions.height),\(bufferSize)"
+ let topWidth = dimensions.width/2
+ let topHeight = topWidth*dimensions.height/dimensions.width
+ let topY = (dimensions.height - topHeight)/2
+ let bottomWidth = topWidth
+ let bottomHeight = bottomWidth*bottomRatio
+ let bottomY = (dimensions.height - bottomHeight)/2
+ layout = "\(0),\(topY),\(topWidth),\(topHeight),\(dimensions.width/2),\(bottomY),\(bottomWidth),\(bottomHeight),\(bufferSize)"
case .stacked:
- layout = "\(0),\(0),\(dimensions.width),\(dimensions.height/2),\(0),\(dimensions.height/2),\(dimensions.width),\(dimensions.height/2),\(bufferSize)"
+ let topHeight = dimensions.height/2
+ let topWidth = topHeight*dimensions.width/dimensions.height
+ let topX = (dimensions.width - topWidth)/2
+ let bottomHeight = topHeight
+ let bottomWidth = bottomHeight/bottomRatio
+ let bottomX = (dimensions.width - bottomWidth)/2
+ layout = "\(topX),\(0),\(topWidth),\(topHeight),\(bottomX),\(dimensions.height/2),\(bottomWidth),\(bottomHeight),\(bufferSize)"
case .largeSmallTopLeft, .largeSmallTopRight, .largeSmallBottomLeft, .largeSmallBottomRight:
- var topX = "\(dimensions.width*ratio)"
+ var topX = dimensions.width*ratio
if layoutType == .largeSmallTopRight || layoutType == .largeSmallBottomRight {
- topX = "\(0)"
- }
- var bottomOrigin = "\(0),\(0)"
+ topX = 0
+ }
+ let topWidth = dimensions.width*(1-ratio)
+ let topHeight = topWidth*dimensions.height/dimensions.width
+ let bottomWidth = dimensions.width*ratio
+ let bottomHeight = bottomWidth*bottomRatio
+ let topY = (dimensions.height - topHeight)/2
+ var bottomOrigin = CGPoint(x: 0, y: topY)
if layoutType == .largeSmallTopRight {
- bottomOrigin = "\(dimensions.width*(1-ratio)),\(0)"
+ bottomOrigin = CGPoint(x: dimensions.width*(1-ratio), y: topY)
} else if layoutType == .largeSmallBottomLeft {
- bottomOrigin = "\(0),\(dimensions.height*(1-ratio))"
+ bottomOrigin = CGPoint(x: 0, y: topY + topHeight - bottomHeight)
} else if layoutType == .largeSmallBottomRight {
- bottomOrigin = "\(dimensions.width*(1-ratio)),\(dimensions.height*(1-ratio))"
+ bottomOrigin = CGPoint(x: dimensions.width*(1-ratio), y: topY + topHeight - bottomHeight)
}
- layout = "\(topX),\(0),\(dimensions.width*(1-ratio)),\(dimensions.height),\(bottomOrigin),\(dimensions.width*ratio),\(dimensions.height*ratio),\(bufferSize)"
+ layout = "\(topX),\(topY),\(topWidth),\(topHeight),\(bottomOrigin.x),\(bottomOrigin.y),\(bottomWidth),\(bottomHeight),\(bufferSize)"
case .singleScreen:
layout = "\(0),\(0),\(dimensions.width),\(dimensions.height),\(0),\(0),\(0),\(0),\(bufferSize)"
@@ -2755,29 +2880,37 @@ extension PlayViewController {
}
Log.debug(">>>>>传入核心的Layout:\(layout)")
- LibretroCore.sharedInstance().setNDSCustomLayout(layout)
+ if manicGame.gameType == .ds {
+ LibretroCore.sharedInstance().setNDSCustomLayout(layout)
+ } else {
+ LibretroCore.sharedInstance().set3DSCustomLayout(layout)
+ }
let params = (manicGame.swapScreen ? (layout.components(separatedBy: ",")[0...3]) : (layout.components(separatedBy: ",")[4...7])).compactMap({ $0.cgFloat() })
if params.count == 4 {
- DSEmulatorBridge.shared.touchInputFrame = CGRect(x: params[0], y: params[1], width: params[2], height: params[3])
+ if manicGame.gameType == .ds {
+ DSEmulatorBridge.shared.touchInputFrame = CGRect(x: params[0], y: params[1], width: params[2], height: params[3]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
+ } else {
+ AzaharEmulatorBridge.shared.touchInputFrame = CGRect(x: params[0], y: params[1], width: params[2], height: params[3]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
+ }
+
}
} else {
- //DS的屏幕需要跟随gameViews的更新而更新
- /**
- Custom layout parameters as comma-separated values:
- topX,topY,topWidth,topHeight,bottomX,bottomY,bottomWidth,bottomHeight,bufferWidth,bufferHeight.
-
- Example: "0,0,256,192,256,0,256,192,512,384",
- */
+ //屏幕需要跟随gameViews的更新而更新
guard let controllerSkin = controllerView.controllerSkin as? ControllerSkin else { return }
guard let frames = controllerSkin.getFrames(scale: UIScreen.main.scale) else { return }
let skinframe = frames.skinFrame
let topFrame = frames.mainGameViewFrame
let bottomFrame = frames.touchGameViewFrame ?? .zero
- Log.debug("更新NDS的layout skin:\(frames.skinFrame) top:\(topFrame) bottom:\(bottomFrame)")
+ Log.debug("更新双屏的layout skin:\(frames.skinFrame) top:\(topFrame) bottom:\(bottomFrame)")
let layout = "\(topFrame.minX),\(topFrame.minY),\(topFrame.width),\(topFrame.height),\(bottomFrame.minX),\(bottomFrame.minY),\(bottomFrame.width),\(bottomFrame.height),\(skinframe.width),\(skinframe.height)"
Log.debug(">>>>>传入核心的Layout:\(layout)")
- LibretroCore.sharedInstance().setNDSCustomLayout(layout)
- DSEmulatorBridge.shared.touchInputFrame = controllerSkin.getFrames()?.touchGameViewFrame ?? .zero
+ if manicGame.gameType == .ds {
+ LibretroCore.sharedInstance().setNDSCustomLayout(layout)
+ DSEmulatorBridge.shared.touchInputFrame = controllerSkin.getFrames()?.touchGameViewFrame ?? .zero
+ } else {
+ LibretroCore.sharedInstance().set3DSCustomLayout(layout)
+ AzaharEmulatorBridge.shared.touchInputFrame = controllerSkin.getFrames()?.touchGameViewFrame ?? .zero
+ }
}
}
@@ -2797,7 +2930,7 @@ extension PlayViewController {
}
}
- private func snapShotForNDS(topOnly: Bool = false, source: UIImage) -> [UIImage]? {
+ private func snapShotForDualScreen(topOnly: Bool = false, source: UIImage) -> [UIImage]? {
guard let controllerSkin = controllerView.controllerSkin as? ControllerSkin else { return nil }
guard let frames = controllerSkin.getFrames() else { return nil }
var screenImage = source
@@ -3199,6 +3332,29 @@ extension PlayViewController {
UIView.makeToast(message: R.string.localizable.disableTriggerPro())
}
}
+
+ private func updateFastforward(speed: GameSetting.FastForwardSpeed) {
+ guard manicGame.isLibretroType else { return }
+ switch speed {
+ case .one, .two:
+ LibretroCore.sharedInstance().setFastforwardFrameSkip(false)
+ default:
+ LibretroCore.sharedInstance().setFastforwardFrameSkip(manicGame.gameType == .ps1 ? false : true)
+ }
+ switch speed {
+ case .one:
+ LibretroCore.sharedInstance().fastForward(0.0)
+ case .two:
+ LibretroCore.sharedInstance().fastForward(1.35)
+ case .three:
+ LibretroCore.sharedInstance().fastForward(3)
+ case .four:
+ LibretroCore.sharedInstance().fastForward(5)
+ case .five:
+ LibretroCore.sharedInstance().fastForward(7)
+ }
+ }
+
}
//MARK: GameViewControllerDelegate代理
@@ -3216,7 +3372,7 @@ extension PlayViewController: GameViewControllerDelegate {
if SheetProvider.find(identifier: Constants.Strings.PlayPurchaseAlertIdentifier).count > 0 {
return false
}
- return (GameSettingView.isShow || GameInfoView.isShow || CheatCodeListView.isShow || SkinSettingsView.isShow || FilterSelectionView.isShow || ControllersSettingView.isShow || GameSettingView.isEditingShow || WebViewController.isShow || FlexSkinSettingViewController.isShow || RetroAchievementsListViewController.isShow || CheevosPopupView.isShow || GameplayManualsView.isShow) ? false : true
+ return (GameSettingView.isShow || GameInfoView.isShow || CheatCodeListView.isShow || SkinSettingsView.isShow || FilterSelectionView.isShow || ControllersSettingView.isShow || GameSettingView.isEditingShow || WebViewController.isShow || FlexSkinSettingViewController.isShow || RetroAchievementsListViewController.isShow || CheevosPopupView.isShow || GameplayManualsView.isShow || FBNeoCheatCodeListView.isShow) ? false : true
}
}
@@ -3225,11 +3381,11 @@ extension PlayViewController: GameViewControllerDelegate {
extension PlayViewController {
static var isGaming: Bool { currentPlayViewController != nil }
- static var playingGameType: GameType {
- if let currentPlayViewController {
- return currentPlayViewController.manicGame.gameType
+ static var enableAirplay: Bool {
+ if let currentPlayViewController, !currentPlayViewController.manicGame.isCitra3DS {
+ return true
}
- return .unknown
+ return false
}
static var currentSkinID: String? {
diff --git a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementListView.swift b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementListView.swift
index f721be89..3de257fe 100644
--- a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementListView.swift
@@ -97,7 +97,7 @@ class RetroAchievementListView: BaseView {
let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
heightDimension: .fractionalHeight(1)))
//group布局
- let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(1058)), subitems: [item])
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(1018)), subitems: [item])
group.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)
//section布局
let section = NSCollectionLayoutSection(group: group)
diff --git a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsListCell.swift b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsListCell.swift
index ed6bb8ab..bf130169 100644
--- a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsListCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsListCell.swift
@@ -444,14 +444,21 @@ class RetroAchievementsListCell: UICollectionViewCell {
make.trailing.equalTo(progressLabel)
}
+ let container = UIView()
+ container.layerCornerRadius = Constants.Size.CornerRadiusMax
+ container.backgroundColor = Constants.Color.BackgroundPrimary
+ addSubview(container)
+ container.snp.makeConstraints { make in
+ make.height.equalTo(Constants.Size.ItemHeightMax * 3)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(lastActivityIcon.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ }
+
let enableContainer = UIView()
- enableContainer.layerCornerRadius = Constants.Size.CornerRadiusMax
- enableContainer.backgroundColor = Constants.Color.BackgroundPrimary
- addSubview(enableContainer)
+ container.addSubview(enableContainer)
enableContainer.snp.makeConstraints { make in
make.height.equalTo(Constants.Size.ItemHeightMax)
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(lastActivityIcon.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.top.trailing.equalToSuperview()
}
let enableIcon = UIImageView(image: .symbolImage(.gamecontrollerFill).applySymbolConfig(size: 19, color: Constants.Color.LabelPrimary))
enableIcon.contentMode = .center
@@ -491,13 +498,11 @@ class RetroAchievementsListCell: UICollectionViewCell {
}
let hardcoreContainer = UIView()
- hardcoreContainer.layerCornerRadius = Constants.Size.CornerRadiusMax
- hardcoreContainer.backgroundColor = Constants.Color.BackgroundPrimary
- addSubview(hardcoreContainer)
+ container.addSubview(hardcoreContainer)
hardcoreContainer.snp.makeConstraints { make in
make.height.equalTo(Constants.Size.ItemHeightMax)
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(enableContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(enableContainer.snp.bottom)
}
let hardcoreIcon = UIImageView(image: .symbolImage(.flameFill).applySymbolConfig(size: 19, color: Constants.Color.LabelPrimary))
hardcoreIcon.contentMode = .center
@@ -538,13 +543,11 @@ class RetroAchievementsListCell: UICollectionViewCell {
}
let alwaysShowProgressContainer = UIView()
- alwaysShowProgressContainer.layerCornerRadius = Constants.Size.CornerRadiusMax
- alwaysShowProgressContainer.backgroundColor = Constants.Color.BackgroundPrimary
- addSubview(alwaysShowProgressContainer)
+ container.addSubview(alwaysShowProgressContainer)
alwaysShowProgressContainer.snp.makeConstraints { make in
make.height.equalTo(Constants.Size.ItemHeightMax)
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(hardcoreContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(hardcoreContainer.snp.bottom)
}
let alwaysShowProgressIcon = UIImageView(image: .symbolImage(.squareTextSquareFill).applySymbolConfig(size: 19, color: Constants.Color.LabelPrimary))
alwaysShowProgressIcon.contentMode = .center
diff --git a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileCell.swift b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileCell.swift
index 07f87017..e0e7474d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileCell.swift
@@ -379,14 +379,22 @@ class RetroAchievementsProfileCell: UICollectionViewCell {
make.leading.equalTo(memberSinceIcon.snp.trailing).offset(6)
}
+ let container = UIView()
+ container.layerCornerRadius = Constants.Size.CornerRadiusMax
+ container.backgroundColor = Constants.Color.BackgroundPrimary
+ addSubview(container)
+ container.snp.makeConstraints { make in
+ make.height.equalTo(Constants.Size.ItemHeightMax * 2)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(memberSinceLabel.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ }
+
let enableContainer = UIView()
- enableContainer.layerCornerRadius = Constants.Size.CornerRadiusMax
- enableContainer.backgroundColor = Constants.Color.BackgroundPrimary
- addSubview(enableContainer)
+ container.addSubview(enableContainer)
enableContainer.snp.makeConstraints { make in
make.height.equalTo(Constants.Size.ItemHeightMax)
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(memberSinceLabel.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview()
+ make.top.equalToSuperview()
}
let enableIcon = UIImageView(image: .symbolImage(.gamecontrollerFill).applySymbolConfig(size: 19, color: Constants.Color.LabelPrimary))
enableIcon.contentMode = .center
@@ -426,13 +434,11 @@ class RetroAchievementsProfileCell: UICollectionViewCell {
}
let hardcoreContainer = UIView()
- hardcoreContainer.layerCornerRadius = Constants.Size.CornerRadiusMax
- hardcoreContainer.backgroundColor = Constants.Color.BackgroundPrimary
- addSubview(hardcoreContainer)
+ container.addSubview(hardcoreContainer)
hardcoreContainer.snp.makeConstraints { make in
make.height.equalTo(Constants.Size.ItemHeightMax)
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(enableContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(enableContainer.snp.bottom)
}
let hardcoreIcon = UIImageView(image: .symbolImage(.flameFill).applySymbolConfig(size: 19, color: Constants.Color.LabelPrimary))
hardcoreIcon.contentMode = .center
diff --git a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileView.swift b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileView.swift
index 09bdf9f5..8c85e081 100644
--- a/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/RetroAchievements/Views/RetroAchievementsProfileView.swift
@@ -48,7 +48,7 @@ class RetroAchievementsProfileView: BaseView {
let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
heightDimension: .fractionalHeight(1)))
//group布局
- let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(775)), subitems: [item])
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(755)), subitems: [item])
group.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)
//section布局
let section = NSCollectionLayoutSection(group: group)
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
index 5daa0752..2a869d8b 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
@@ -10,7 +10,7 @@
struct SettingItem {
enum ItemType: String {
- case theme, quickGame, airPlay, iCloud, fullScreenWhenConnectController, FAQ, feedback, shareApp, qq, telegram, discord, clearCache, language, userAgreement, privacyPolicy, autoSaveState, bios, respectSilentMode, onlinePlay, about, retro, rumble, appearance, triggerPro
+ case theme, quickGame, airPlay, iCloud, fullScreenWhenConnectController, FAQ, feedback, shareApp, qq, telegram, discord, clearCache, language, userAgreement, privacyPolicy, autoSaveState, bios, respectSilentMode, onlinePlay, about, retro, rumble, appearance, triggerPro, skin, jit
}
var type: ItemType
@@ -25,13 +25,13 @@ struct SettingItem {
return Constants.Color.Yellow
case .autoSaveState, .onlinePlay, .feedback, .clearCache:
return Constants.Color.Green
- case .airPlay, .FAQ, .about, .rumble:
+ case .airPlay, .FAQ, .about, .rumble, .jit:
return Constants.Color.Indigo
case .iCloud, .userAgreement, .appearance:
return Constants.Color.Blue
case .fullScreenWhenConnectController, .shareApp, .triggerPro:
return Constants.Color.Orange
- case .bios, .language:
+ case .bios, .language, .skin:
return Constants.Color.Pink
case .qq, .telegram, .discord, .retro:
return .clear
@@ -96,6 +96,10 @@ struct SettingItem {
R.image.customMoonphaseFirstQuarter()!.applySymbolConfig(font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
case .triggerPro:
R.image.customXmarkTriangleCircleSquare()!.applySymbolConfig(font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ case .skin:
+ UIImage(symbol: .tshirtFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ case .jit:
+ UIImage(symbol: .boltFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
}
}
@@ -149,6 +153,10 @@ struct SettingItem {
R.string.localizable.appearance()
case .triggerPro:
"TriggerPro"
+ case .skin:
+ R.string.localizable.gamesSpecifySkin()
+ case .jit:
+ "JIT"
}
}
@@ -157,8 +165,6 @@ struct SettingItem {
return R.string.localizable.quickGameDetail()
} else if type == .airPlay {
return R.string.localizable.airPlayDetail()
- } else if type == .iCloud {
- return R.string.localizable.iCloudDetail()
} else if type == .fullScreenWhenConnectController {
return R.string.localizable.fullScreenWhenConnectControllerDetail()
} else if type == .theme {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/Settings.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/Settings.swift
index 684d3f68..9ac1c82f 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/Settings.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/Settings.swift
@@ -55,6 +55,7 @@ class Settings: Object, ObjectUpdatable {
//关闭iCloud同步
SyncManager.shared.stopSync()
}
+ NotificationCenter.default.post(name: Constants.NotificationName.iCloudEnableChange, object: nil)
}
get {
UserDefaults.standard.bool(forKey: "iCloudSyncEnable")
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/JITSettingViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/JITSettingViewController.swift
new file mode 100644
index 00000000..02610f82
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/JITSettingViewController.swift
@@ -0,0 +1,38 @@
+//
+// JITSettingViewController.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/15.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+class JITSettingViewController: BaseViewController {
+ private lazy var jitSettingView: JITSettingView = {
+ let view = JITSettingView(showClose: self.showClose)
+ view.didTapClose = {[weak self] in
+ self?.dismiss(animated: true)
+ }
+ return view
+ }()
+
+ let showClose: Bool
+
+ init(showClose: Bool = true) {
+ self.showClose = showClose
+ super.init(nibName: nil, bundle: nil)
+ }
+
+ @MainActor required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.addSubview(jitSettingView)
+ jitSettingView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/MAMEBiosViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/MAMEBiosViewController.swift
new file mode 100644
index 00000000..4c26bf3e
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/MAMEBiosViewController.swift
@@ -0,0 +1,26 @@
+//
+// MAMEBiosViewController.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/19.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class MAMEBiosViewController: BaseViewController {
+ private lazy var mameBiosView: MAMEBiosView = {
+ let view = MAMEBiosView()
+ view.didTapClose = {[weak self] in
+ self?.dismiss(animated: true)
+ }
+ return view
+ }()
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.addSubview(mameBiosView)
+ mameBiosView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/iCloudSettingViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/iCloudSettingViewController.swift
new file mode 100644
index 00000000..267e1b67
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/ViewControllers/iCloudSettingViewController.swift
@@ -0,0 +1,38 @@
+//
+// iCloudSettingViewController.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/15.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+class ICloudSettingViewController: BaseViewController {
+ private lazy var iCloudSettingView: ICloudSettingView = {
+ let view = ICloudSettingView(showClose: self.showClose)
+ view.didTapClose = {[weak self] in
+ self?.dismiss(animated: true)
+ }
+ return view
+ }()
+
+ let showClose: Bool
+
+ init(showClose: Bool = true) {
+ self.showClose = showClose
+ super.init(nibName: nil, bundle: nil)
+ }
+
+ @MainActor required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.addSubview(iCloudSettingView)
+ iCloudSettingView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSCollectionViewCell.swift
index 23897538..48e52da6 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSCollectionViewCell.swift
@@ -133,6 +133,8 @@ class BIOSCollectionViewCell: UICollectionViewCell {
biosItems = Constants.BIOS.PMBios
} else if gameType == ._3ds {
biosItems = Constants.BIOS.ThreeDSBios
+ } else if gameType == .arcade {
+ biosItems = Constants.BIOS.ArcadeDSBios
}
let fileManager = FileManager.default
for (index, bios) in biosItems.enumerated() {
@@ -210,13 +212,19 @@ class BIOSCollectionViewCell: UICollectionViewCell {
UIView.makeLoading()
DispatchQueue.global().async {
var matchs = [(url: URL, fileName: String)]()
+ var mameMatchs = [(url: URL, fileName: String)]()
for url in urls {
biosItems.forEach({ bios in
if url.lastPathComponent.lowercased() == bios.fileName.lowercased() {
matchs.append((url, bios.fileName))
+ } else if bios.fileName == Constants.Strings.MAMEBiosTitle,
+ let _ = Constants.BIOS.MAMEBiosMap[url.lastPathComponent.lowercased()] {
+ //MAME Bios特殊匹配
+ mameMatchs.append((url, url.lastPathComponent.lowercased()))
}
})
}
+
var import3DSNandSuccess = true
if matchs.count > 0 {
for match in matchs {
@@ -235,10 +243,16 @@ class BIOSCollectionViewCell: UICollectionViewCell {
matchs.removeAll(where: { $0.fileName.lowercased() == "nand.zip" })
}
}
+
+ if mameMatchs.count > 0 {
+ for match in mameMatchs {
+ try? FileManager.safeCopyItem(at: match.url, to: URL(fileURLWithPath: Constants.Path.Data.appendingPathComponent(match.fileName)), shouldReplace: true)
+ }
+ }
DispatchQueue.main.async {
UIView.hideLoading()
- if matchs.count > 0 {
- UIView.makeToast(message: R.string.localizable.biosImportSuccess(matchs.reduce("") { $0 + $1.fileName + "\n" }))
+ if matchs.count > 0 || mameMatchs.count > 0 {
+ UIView.makeToast(message: R.string.localizable.biosImportSuccess((matchs+mameMatchs).reduce("") { $0 + $1.fileName + "\n" }))
importSuccess?()
} else {
UIView.makeToast(message: R.string.localizable.biosImportFailed())
@@ -361,6 +375,8 @@ class BIOSCollectionViewCell: UICollectionViewCell {
itemCount = Constants.BIOS.PMBios.count
} else if gameType == ._3ds {
itemCount = Constants.BIOS.ThreeDSBios.count
+ } else if gameType == .arcade {
+ itemCount = Constants.BIOS.ArcadeDSBios.count
}
return (Double(itemCount) * Constants.Size.ItemHeightMax) + (Double(itemCount + 1) * Constants.Size.ContentSpaceMid)
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSSelectionView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSSelectionView.swift
index e602489e..fc42c028 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSSelectionView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/BIOSSelectionView.swift
@@ -14,10 +14,11 @@ import IceCream
class BIOSSelectionView: BaseView {
private enum SectionIndex: Int, CaseIterable {
- case desc, mcd, ss, ds, ps1, dc, gb, gbc, gba, fds, pm, _3ds
+ case desc, arcade, mcd, ss, ds, ps1, dc, gb, gbc, gba, fds, pm, _3ds
var title: String {
switch self {
case .desc: ""
+ case .arcade: GameType.arcade.localizedName
case .mcd: GameType.mcd.localizedName
case .ss: GameType.ss.localizedName
case .ds: GameType.ds.localizedName
@@ -35,6 +36,7 @@ class BIOSSelectionView: BaseView {
var gameType: GameType {
switch self {
case .desc: return .notSupport
+ case .arcade: return .arcade
case .mcd: return .mcd
case .ss: return .ss
case .ds: return .ds
@@ -112,12 +114,14 @@ class BIOSSelectionView: BaseView {
self.datas = [.desc, .pm]
} else if let gameType, gameType == ._3ds {
self.datas = [.desc, ._3ds]
- } else {
+ } else if let gameType, gameType == .arcade {
+ self.datas = [.desc, .arcade]
+ } else {
#if SIDE_LOAD
- self.datas = [.desc, ._3ds, .dc, .ps1, .mcd, .ss, .ds, .gb, .gbc, .gba, .fds, .pm]
+ self.datas = [.desc, .arcade, ._3ds, .dc, .ps1, .mcd, .ss, .ds, .gb, .gbc, .gba, .fds, .pm]
#else
//AppStore版本禁用MCD
- self.datas = [.desc, ._3ds, .dc, .ps1, .ss, .ds, .gb, .gbc, .gba, .fds, .pm]
+ self.datas = [.desc, .arcade, ._3ds, .dc, .ps1, .ss, .ds, .gb, .gbc, .gba, .fds, .pm]
#endif
}
super.init(frame: .zero)
@@ -269,5 +273,10 @@ extension BIOSSelectionView: UICollectionViewDataSource {
}
extension BIOSSelectionView: UICollectionViewDelegate {
-
+ func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+ let section = datas[indexPath.section]
+ if section == .arcade {
+ topViewController()?.present(MAMEBiosViewController(), animated: true)
+ }
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/CoverStyleCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/CoverStyleCollectionViewCell.swift
index e0191bbf..4eb5c020 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/CoverStyleCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/CoverStyleCollectionViewCell.swift
@@ -63,9 +63,8 @@ class CoverStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private var forceSquareIconView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
+ private var forceSquareIconView: IconView = {
+ let view = IconView()
view.layerCornerRadius = 6
view.image = UIImage(symbol: .square, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
return view
@@ -78,8 +77,8 @@ class CoverStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private var hideGameTitleIconView: UIImageView = {
- let view = UIImageView()
+ private var hideGameTitleIconView: IconView = {
+ let view = IconView()
view.contentMode = .center
view.layerCornerRadius = 6
view.image = UIImage(symbol: .characterTextbox, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
@@ -114,7 +113,7 @@ class CoverStyleCollectionViewCell: UICollectionViewCell {
segmentView.setIndex(style.rawValue)
addSubview(segmentView)
segmentView.snp.makeConstraints { make in
- make.leading.top.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
+ make.leading.top.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
make.height.equalTo(Constants.Size.ItemHeightMid)
}
segmentView.on(.valueChanged) { [weak self] sender, forEvent in
@@ -168,22 +167,29 @@ class CoverStyleCollectionViewCell: UICollectionViewCell {
self.updateCornerRadiusRatio(ratio: self.sliderView.value)
}
+ let cornerContainer = UIView()
+ cornerContainer.backgroundColor = Constants.Color.Background
+ cornerContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
+ addSubview(cornerContainer)
+ cornerContainer.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(sliderView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.height.equalTo(Constants.Size.ItemHeightMax * 2)
+ }
+
//开关
let forceSquareContainer = UIView()
- forceSquareContainer.backgroundColor = Constants.Color.Background
- forceSquareContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
- addSubview(forceSquareContainer)
+ cornerContainer.addSubview(forceSquareContainer)
forceSquareContainer.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(sliderView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.top.trailing.equalToSuperview()
make.height.equalTo(Constants.Size.ItemHeightMax)
}
forceSquareContainer.addSubview(forceSquareIconView)
forceSquareIconView.backgroundColor = Constants.Color.Main
forceSquareIconView.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMin)
- make.size.equalTo(Constants.Size.IconSizeMid)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
make.centerY.equalToSuperview()
}
@@ -228,20 +234,18 @@ class CoverStyleCollectionViewCell: UICollectionViewCell {
//隐藏游戏标题
let hideGameTitleContainer = UIView()
- hideGameTitleContainer.backgroundColor = Constants.Color.Background
- hideGameTitleContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
- addSubview(hideGameTitleContainer)
+ cornerContainer.addSubview(hideGameTitleContainer)
hideGameTitleContainer.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(forceSquareContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(forceSquareContainer.snp.bottom)
make.height.equalTo(Constants.Size.ItemHeightMax)
}
hideGameTitleContainer.addSubview(hideGameTitleIconView)
hideGameTitleIconView.backgroundColor = Constants.Color.Main
hideGameTitleIconView.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMin)
- make.size.equalTo(Constants.Size.IconSizeMid)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
make.centerY.equalToSuperview()
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/GameListStyleCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/GameListStyleCollectionViewCell.swift
index 0b654f49..fe512e89 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/GameListStyleCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/GameListStyleCollectionViewCell.swift
@@ -31,7 +31,7 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
private var gamesPerRowLabel: UILabel = {
let label = UILabel()
- label.font = Constants.Font.body(size: .l)
+ label.font = Constants.Font.body(size: .s)
label.textColor = Constants.Color.LabelSecondary
label.text = R.string.localizable.gamesPerRowTitle()
return label
@@ -59,15 +59,14 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
private var groupTitleStyleLabel: UILabel = {
let label = UILabel()
- label.font = Constants.Font.body(size: .l)
+ label.font = Constants.Font.body(size: .s)
label.textColor = Constants.Color.LabelSecondary
label.text = R.string.localizable.groupTitleStyelDesc()
return label
}()
- private var hideScrollIndicatorIconView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
+ private var hideScrollIndicatorIconView: IconView = {
+ let view = IconView()
view.layerCornerRadius = 6
view.image = UIImage(symbol: .calendarDayTimelineTrailing, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
return view
@@ -80,9 +79,8 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private var hideGroupTitleIconView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
+ private var hideGroupTitleIconView: IconView = {
+ let view = IconView()
view.layerCornerRadius = 6
view.image = UIImage(symbol: .listBullet, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
return view
@@ -95,13 +93,20 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
return view
}()
+ private var filterSwitchButton: DisabledTapSwitch = {
+ let view = DisabledTapSwitch()
+ view.onTintColor = Constants.Color.Main
+ view.tintColor = Constants.Color.BackgroundSecondary
+ return view
+ }()
+
private lazy var gameSortTypeMenuButton: ContextMenuButton = {
var actions: [UIMenuElement] = []
var sortType = GameSortType.allCases.map { $0.title }
for (index, type) in sortType.enumerated() {
actions.append((UIAction(title: type) { [weak self] _ in
guard let self = self else { return }
- self.gameSortTypeButton.titleLabel.text = type
+ self.gameSortTypeLabel.text = type
Theme.defalut.updateExtra(key: ExtraKey.gameSortType.rawValue, value: index)
NotificationCenter.default.post(name: Constants.NotificationName.GameSortChange, object: nil)
}))
@@ -110,16 +115,12 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private lazy var gameSortTypeButton: SymbolButton = {
- var title: String = (GameSortType(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortType.rawValue) ?? 0) ?? .title).title
- let view = SymbolButton(image: .symbolImage(.arrowUpArrowDown).applySymbolConfig(size: 13), title: title, titleFont: Constants.Font.body(), horizontalContian: true, titlePosition: .left)
- view.backgroundColor = Constants.Color.BackgroundPrimary
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- view.addTapGesture { [weak self] gesture in
- guard let self = self else { return }
- self.gameSortTypeMenuButton.triggerTapGesture()
- }
- return view
+ private lazy var gameSortTypeLabel: UILabel = {
+ let label = UILabel()
+ label.text = (GameSortType(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortType.rawValue) ?? 0) ?? .title).title
+ label.textColor = Constants.Color.LabelSecondary
+ label.font = Constants.Font.caption(size: .l)
+ return label
}()
private lazy var gameSortOrderMenuButton: ContextMenuButton = {
@@ -128,7 +129,7 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
for (index, order) in sortOrder.enumerated() {
actions.append((UIAction(title: order) { [weak self] _ in
guard let self = self else { return }
- self.gameSortOrderButton.titleLabel.text = order
+ self.gameSortOrderLabel.text = order
Theme.defalut.updateExtra(key: ExtraKey.gameSortOrder.rawValue, value: index)
NotificationCenter.default.post(name: Constants.NotificationName.GameSortChange, object: nil)
}))
@@ -137,16 +138,12 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private lazy var gameSortOrderButton: SymbolButton = {
- var title: String = (GameSortOrder(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortOrder.rawValue) ?? 0) ?? .ascending).title
- let view = SymbolButton(image: .symbolImage(.chevronUpChevronDown).applySymbolConfig(size: 13), title: title, titleFont: Constants.Font.body(), horizontalContian: true, titlePosition: .left)
- view.backgroundColor = Constants.Color.BackgroundPrimary
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- view.addTapGesture { [weak self] gesture in
- guard let self = self else { return }
- self.gameSortOrderMenuButton.triggerTapGesture()
- }
- return view
+ private lazy var gameSortOrderLabel: UILabel = {
+ let label = UILabel()
+ label.text = (GameSortOrder(rawValue: Theme.defalut.getExtraInt(key: ExtraKey.gameSortOrder.rawValue) ?? 0) ?? .ascending).title
+ label.textColor = Constants.Color.LabelSecondary
+ label.font = Constants.Font.caption(size: .l)
+ return label
}()
private lazy var backgroundImageView: UIImageView = {
@@ -160,18 +157,20 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
image = R.image.brand_icon()
}
let view = UIImageView(image: image)
+ view.isUserInteractionEnabled = true
view.contentMode = contentMode
view.backgroundColor = Constants.Color.Background
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
+ view.layerCornerRadius = Constants.Size.CornerRadiusMax
return view
}()
- private lazy var addBackgroundImageMenuButton: ContextMenuButton = {
+ private lazy var backgroundImageMenuButton: ContextMenuButton = {
var titles = [R.string.localizable.readyEditCoverTakePhoto(),
R.string.localizable.readyEditCoverAlbum(),
- R.string.localizable.readyEditCoverFile()]
+ R.string.localizable.readyEditCoverFile(),
+ R.string.localizable.removeTitle()]
- var symbols: [SFSymbol] = [.camera, .photoOnRectangleAngled, .folder]
+ var symbols: [SFSymbol] = [.camera, .photoOnRectangleAngled, .folder, .trash]
var actions: [UIMenuElement] = []
@@ -192,7 +191,8 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
}
for (index, title) in titles.enumerated() {
- actions.append((UIAction(title: title, image: .symbolImage(symbols[index])) { [weak self] _ in
+ let isLastOne = (index == titles.count - 1)
+ actions.append((UIAction(title: title, image: isLastOne ? UIImage(symbol: .trash, color: Constants.Color.Red) : .symbolImage(symbols[index]), attributes: isLastOne ? .destructive : []) { [weak self] _ in
guard let self = self else { return }
if index == 0 {
//拍摄
@@ -209,6 +209,14 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
ImageFetcher.file{ image in
saveImage(image)
}
+ } else if index == 3 {
+ //移除
+ if FileManager.default.fileExists(atPath: Constants.Path.GameListBackground) {
+ try? FileManager.default.removeItem(atPath: Constants.Path.GameListBackground)
+ self.backgroundImageView.image = R.image.brand_icon()
+ self.backgroundImageView.contentMode = .center
+ NotificationCenter.default.post(name: Constants.NotificationName.GameListBackgroundChange, object: nil)
+ }
}
}))
}
@@ -216,31 +224,13 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
return view
}()
- private lazy var addBackgroundImageButton: SymbolButton = {
- var title: String = R.string.localizable.gameListBackgroundUpload()
- let view = SymbolButton(image: nil, title: title, titleFont: Constants.Font.body(), horizontalContian: true, titlePosition: .left)
+ private lazy var backgroundImageButton: SymbolButton = {
+ let view = SymbolButton(symbol: .cameraFill, symbolFont: Constants.Font.body(size: .l), symbolColor: Constants.Color.Red)
view.backgroundColor = Constants.Color.BackgroundPrimary
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
+ view.enableRoundCorner = true
view.addTapGesture { [weak self] gesture in
guard let self = self else { return }
- self.addBackgroundImageMenuButton.triggerTapGesture()
- }
- return view
- }()
-
- private lazy var removeBackgroundImageButton: SymbolButton = {
- var title: String = R.string.localizable.removeTitle()
- let view = SymbolButton(image: nil, title: title, titleFont: Constants.Font.body(), titleColor: Constants.Color.Red, horizontalContian: true, titlePosition: .left)
- view.backgroundColor = Constants.Color.BackgroundPrimary
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- view.addTapGesture { [weak self] gesture in
- guard let self = self else { return }
- if FileManager.default.fileExists(atPath: Constants.Path.GameListBackground) {
- try? FileManager.default.removeItem(atPath: Constants.Path.GameListBackground)
- self.backgroundImageView.image = R.image.brand_icon()
- self.backgroundImageView.contentMode = .center
- NotificationCenter.default.post(name: Constants.NotificationName.GameListBackgroundChange, object: nil)
- }
+ self.backgroundImageMenuButton.triggerTapGesture()
}
return view
}()
@@ -262,14 +252,13 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
//游戏行数
addSubview(gamesPerRowLabel)
gamesPerRowLabel.snp.makeConstraints { make in
- make.leading.top.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
- make.top.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.leading.top.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
}
gamesPerRowSegmentView.setIndex(theme.gamesPerRow-2)
addSubview(gamesPerRowSegmentView)
gamesPerRowSegmentView.snp.makeConstraints { make in
- make.top.equalTo(gamesPerRowLabel.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(gamesPerRowLabel.snp.bottom).offset(Constants.Size.ContentSpaceMin)
make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
make.height.equalTo(Constants.Size.ItemHeightMid)
}
@@ -295,8 +284,8 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
hideScrollIndicatorContainer.addSubview(hideScrollIndicatorIconView)
hideScrollIndicatorIconView.backgroundColor = Constants.Color.Main
hideScrollIndicatorIconView.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMin)
- make.size.equalTo(Constants.Size.IconSizeMid)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
make.centerY.equalToSuperview()
}
@@ -337,14 +326,14 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
//分组标题样式
addSubview(groupTitleStyleLabel)
groupTitleStyleLabel.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
make.top.equalTo(hideScrollIndicatorContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
}
groupTitleStyleSegmentView.setIndex(theme.groupTitleStyle.rawValue)
addSubview(groupTitleStyleSegmentView)
groupTitleStyleSegmentView.snp.makeConstraints { make in
- make.top.equalTo(groupTitleStyleLabel.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(groupTitleStyleLabel.snp.bottom).offset(Constants.Size.ContentSpaceMin)
make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
make.height.equalTo(Constants.Size.ItemHeightMid)
}
@@ -372,8 +361,8 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
hideGroupTitleContainer.addSubview(hideGroupTitleIconView)
hideGroupTitleIconView.backgroundColor = Constants.Color.Main
hideGroupTitleIconView.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMin)
- make.size.equalTo(Constants.Size.IconSizeMid)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
make.centerY.equalToSuperview()
}
@@ -413,12 +402,12 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
//排序
let gameSortLabel = UILabel()
- gameSortLabel.font = Constants.Font.body(size: .l)
+ gameSortLabel.font = Constants.Font.body(size: .s)
gameSortLabel.textColor = Constants.Color.LabelSecondary
gameSortLabel.text = R.string.localizable.gameSortDesc()
addSubview(gameSortLabel)
gameSortLabel.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
make.top.equalTo(hideGroupTitleContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
}
@@ -428,36 +417,93 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
addSubview(gameSortContainer)
gameSortContainer.snp.makeConstraints { make in
make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.top.equalTo(gameSortLabel.snp.bottom).offset(Constants.Size.ContentSpaceMax)
- make.height.equalTo(Constants.Size.ItemHeightMax)
+ make.top.equalTo(gameSortLabel.snp.bottom).offset(Constants.Size.ContentSpaceMin)
+ make.height.equalTo(Constants.Size.ItemHeightMax * 2)
}
- gameSortContainer.addSubviews([gameSortTypeMenuButton, gameSortTypeButton])
- gameSortTypeButton.snp.makeConstraints { make in
- make.leading.top.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
+ func genGameSortView(symbol: SFSymbol, title: String, detailLabel: UILabel) -> UIView {
+ let container = UIView()
+ container.enableInteractive = true
+ container.delayInteractiveTouchEnd = true
+
+ let iconView = IconView()
+ iconView.layerCornerRadius = 6
+ iconView.image = UIImage(symbol: symbol, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ container.addSubview(iconView)
+ iconView.backgroundColor = Constants.Color.Main
+ iconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+
+ let titleLabel: UILabel = {
+ let view = UILabel()
+ view.font = Constants.Font.body(size: .l, weight: .semibold)
+ view.textColor = Constants.Color.LabelPrimary
+ view.text = title
+ return view
+ }()
+ container.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.equalTo(iconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ let chevronIconView = UIImageView(image: UIImage(symbol: .chevronRight, font: Constants.Font.caption(size: .l, weight: .bold), color: Constants.Color.BackgroundSecondary))
+ chevronIconView.contentMode = .center
+ container.addSubview(chevronIconView)
+ chevronIconView.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+
+ container.addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.trailing.equalTo(chevronIconView.snp.leading).offset(-Constants.Size.ContentSpaceUltraTiny)
+ }
+ return container
}
+
+ //排序方式
+ let gameSortTypeView = genGameSortView(symbol: .line3Horizontal, title: R.string.localizable.gameSortType(), detailLabel: gameSortTypeLabel)
+ gameSortTypeView.addSubview(gameSortTypeMenuButton)
gameSortTypeMenuButton.snp.makeConstraints { make in
- make.edges.equalTo(gameSortTypeButton)
+ make.edges.equalTo(gameSortTypeLabel)
}
-
- gameSortContainer.addSubviews([gameSortOrderMenuButton, gameSortOrderButton])
- gameSortOrderButton.snp.makeConstraints { make in
- make.leading.equalTo(gameSortTypeButton.snp.trailing).offset(Constants.Size.ContentSpaceMid)
- make.top.bottom.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
- make.width.equalTo(gameSortTypeButton)
+ gameSortContainer.addSubview(gameSortTypeView)
+ gameSortTypeView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMax)
}
+ gameSortTypeView.addTapGesture { [weak self] gesture in
+ self?.gameSortTypeMenuButton.triggerTapGesture()
+ }
+
+ //排序顺序
+ let gameSortOrderView = genGameSortView(symbol: .arrowUpArrowDown, title: R.string.localizable.gameSortOrder(), detailLabel: gameSortOrderLabel)
+ gameSortOrderView.addSubview(gameSortOrderMenuButton)
gameSortOrderMenuButton.snp.makeConstraints { make in
- make.edges.equalTo(gameSortOrderButton)
+ make.edges.equalTo(gameSortOrderLabel)
+ }
+ gameSortContainer.addSubview(gameSortOrderView)
+ gameSortOrderView.snp.makeConstraints { make in
+ make.leading.bottom.trailing.equalToSuperview()
+ make.top.equalTo(gameSortTypeView.snp.bottom)
+ }
+ gameSortOrderView.addTapGesture { [weak self] gesture in
+ self?.gameSortOrderMenuButton.triggerTapGesture()
}
//背景
let backgroundImageLabel = UILabel()
- backgroundImageLabel.font = Constants.Font.body(size: .l)
+ backgroundImageLabel.font = Constants.Font.body(size: .s)
backgroundImageLabel.textColor = Constants.Color.LabelSecondary
backgroundImageLabel.text = R.string.localizable.gameListBackground()
addSubview(backgroundImageLabel)
backgroundImageLabel.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
make.top.equalTo(gameSortContainer.snp.bottom).offset(Constants.Size.ContentSpaceMax)
}
@@ -465,31 +511,80 @@ class GameListStyleCollectionViewCell: UICollectionViewCell {
backgroundImageView.snp.makeConstraints { make in
make.size.equalTo(154)
make.centerX.equalToSuperview()
- make.top.equalTo(backgroundImageLabel.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.top.equalTo(backgroundImageLabel.snp.bottom).offset(Constants.Size.ContentSpaceMin)
+ }
+ backgroundImageView.addSubview(backgroundImageMenuButton)
+ backgroundImageView.addSubview(backgroundImageButton)
+ backgroundImageButton.snp.makeConstraints { make in
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ make.trailing.bottom.equalToSuperview().inset(6)
+ }
+ backgroundImageMenuButton.snp.makeConstraints { make in
+ make.edges.equalTo(backgroundImageButton)
}
- let backgroundImageContainer = UIView()
- backgroundImageContainer.backgroundColor = Constants.Color.Background
- backgroundImageContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
- addSubview(backgroundImageContainer)
- backgroundImageContainer.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ //使用厂商筛选
+ let filterlabel = UILabel()
+ filterlabel.font = Constants.Font.body(size: .s)
+ filterlabel.textColor = Constants.Color.LabelSecondary
+ filterlabel.text = R.string.localizable.filterTitle()
+ addSubview(filterlabel)
+ filterlabel.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
make.top.equalTo(backgroundImageView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ }
+
+ let filterContainer = UIView()
+ filterContainer.backgroundColor = Constants.Color.Background
+ filterContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
+ addSubview(filterContainer)
+ filterContainer.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(filterlabel.snp.bottom).offset(Constants.Size.ContentSpaceMin)
make.height.equalTo(Constants.Size.ItemHeightMax)
}
- backgroundImageContainer.addSubviews([addBackgroundImageMenuButton, addBackgroundImageButton, removeBackgroundImageButton])
- addBackgroundImageButton.snp.makeConstraints { make in
- make.leading.top.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
+ let filterIconView = IconView()
+ filterIconView.layerCornerRadius = 6
+ filterIconView.image = UIImage(symbol: .line3HorizontalDecrease, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ filterContainer.addSubview(filterIconView)
+ filterIconView.backgroundColor = Constants.Color.Main
+ filterIconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
}
- addBackgroundImageMenuButton.snp.makeConstraints { make in
- make.edges.equalTo(addBackgroundImageButton)
+
+ let filterTitleLabel: UILabel = {
+ let view = UILabel()
+ view.font = Constants.Font.body(size: .l, weight: .semibold)
+ view.textColor = Constants.Color.LabelPrimary
+ view.text = R.string.localizable.enableManufacturerFilter()
+ return view
+ }()
+ filterContainer.addSubview(filterTitleLabel)
+ filterTitleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(filterIconView)
+ make.leading.equalTo(filterIconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
}
-
- removeBackgroundImageButton.snp.makeConstraints { make in
- make.leading.equalTo(addBackgroundImageButton.snp.trailing).offset(Constants.Size.ContentSpaceMid)
- make.top.bottom.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
- make.width.equalTo(addBackgroundImageButton)
+
+ filterContainer.addSubview(filterSwitchButton)
+ filterSwitchButton.setOn(theme.getExtraBool(key: ExtraKey.enableManufacturerFilter.rawValue) ?? false, animated: false)
+ filterSwitchButton.snp.makeConstraints { make in
+ make.centerY.equalTo(filterIconView)
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMin)
+ if #available(iOS 26.0, *) {
+ make.size.equalTo(CGSize(width: 63, height: 28))
+ } else {
+ make.size.equalTo(CGSize(width: 51, height: 31))
+ }
+ }
+ if #available(iOS 26.0, *) {} else {
+ filterSwitchButton.transform = CGAffineTransformMakeScale(0.9, 0.9)
+ }
+ filterSwitchButton.onChange { value in
+ theme.updateExtra(key: ExtraKey.enableManufacturerFilter.rawValue, value: value)
+ NotificationCenter.default.post(name: Constants.NotificationName.ManufacturerFilterChange, object: value)
}
mainColorChangeNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.MainColorChange, object: nil, queue: .main) { [weak self] notification in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/JITSettingView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/JITSettingView.swift
new file mode 100644
index 00000000..95f121ae
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/JITSettingView.swift
@@ -0,0 +1,398 @@
+//
+// JITSettingView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/15.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import UIKit
+import Device
+
+class JITSettingView: BaseView {
+
+ class JITSettingViewCell: UICollectionViewCell {
+ private let jitView: UIView = {
+ let view = UIView()
+
+ let container = UIView()
+ container.backgroundColor = Constants.Color.BackgroundPrimary
+ container.layerCornerRadius = Constants.Size.CornerRadiusMid
+ view.addSubview(container)
+ container.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ let iconView = UIImageView()
+ iconView.contentMode = .center
+ iconView.layerCornerRadius = 6
+ iconView.image = UIImage(symbol: .boltFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ iconView.backgroundColor = Constants.Color.Indigo
+ container.addSubview(iconView)
+ iconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMid)
+ make.centerY.equalToSuperview()
+ }
+
+ let jitLabel = UILabel()
+ let jitEnable = LibretroCore.jitAvailable()
+ jitLabel.text = jitEnable ? R.string.localizable.jitAllow() : R.string.localizable.jitNotAllow()
+ jitLabel.textColor = jitEnable ? Constants.Color.Green : Constants.Color.Red
+ jitLabel.font = Constants.Font.body(size: .l, weight: .semibold)
+ container.addSubview(jitLabel)
+ jitLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.equalTo(iconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ return view
+ }()
+
+ private lazy var deviceView: UIView = {
+ let view = UIView()
+
+ let titleContainerView = UIView()
+ view.addSubview(titleContainerView)
+ titleContainerView.snp.makeConstraints { make in
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceUltraTiny)
+ make.leading.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMin)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.text = R.string.localizable.device()
+ titleLabel.font = Constants.Font.body(size: .s, weight: .semibold)
+ titleLabel.textColor = Constants.Color.LabelSecondary
+ titleContainerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ let storageContainer = UIView()
+ storageContainer.backgroundColor = Constants.Color.BackgroundPrimary
+ storageContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
+ view.addSubview(storageContainer)
+ storageContainer.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(titleContainerView.snp.bottom)
+ make.height.equalTo(240)
+ }
+
+ func genItemView(symbol: SFSymbol, title: String, detail: String) -> UIView {
+ let containerView = UIView()
+
+ let iconView = UIImageView()
+ iconView.contentMode = .center
+ iconView.layerCornerRadius = 6
+ iconView.image = UIImage(symbol: symbol, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ iconView.backgroundColor = Constants.Color.LabelTertiary.forceStyle(.dark)
+ containerView.addSubview(iconView)
+ iconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMid)
+ make.centerY.equalToSuperview()
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.text = title
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ titleLabel.font = Constants.Font.body(size: .l, weight: .semibold)
+ containerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.equalTo(iconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ let detailLabel = UILabel()
+ detailLabel.text = detail
+ detailLabel.textColor = Constants.Color.LabelSecondary
+ detailLabel.font = Constants.Font.caption(size: .l)
+ containerView.addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMin)
+ }
+ return containerView
+ }
+
+ //Install Source
+ var sourceDetail = ""
+ #if SIDE_LOAD
+ sourceDetail = "Sideload"
+ #else
+ sourceDetail = "AppStore"
+ #endif
+ let sourceView = genItemView(symbol: .appFill, title: R.string.localizable.installSource(), detail: sourceDetail)
+ storageContainer.addSubview(sourceView)
+ sourceView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+
+ //Device
+ let deviceView = genItemView(symbol: .iphone, title: R.string.localizable.device(), detail: Device.version().rawValue)
+ storageContainer.addSubview(deviceView)
+ deviceView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(sourceView.snp.bottom)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ //System
+ let v = ProcessInfo.processInfo.operatingSystemVersion
+ let systemView = genItemView(symbol: .squareStack3dUpFill, title: R.string.localizable.system(), detail: "\(v.majorVersion).\(v.minorVersion).\(v.patchVersion)")
+ storageContainer.addSubview(systemView)
+ systemView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(deviceView.snp.bottom)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ //Memory
+ let memoryBytes = ProcessInfo.processInfo.physicalMemory
+ let memoryView = genItemView(symbol: .memorychipFill, title: R.string.localizable.memory(), detail: FileType.humanReadableFileSize(memoryBytes, numeralSystem: 1000, decimalPlaces: 0) ?? "Unknown")
+ storageContainer.addSubview(memoryView)
+ memoryView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(systemView.snp.bottom)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ return view
+ }()
+
+ private let installSideloadView: UIView = {
+ let view = UIView()
+ view.enableInteractive = true
+ view.delayInteractiveTouchEnd = true
+ view.addTapGesture { gesture in
+ if UIApplication.shared.canOpenURL(Constants.URLs.InstallSideload) {
+ UIApplication.shared.open(Constants.URLs.InstallSideload)
+ } else {
+ UIApplication.shared.open(Constants.URLs.SideStore)
+ }
+ }
+
+ let container = UIView()
+ container.backgroundColor = Constants.Color.BackgroundPrimary
+ container.layerCornerRadius = Constants.Size.CornerRadiusMid
+ view.addSubview(container)
+ container.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ let iconView = UIImageView()
+ iconView.contentMode = .center
+ iconView.layerCornerRadius = 6
+ iconView.image = R.image.customArrowTriangleheadSwap()?.applySymbolConfig(font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ iconView.backgroundColor = Constants.Color.Background.forceStyle(.dark)
+ container.addSubview(iconView)
+ iconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMid)
+ make.centerY.equalToSuperview()
+ }
+
+ let label = UILabel()
+ label.text = R.string.localizable.installSideloadVersion()
+ label.textColor = Constants.Color.LabelPrimary
+ label.font = Constants.Font.body(size: .l, weight: .semibold)
+ container.addSubview(label)
+ label.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.equalTo(iconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ let chevronIconView = UIImageView(image: UIImage(symbol: .chevronRight, font: Constants.Font.caption(size: .l, weight: .bold), color: Constants.Color.BackgroundSecondary))
+ chevronIconView.contentMode = .center
+ container.addSubview(chevronIconView)
+ chevronIconView.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+
+ return view
+ }()
+
+ private let detailLabel: UILabel = {
+ let view = UILabel()
+ view.numberOfLines = 0
+ view.text = R.string.localizable.jitDesc()
+ view.font = Constants.Font.caption(size: .l)
+ view.textColor = Constants.Color.LabelSecondary
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+
+ addSubview(jitView)
+ jitView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ addSubview(deviceView)
+ deviceView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(jitView.snp.bottom)
+ make.height.equalTo(288)
+ }
+
+ var detailOffset = 0
+ #if SIDE_LOAD
+ detailOffset = 12
+ #else
+ detailOffset = 92
+
+ addSubview(installSideloadView)
+ installSideloadView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(deviceView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+ #endif
+
+ addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(deviceView.snp.bottom).offset(detailOffset)
+ }
+
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+ }
+
+ private let topBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: JITSettingViewCell.self)
+ view.showsVerticalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.contentInset = UIEdgeInsets(top: Constants.Size.ItemHeightMid, left: 0, bottom: UIDevice.isPad ? (Constants.Size.ContentInsetBottom + Constants.Size.HomeTabBarSize.height + Constants.Size.ContentSpaceMax) : Constants.Size.ContentInsetBottom, right: 0)
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ self.didTapClose?()
+ }
+ return view
+ }()
+
+ ///点击关闭按钮回调
+ var didTapClose: (()->Void)? = nil
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ init(showClose: Bool = true) {
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+ backgroundColor = Constants.Color.Background
+
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(topBlurView)
+ topBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let icon = UIImageView(image: UIImage(symbol: .boltFill, font: Constants.Font.body(weight: .bold)))
+ icon.contentMode = .scaleAspectFit
+ topBlurView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+ let headerTitleLabel = UILabel()
+ headerTitleLabel.text = "JIT"
+ headerTitleLabel.textColor = Constants.Color.LabelPrimary
+ headerTitleLabel.font = Constants.Font.title(size: .s)
+ topBlurView.addSubview(headerTitleLabel)
+ headerTitleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(icon.snp.trailing).offset(Constants.Size.ContentSpaceUltraTiny)
+ make.centerY.equalTo(icon)
+ }
+
+ if showClose {
+ topBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .fractionalHeight(1)))
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .estimated(600)), subitems: [item])
+ group.contentInsets = NSDirectionalEdgeInsets(top: 0,
+ leading: Constants.Size.ContentSpaceMid,
+ bottom: 0,
+ trailing: Constants.Size.ContentSpaceMid)
+
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: Constants.Size.ContentSpaceMin, trailing: 0)
+
+ return section
+ }
+ return layout
+ }
+}
+
+extension JITSettingView: UICollectionViewDataSource {
+
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ return 1
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ let cell = collectionView.dequeueReusableCell(withClass: JITSettingViewCell.self, for: indexPath)
+ return cell
+ }
+}
+
+extension JITSettingView: UICollectionViewDelegate {
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/MAMEBiosView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/MAMEBiosView.swift
new file mode 100644
index 00000000..6942aaf3
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/MAMEBiosView.swift
@@ -0,0 +1,184 @@
+//
+// MAMEBiosView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/19.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import UIKit
+import ManicEmuCore
+
+class MAMEBiosView: BaseView {
+
+ class MAMEBiosViewCell: UICollectionViewCell {
+ private let itemViews: [BIOSCollectionViewCell.ItemView] = {
+ var views = [BIOSCollectionViewCell.ItemView]()
+ let mameBios = Constants.BIOS.MAMEBiosMap.map({
+ BIOSItem(fileName: $0.key, imported: false, desc: $0.value, required: false)
+ }).sorted(by: {
+ $0.fileName < $1.fileName
+ })
+ for b in mameBios {
+ let itemView = BIOSCollectionViewCell.ItemView()
+ itemView.titleLabel.text = b.fileName
+ itemView.detailLabel.text = b.desc
+ itemView.optionButton.isSelected = b.required
+ itemView.button.isSelected = true
+ itemView.button.isUserInteractionEnabled = false
+ if FileManager.default.fileExists(atPath: Constants.Path.Data.appendingPathComponent(b.fileName)) {
+ itemView.button.isHidden = false
+ } else {
+ itemView.button.isHidden = true
+ }
+ views.append(itemView)
+ }
+ return views
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ layerCornerRadius = Constants.Size.CornerRadiusMax
+ backgroundColor = Constants.Color.BackgroundPrimary
+
+ addSubviews(itemViews)
+ for (index, view) in itemViews.enumerated() {
+ view.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ if index == 0 {
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ } else {
+ make.top.equalTo(itemViews[index-1].snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ }
+ }
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+ }
+
+ private var topBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: MAMEBiosViewCell.self)
+ view.showsVerticalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.contentInset = UIEdgeInsets(top: Constants.Size.ItemHeightMid, left: 0, bottom: UIDevice.isPad ? (Constants.Size.ContentInsetBottom + Constants.Size.HomeTabBarSize.height + Constants.Size.ContentSpaceMax) : Constants.Size.ContentInsetBottom, right: 0)
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ self.didTapClose?()
+ }
+ return view
+ }()
+
+ ///点击关闭按钮回调
+ var didTapClose: (()->Void)? = nil
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ Log.debug("\(String(describing: Self.self)) init")
+ backgroundColor = Constants.Color.Background
+
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(topBlurView)
+ topBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let icon = UIImageView(image: UIImage(symbol: .cpu))
+ topBlurView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+ let headerTitleLabel = UILabel()
+ headerTitleLabel.text = Constants.Strings.MAMEBiosTitle
+ headerTitleLabel.textColor = Constants.Color.LabelPrimary
+ headerTitleLabel.font = Constants.Font.title(size: .s)
+ topBlurView.addSubview(headerTitleLabel)
+ headerTitleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(icon.snp.trailing).offset(Constants.Size.ContentSpaceUltraTiny)
+ make.centerY.equalTo(icon)
+ }
+
+ topBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .fractionalHeight(1)))
+
+
+ let itemCount = Constants.BIOS.MAMEBiosMap.count
+ let itemHeight = (Double(itemCount) * Constants.Size.ItemHeightMax) + (Double(itemCount + 1) * Constants.Size.ContentSpaceMid)
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(itemHeight)), subitems: [item])
+ group.contentInsets = NSDirectionalEdgeInsets(top: 0,
+ leading: Constants.Size.ContentSpaceMid,
+ bottom: 0,
+ trailing: Constants.Size.ContentSpaceMid)
+
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: Constants.Size.ContentSpaceMin, trailing: 0)
+
+ return section
+ }
+ return layout
+ }
+}
+
+extension MAMEBiosView: UICollectionViewDataSource {
+
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ return 1
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ let cell = collectionView.dequeueReusableCell(withClass: MAMEBiosViewCell.self, for: indexPath)
+ return cell
+ }
+}
+
+extension MAMEBiosView: UICollectionViewDelegate {
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsItemCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsItemCollectionViewCell.swift
index 7cb809f7..d81d0607 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsItemCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsItemCollectionViewCell.swift
@@ -9,9 +9,8 @@
import BetterSegmentedControl
class SettingsItemCollectionViewCell: UICollectionViewCell {
- private var iconView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
+ private var iconView: IconView = {
+ let view = IconView()
view.layerCornerRadius = 6
return view
}()
@@ -149,6 +148,37 @@ class SettingsItemCollectionViewCell: UICollectionViewCell {
let style = NSMutableParagraphStyle()
style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
matt = matt.applying(attributes: [.paragraphStyle: style]) as! NSMutableAttributedString
+ } else if item.type == .iCloud {
+ //特殊处理detail
+ var detail = R.string.localizable.iCloudNotEnable()
+ var color = Constants.Color.LabelSecondary
+ if Settings.defalut.iCloudSyncEnable && PurchaseManager.isMember {
+ if SyncManager.shared.syncState == .idle {
+ detail = R.string.localizable.iCloudSynced()
+ color = Constants.Color.Green
+ } else if SyncManager.shared.syncState == .syncing {
+ detail = R.string.localizable.iCloudSyncing()
+ color = Constants.Color.Yellow
+ }
+ }
+ matt.append(NSAttributedString(string: "\n" + "●", attributes: [.font: Constants.Font.caption(size: .s), .foregroundColor: color, .baselineOffset: 1]))
+ matt.append(NSAttributedString(string: " " + detail, attributes: [.font: Constants.Font.caption(size: .l), .foregroundColor: color]))
+ let style = NSMutableParagraphStyle()
+ style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
+ matt = matt.applying(attributes: [.paragraphStyle: style]) as! NSMutableAttributedString
+ } else if item.type == .jit {
+ //特殊处理detail
+ var detail = R.string.localizable.jitNotAllow()
+ var color = Constants.Color.Red
+ if LibretroCore.jitAvailable() {
+ detail = R.string.localizable.jitAllow()
+ color = Constants.Color.Green
+ }
+ matt.append(NSAttributedString(string: "\n" + "●", attributes: [.font: Constants.Font.caption(size: .s), .foregroundColor: color, .baselineOffset: 1]))
+ matt.append(NSAttributedString(string: " " + detail, attributes: [.font: Constants.Font.caption(size: .l), .foregroundColor: color]))
+ let style = NSMutableParagraphStyle()
+ style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
+ matt = matt.applying(attributes: [.paragraphStyle: style]) as! NSMutableAttributedString
}
let style = NSMutableParagraphStyle()
style.lineBreakMode = .byTruncatingTail
@@ -156,7 +186,7 @@ class SettingsItemCollectionViewCell: UICollectionViewCell {
titleLabel.attributedText = matt
switch item.type {
- case .quickGame, .airPlay, .iCloud, .fullScreenWhenConnectController, .autoSaveState, .respectSilentMode, .rumble:
+ case .quickGame, .airPlay, .fullScreenWhenConnectController, .autoSaveState, .respectSilentMode, .rumble:
switchButton.isHidden = false
chevronIconView.isHidden = true
enableInteractive = false
@@ -177,7 +207,7 @@ class SettingsItemCollectionViewCell: UICollectionViewCell {
segmentView.isHidden = true
}
if let isOn = item.isOn {
- if !PurchaseManager.isMember && (item.type == .airPlay || item.type == .iCloud) {
+ if !PurchaseManager.isMember && (item.type == .airPlay) {
switchButton.isEnabled = false
switchButton.setOn(false, animated: false)
} else {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
index df3c03cd..88a147a8 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
@@ -103,7 +103,8 @@ class SettingsListView: BaseView {
datas[section] = [SettingItem(type: .appearance),
SettingItem(type: .theme),
SettingItem(type: .quickGame, isOn: Settings.defalut.quickGame),
- SettingItem(type: .autoSaveState, isOn: Settings.defalut.autoSaveState)]
+ SettingItem(type: .autoSaveState, isOn: Settings.defalut.autoSaveState),
+ SettingItem(type: .skin)]
} else if section == .advance {
#if SIDE_LOAD
datas[section] = [SettingItem(type: .airPlay, isOn: Settings.defalut.airPlay),
@@ -113,18 +114,20 @@ class SettingsListView: BaseView {
SettingItem(type: .onlinePlay),
SettingItem(type: .rumble, isOn: Settings.defalut.getExtraBool(key: ExtraKey.rumble.rawValue) ?? false),
SettingItem(type: .retro),
- SettingItem(type: .triggerPro)
+ SettingItem(type: .triggerPro),
+ SettingItem(type: .jit)
]
#else
datas[section] = [SettingItem(type: .airPlay, isOn: Settings.defalut.airPlay),
- SettingItem(type: .iCloud, isOn: Settings.defalut.iCloudSyncEnable),
+ SettingItem(type: .iCloud),
SettingItem(type: .fullScreenWhenConnectController, isOn: Settings.defalut.fullScreenWhenConnectController),
SettingItem(type: .bios),
SettingItem(type: .respectSilentMode, isOn: Settings.defalut.respectSilentMode),
SettingItem(type: .onlinePlay),
SettingItem(type: .rumble, isOn: Settings.defalut.getExtraBool(key: ExtraKey.rumble.rawValue) ?? false),
SettingItem(type: .retro),
- SettingItem(type: .triggerPro)
+ SettingItem(type: .triggerPro),
+ SettingItem(type: .jit)
]
#endif
} else if section == .support {
@@ -147,12 +150,14 @@ class SettingsListView: BaseView {
private let MembershipViewHeight = 120.0
#if SIDE_LOAD
- private static let FooterHeight = 538.0
- #else
private static let FooterHeight = 538 + Constants.Size.ContentSpaceHuge + Constants.Size.ItemHeightMax
+ #else
+ private static let FooterHeight = 538.0
#endif
private var membershipNotification: Any? = nil
+ private var iCloudDriveSyncChangeNotification: Any? = nil
+ private var iCloudEnableChangeNotification: Any? = nil
var didTapDetail: ((UIViewController)->Void)? = nil
@@ -160,6 +165,12 @@ class SettingsListView: BaseView {
if let membershipNotification = membershipNotification {
NotificationCenter.default.removeObserver(membershipNotification)
}
+ if let iCloudDriveSyncChangeNotification {
+ NotificationCenter.default.removeObserver(iCloudDriveSyncChangeNotification)
+ }
+ if let iCloudEnableChangeNotification {
+ NotificationCenter.default.removeObserver(iCloudEnableChangeNotification)
+ }
}
override init(frame: CGRect) {
@@ -195,6 +206,14 @@ class SettingsListView: BaseView {
membershipNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.MembershipChange, object: nil, queue: .main) { [weak self] notification in
self?.collectionView.reloadData()
}
+
+ iCloudDriveSyncChangeNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.iCloudDriveSyncChange, object: nil, queue: .main) { [weak self] _ in
+ self?.collectionView.reloadData()
+ }
+
+ iCloudEnableChangeNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.iCloudEnableChange, object: nil, queue: .main) { [weak self] _ in
+ self?.collectionView.reloadData()
+ }
}
required init?(coder: NSCoder) {
@@ -250,7 +269,7 @@ class SettingsListView: BaseView {
return layout
}
- class SettingsDecorationCollectionReusableView: UICollectionReusableView {
+ class SettingsDecorationCollectionReusableView: UICollectionReusableView, DynamicShadow {
var backgroundView: UIView = {
let view = UIView()
view.layerCornerRadius = Constants.Size.CornerRadiusMax
@@ -261,6 +280,8 @@ class SettingsListView: BaseView {
override init(frame: CGRect) {
super.init(frame: frame)
+ updateDynamicShadow(offset: CGSize(width: 0, height: 0), radius: 2.5)
+
addSubview(backgroundView)
backgroundView.snp.makeConstraints { make in
make.top.equalToSuperview().offset(Constants.Size.ItemHeightMin)
@@ -272,9 +293,16 @@ class SettingsListView: BaseView {
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
+
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
+ updateDynamicShadow(offset: CGSize(width: 0, height: 0), radius: 2.5)
+ }
+ }
}
- class SettingsBottomDecorationCollectionReusableView: UICollectionReusableView {
+ class SettingsBottomDecorationCollectionReusableView: UICollectionReusableView, DynamicShadow {
var backgroundView: UIView = {
let view = UIView()
view.layerCornerRadius = Constants.Size.CornerRadiusMax
@@ -285,6 +313,8 @@ class SettingsListView: BaseView {
override init(frame: CGRect) {
super.init(frame: frame)
+ updateDynamicShadow(offset: CGSize(width: 0, height: 0), radius: 2.5)
+
addSubview(backgroundView)
backgroundView.snp.makeConstraints { make in
make.top.equalToSuperview().offset(Constants.Size.ItemHeightMin)
@@ -296,6 +326,13 @@ class SettingsListView: BaseView {
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
+
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
+ updateDynamicShadow(offset: CGSize(width: 0, height: 0), radius: 2.5)
+ }
+ }
}
func updateViews() {
@@ -355,28 +392,6 @@ extension SettingsListView: UICollectionViewDataSource {
cell.switchButton.onDisableTap {
topViewController()?.present(PurchaseViewController(featuresType: .airplay), animated: true)
}
- } else if item.type == .iCloud {
- cell.switchButton.onChange { [weak cell] value in
- //icloud设置
- if value {
- UIView.makeAlert(title: R.string.localizable.iCloudTipsTitle(),
- detail: R.string.localizable.iCloudTipsDetail(),
- confirmTitle: R.string.localizable.iCloudConfirm(), cancelAction: { [weak cell] in
- cell?.switchButton.setOn(false, animated: true)
- }, confirmAction: {
- Settings.defalut.iCloudSyncEnable = value
- if value, let iCloudServiceEnable = SyncManager.shared.iCloudServiceEnable, !iCloudServiceEnable {
- //尝试开启iCloud 但是目前iCloud服务不可用 弹出一个提示
- UIView.makeAlert(title: R.string.localizable.iCloudDisableTitle(), detail: R.string.localizable.iCloudDisableDetail(), cancelTitle: R.string.localizable.confirmTitle())
- }
- })
- } else {
- Settings.defalut.iCloudSyncEnable = value
- }
- }
- cell.switchButton.onDisableTap {
- topViewController()?.present(PurchaseViewController(featuresType: .iCloud), animated: true)
- }
} else if item.type == .fullScreenWhenConnectController {
cell.switchButton.onChange { value in
//airPlay设置
@@ -536,6 +551,27 @@ extension SettingsListView: UICollectionViewDelegate {
} else {
topViewController()?.present(vc, animated: true)
}
+ case .skin:
+ let vc = SkinSettingsViewController(showClose: UIDevice.isPad ? false : true)
+ if UIDevice.isPad {
+ didTapDetail?(vc)
+ } else {
+ topViewController()?.present(vc, animated: true)
+ }
+ case .iCloud:
+ let vc = ICloudSettingViewController(showClose: UIDevice.isPad ? false : true)
+ if UIDevice.isPad {
+ didTapDetail?(vc)
+ } else {
+ topViewController()?.present(vc, animated: true)
+ }
+ case .jit:
+ let vc = JITSettingViewController(showClose: UIDevice.isPad ? false : true)
+ if UIDevice.isPad {
+ didTapDetail?(vc)
+ } else {
+ topViewController()?.present(vc, animated: true)
+ }
default:
break
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/ThemeSettingView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/ThemeSettingView.swift
index 42112a0e..cf060eae 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/ThemeSettingView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/ThemeSettingView.swift
@@ -136,9 +136,9 @@ class ThemeSettingView: BaseView {
} else if sectionIndex == SectionIndex.themeColor.rawValue {
itemHeight = 100
} else if sectionIndex == SectionIndex.coverStyle.rawValue {
- itemHeight = 370 + 76
+ itemHeight = 444
} else if sectionIndex == SectionIndex.gameList.rawValue {
- itemHeight = 205 + 76 + 220 + 292
+ itemHeight = 845
} else if sectionIndex == SectionIndex.platformOrder.rawValue {
itemHeight = 50
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/iCloudSettingView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/iCloudSettingView.swift
new file mode 100644
index 00000000..9c14f9a7
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/iCloudSettingView.swift
@@ -0,0 +1,404 @@
+//
+// iCloudSettingView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/15.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import UIKit
+
+class ICloudSettingView: BaseView {
+
+ class ICloudSettingViewCell: UICollectionViewCell {
+ private let titleLabel: UILabel = {
+ let view = UILabel()
+ return view
+ }()
+
+ private let enableContainer: UIView = {
+ let view = UIView()
+ view.backgroundColor = Constants.Color.BackgroundPrimary
+ view.layerCornerRadius = Constants.Size.CornerRadiusMid
+ return view
+ }()
+
+ var enableSwitchButton: DisabledTapSwitch = {
+ let view = DisabledTapSwitch()
+ view.onTintColor = Constants.Color.Main
+ view.tintColor = Constants.Color.BackgroundSecondary
+ return view
+ }()
+
+ private let storageLabel: UILabel = {
+ let view = UILabel()
+ view.font = Constants.Font.caption(size: .l)
+ view.textColor = Constants.Color.LabelSecondary
+ return view
+ }()
+
+ private lazy var storageView: UIView = {
+ let view = UIView()
+
+ let titleContainerView = UIView()
+ view.addSubview(titleContainerView)
+ titleContainerView.snp.makeConstraints { make in
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceUltraTiny)
+ make.leading.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMin)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.text = R.string.localizable.iCloudUsage()
+ titleLabel.font = Constants.Font.body(size: .s, weight: .semibold)
+ titleLabel.textColor = Constants.Color.LabelSecondary
+ titleContainerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ let storageContainer = UIView()
+ storageContainer.backgroundColor = Constants.Color.BackgroundPrimary
+ storageContainer.layerCornerRadius = Constants.Size.CornerRadiusMid
+ view.addSubview(storageContainer)
+ storageContainer.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(titleContainerView.snp.bottom)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ let storageIconView = UIImageView()
+ storageIconView.contentMode = .center
+ storageIconView.layerCornerRadius = 6
+ storageIconView.image = UIImage(symbol: .opticaldiscdriveFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ storageIconView.backgroundColor = Constants.Color.BackgroundSecondary.forceStyle(.dark)
+ storageContainer.addSubview(storageIconView)
+ storageIconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMid)
+ make.centerY.equalToSuperview()
+ }
+
+ let storageTitleLabel = UILabel()
+ storageTitleLabel.text = R.string.localizable.usage()
+ storageTitleLabel.textColor = Constants.Color.LabelPrimary
+ storageTitleLabel.font = Constants.Font.body(size: .l, weight: .semibold)
+ storageContainer.addSubview(storageTitleLabel)
+ storageTitleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(storageIconView)
+ make.leading.equalTo(storageIconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ storageContainer.addSubview(storageLabel)
+ storageLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(storageIconView)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+
+ view.isHidden = true
+ return view
+ }()
+
+ private let detailLabel: UILabel = {
+ let view = UILabel()
+ view.numberOfLines = 0
+ view.text = R.string.localizable.iCloudDesc()
+ view.font = Constants.Font.caption(size: .l)
+ view.textColor = Constants.Color.LabelSecondary
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+
+ let titleContainerView = UIView()
+ addSubview(titleContainerView)
+ titleContainerView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMin)
+ }
+ titleContainerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.leading.centerY.trailing.equalToSuperview()
+ }
+
+ addSubview(enableContainer)
+ enableContainer.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(titleContainerView.snp.bottom)
+ make.height.equalTo(Constants.Size.ItemHeightMax)
+ }
+
+ let enableIconView = UIImageView()
+ enableIconView.contentMode = .center
+ enableIconView.layerCornerRadius = 6
+ let symbol: SFSymbol
+ if #available(iOS 17.0, *) {
+ symbol = .arrowTriangle2CirclepathIcloudFill
+ } else {
+ symbol = .cloudFill
+ }
+ enableIconView.image = UIImage(symbol: symbol, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ enableIconView.backgroundColor = Constants.Color.Blue
+ enableContainer.addSubview(enableIconView)
+ enableIconView.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMid)
+ make.centerY.equalToSuperview()
+ }
+
+ let enableTitleLabel = UILabel()
+ enableTitleLabel.text = R.string.localizable.iCloudTitle()
+ enableTitleLabel.textColor = Constants.Color.LabelPrimary
+ enableTitleLabel.font = Constants.Font.body(size: .l, weight: .semibold)
+ enableContainer.addSubview(enableTitleLabel)
+ enableTitleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(enableIconView)
+ make.leading.equalTo(enableIconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ enableContainer.addSubview(enableSwitchButton)
+ enableSwitchButton.snp.makeConstraints { make in
+ make.centerY.equalTo(enableIconView)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ if #available(iOS 26.0, *) {
+ make.size.equalTo(CGSize(width: 63, height: 28))
+ } else {
+ make.size.equalTo(CGSize(width: 51, height: 31))
+ }
+ }
+ if #available(iOS 26.0, *) {} else {
+ enableSwitchButton.transform = CGAffineTransformMakeScale(0.9, 0.9)
+ }
+
+ addSubview(storageView)
+ storageView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(enableContainer.snp.bottom)
+ make.height.equalTo(108)
+ }
+
+ addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview()
+ make.top.equalTo(enableContainer.snp.bottom).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ func setDatas() {
+ var matt = NSMutableAttributedString(string: "")
+ var detail = R.string.localizable.iCloudNotEnable()
+ var color = Constants.Color.LabelSecondary
+ if Settings.defalut.iCloudSyncEnable && PurchaseManager.isMember {
+ if SyncManager.shared.syncState == .idle {
+ detail = R.string.localizable.iCloudSynced()
+ color = Constants.Color.Green
+ } else if SyncManager.shared.syncState == .syncing {
+ detail = R.string.localizable.iCloudSyncing()
+ color = Constants.Color.Yellow
+ }
+
+ enableSwitchButton.setOn(true, animated: true)
+
+ storageView.isHidden = false
+
+ if let iCloudPath = FileManager.default.url(forUbiquityContainerIdentifier: nil)?.path {
+ storageLabel.text = FileType.humanReadableFileSize(CacheManager.folderSize(atPath: iCloudPath)) ?? "-"
+ } else {
+ storageLabel.text = "-"
+ }
+
+ detailLabel.snp.updateConstraints { make in
+ make.top.equalTo(enableContainer.snp.bottom).offset(120)
+ }
+ } else {
+ enableSwitchButton.setOn(false, animated: true)
+ storageView.isHidden = true
+ detailLabel.snp.updateConstraints { make in
+ make.top.equalTo(enableContainer.snp.bottom).offset(Constants.Size.ContentSpaceMin)
+ }
+ }
+
+ enableSwitchButton.isEnabled = PurchaseManager.isMember
+
+ matt.append(NSAttributedString(string: "●", attributes: [.font: Constants.Font.caption(size: .m), .foregroundColor: color, .baselineOffset: 1]))
+ matt.append(NSAttributedString(string: " " + detail, attributes: [.font: Constants.Font.body(size: .s, weight: .semibold), .foregroundColor: color]))
+ let style = NSMutableParagraphStyle()
+ style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
+ matt = matt.applying(attributes: [.paragraphStyle: style]) as! NSMutableAttributedString
+ titleLabel.attributedText = matt
+ }
+ }
+
+ private let topBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: ICloudSettingViewCell.self)
+ view.showsVerticalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.contentInset = UIEdgeInsets(top: Constants.Size.ItemHeightMid, left: 0, bottom: UIDevice.isPad ? (Constants.Size.ContentInsetBottom + Constants.Size.HomeTabBarSize.height + Constants.Size.ContentSpaceMax) : Constants.Size.ContentInsetBottom, right: 0)
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ self.didTapClose?()
+ }
+ return view
+ }()
+
+ ///点击关闭按钮回调
+ var didTapClose: (()->Void)? = nil
+
+ private var iCloudDriveSyncChangeNotification: Any? = nil
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ if let iCloudDriveSyncChangeNotification {
+ NotificationCenter.default.removeObserver(iCloudDriveSyncChangeNotification)
+ }
+ }
+
+ init(showClose: Bool = true) {
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+ backgroundColor = Constants.Color.Background
+
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(topBlurView)
+ topBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let symbol: SFSymbol
+ if #available(iOS 17.0, *) {
+ symbol = .arrowTriangle2CirclepathIcloudFill
+ } else {
+ symbol = .cloudFill
+ }
+ let icon = UIImageView(image: UIImage(symbol: symbol, font: Constants.Font.body(weight: .bold)))
+ icon.contentMode = .scaleAspectFit
+ topBlurView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+ let headerTitleLabel = UILabel()
+ headerTitleLabel.text = R.string.localizable.iCloudTitle()
+ headerTitleLabel.textColor = Constants.Color.LabelPrimary
+ headerTitleLabel.font = Constants.Font.title(size: .s)
+ topBlurView.addSubview(headerTitleLabel)
+ headerTitleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(icon.snp.trailing).offset(Constants.Size.ContentSpaceUltraTiny)
+ make.centerY.equalTo(icon)
+ }
+
+ if showClose {
+ topBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+
+ iCloudDriveSyncChangeNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.iCloudDriveSyncChange, object: nil, queue: .main) { [weak self] _ in
+ guard let self else { return }
+ self.collectionView.reloadData()
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .fractionalHeight(1)))
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .estimated(280)), subitems: [item])
+ group.contentInsets = NSDirectionalEdgeInsets(top: 0,
+ leading: Constants.Size.ContentSpaceMid,
+ bottom: 0,
+ trailing: Constants.Size.ContentSpaceMid)
+
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: Constants.Size.ContentSpaceMin, trailing: 0)
+
+ return section
+ }
+ return layout
+ }
+}
+
+extension ICloudSettingView: UICollectionViewDataSource {
+
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ return 1
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ let cell = collectionView.dequeueReusableCell(withClass: ICloudSettingViewCell.self, for: indexPath)
+ cell.setDatas()
+ cell.enableSwitchButton.onChange { [weak cell, weak self] value in
+ //icloud设置
+ if value {
+ UIView.makeAlert(title: R.string.localizable.iCloudTipsTitle(),
+ detail: R.string.localizable.iCloudTipsDetail(),
+ confirmTitle: R.string.localizable.iCloudConfirm(), cancelAction: { [weak cell] in
+ cell?.enableSwitchButton.setOn(false, animated: true)
+ }, confirmAction: {
+ Settings.defalut.iCloudSyncEnable = value
+ if value, let iCloudServiceEnable = SyncManager.shared.iCloudServiceEnable, !iCloudServiceEnable {
+ //尝试开启iCloud 但是目前iCloud服务不可用 弹出一个提示
+ UIView.makeAlert(title: R.string.localizable.iCloudDisableTitle(), detail: R.string.localizable.iCloudDisableDetail(), cancelTitle: R.string.localizable.confirmTitle())
+ }
+ self?.collectionView.reloadData()
+ }, tapBackgroundAction: {
+ cell?.enableSwitchButton.setOn(false, animated: true)
+ })
+ } else {
+ Settings.defalut.iCloudSyncEnable = value
+ self?.collectionView.reloadData()
+ }
+ }
+ cell.enableSwitchButton.onDisableTap {
+ topViewController()?.present(PurchaseViewController(featuresType: .iCloud), animated: true)
+ }
+
+
+ return cell
+ }
+}
+
+extension ICloudSettingView: UICollectionViewDelegate {
+
+}
+
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/FlexSkinSettingViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/FlexSkinSettingViewController.swift
index 356a3aa6..1846b5d2 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/FlexSkinSettingViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/FlexSkinSettingViewController.swift
@@ -95,7 +95,7 @@ class FlexSkinSettingViewController: BaseViewController {
}()
private var screenBounds: CGRect {
- return UIScreen.main.bounds
+ return containerView.frame
}
var didCompletion: (()->Void)? = nil
@@ -192,8 +192,10 @@ class FlexSkinSettingViewController: BaseViewController {
imageView.backgroundColor = Constants.Color.BackgroundPrimary
imageView.contentMode = .scaleAspectFit
imageView.image = image
- imageView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
- container.addSubview(imageView)
+ container.insertSubview(imageView, at: 0)
+ imageView.snp.makeConstraints { make in
+ make.edges.equalToSuperview().inset(1)
+ }
// 添加手势
let pan = UIPanGestureRecognizer(target: self, action: #selector(handlePan(_:)))
@@ -201,9 +203,31 @@ class FlexSkinSettingViewController: BaseViewController {
container.addGestureRecognizer(pan)
container.addGestureRecognizer(pinch)
+
+ // 为边缘手柄添加拖动手势
+ setupEdgeHandleGestures(for: container)
return container
}
+
+ // MARK: - 设置边缘手柄手势
+ private func setupEdgeHandleGestures(for container: AuxiliaryLineView) {
+ let topPan = UIPanGestureRecognizer(target: self, action: #selector(handleEdgePan(_:)))
+ container.topHandle.addGestureRecognizer(topPan)
+ container.topHandle.tag = 1 // top
+
+ let bottomPan = UIPanGestureRecognizer(target: self, action: #selector(handleEdgePan(_:)))
+ container.bottomHandle.addGestureRecognizer(bottomPan)
+ container.bottomHandle.tag = 2 // bottom
+
+ let leftPan = UIPanGestureRecognizer(target: self, action: #selector(handleEdgePan(_:)))
+ container.leftHandle.addGestureRecognizer(leftPan)
+ container.leftHandle.tag = 3 // left
+
+ let rightPan = UIPanGestureRecognizer(target: self, action: #selector(handleEdgePan(_:)))
+ container.rightHandle.addGestureRecognizer(rightPan)
+ container.rightHandle.tag = 4 // right
+ }
private var lastHapticTime: TimeInterval = 0
private let hapticThrottleInterval: TimeInterval = 0.3
@@ -308,31 +332,88 @@ class FlexSkinSettingViewController: BaseViewController {
optimizeScale(for: view)
}
}
+
+ // MARK: - 边缘拖动(非比例缩放)
+ private let minEdgeSize: CGFloat = 50 // 最小尺寸限制
+
+ @objc private func handleEdgePan(_ gesture: UIPanGestureRecognizer) {
+ guard let handle = gesture.view,
+ let gameView = handle.superview else { return }
+
+ let translation = gesture.translation(in: self.view)
+ var newFrame = gameView.frame
+
+ // 根据手柄tag确定调整哪个边
+ switch handle.tag {
+ case 1: // top
+ let newHeight = newFrame.height - translation.y
+ let newY = newFrame.origin.y + translation.y
+ if newHeight >= minEdgeSize {
+ newFrame.origin.y = newY
+ newFrame.size.height = newHeight
+ }
+
+ case 2: // bottom
+ let newHeight = newFrame.height + translation.y
+ if newHeight >= minEdgeSize {
+ newFrame.size.height = newHeight
+ }
+
+ case 3: // left
+ let newWidth = newFrame.width - translation.x
+ let newX = newFrame.origin.x + translation.x
+ if newWidth >= minEdgeSize {
+ newFrame.origin.x = newX
+ newFrame.size.width = newWidth
+ }
+
+ case 4: // right
+ let newWidth = newFrame.width + translation.x
+ if newWidth >= minEdgeSize {
+ newFrame.size.width = newWidth
+ }
+
+ default:
+ break
+ }
+
+ gameView.frame = newFrame
+ gesture.setTranslation(.zero, in: self.view)
+
+ if gesture.state == .ended {
+ // 执行优化
+ optimizeScale(for: gameView)
+ }
+ }
- // MARK: - 优化缩放(限制最大尺寸为填满最短边)
+ // MARK: - 优化缩放(限制最大尺寸不超出屏幕)
private func optimizeScale(for view: UIView) {
- let maxWidth = screenBounds.width
- let maxHeight = screenBounds.height
- let minSide = min(maxWidth, maxHeight)
-
let currentFrame = view.frame
- var targetSize = currentFrame.size
func fixPosition() {
+ let maxWidth = screenBounds.width
+ let maxHeight = screenBounds.height
+
+ let edgeMinX = UIScreen.main.bounds.minX - screenBounds.minX
+ let edgeMaxX = UIScreen.main.bounds.width - screenBounds.maxX
+
+ let edgeMinY = UIScreen.main.bounds.minY - screenBounds.minY
+ let edgeMaxY = UIScreen.main.bounds.height - screenBounds.maxY
+
// 保证位置在屏幕范围内
var newFrame = view.frame
var newOrigin = newFrame.origin
-
- if newFrame.minX < 0 {
- newOrigin.x = 0
- } else if newFrame.maxX > maxWidth {
- newOrigin.x = maxWidth - newFrame.width
+
+ if newFrame.minX < edgeMinX {
+ newOrigin.x = edgeMinX
+ } else if newFrame.maxX > maxWidth + edgeMaxX {
+ newOrigin.x = maxWidth - newFrame.width + edgeMaxX
}
- if newFrame.minY < 0 {
- newOrigin.y = 0
- } else if newFrame.maxY > maxHeight {
- newOrigin.y = maxHeight - newFrame.height
+ if newFrame.minY < edgeMinY {
+ newOrigin.y = edgeMinY
+ } else if newFrame.maxY > maxHeight + edgeMaxY {
+ newOrigin.y = maxHeight - newFrame.height + edgeMaxY
}
newFrame.origin = newOrigin
@@ -342,33 +423,29 @@ class FlexSkinSettingViewController: BaseViewController {
}
}
- let isLandscape = maxWidth > maxHeight
+ let maxWidth = UIScreen.main.bounds.width
+ let maxHeight = UIScreen.main.bounds.height
+
+ // 如果视图超出屏幕边界,需要缩小
if currentFrame.width > maxWidth || currentFrame.height > maxHeight {
- let aspectRatio = currentFrame.width / currentFrame.height
- if aspectRatio > 1 {
- if isLandscape {
- targetSize = CGSize(width: minSide * aspectRatio, height: minSide)
- } else {
- targetSize = CGSize(width: minSide, height: minSide / aspectRatio)
- }
- } else {
- if isLandscape {
- targetSize = CGSize(width: minSide, height: minSide / aspectRatio)
- } else {
- targetSize = CGSize(width: minSide * aspectRatio, height: minSide)
- }
- }
+ // 计算需要缩放到屏幕宽度和高度的比例
+ let widthScale = maxWidth / currentFrame.width
+ let heightScale = maxHeight / currentFrame.height
- if targetSize.width > screenBounds.width {
- targetSize = CGSize(width: screenBounds.width, height: screenBounds.width * targetSize.height/targetSize.width)
- } else if targetSize.height > screenBounds.height {
- targetSize = CGSize(width: screenBounds.height * targetSize.width/targetSize.height, height: screenBounds.height)
- }
-
+ // 取较小的比例,确保视图不会超出任何一边
+ let scale = min(widthScale, heightScale)
+
+ // 计算目标尺寸
+ let targetSize = CGSize(
+ width: currentFrame.width * scale,
+ height: currentFrame.height * scale
+ )
+
+ // 计算相对于当前frame的缩放比例
let scaleX = targetSize.width / currentFrame.width
let scaleY = targetSize.height / currentFrame.height
- UIView.animate(withDuration: 0.25,animations: {
+ UIView.animate(withDuration: 0.25, animations: {
view.transform = view.transform.scaledBy(x: scaleX, y: scaleY)
}, completion: { _ in
fixPosition()
@@ -386,20 +463,26 @@ class FlexSkinSettingViewController: BaseViewController {
var isFixScreenOutside = false
+ let edgeMinX = UIScreen.main.bounds.minX - screenBounds.minX
+ let edgeMaxX = UIScreen.main.bounds.width - screenBounds.maxX
+
// Step 1: 超出屏幕边缘 - 调整回可见区域(最高优先)
- if frame.minX < 0 {
- finalCenter.x += -frame.minX
+ if frame.minX < edgeMinX {
+ finalCenter.x += (-frame.minX + edgeMinX)
isFixScreenOutside = true
- } else if frame.maxX > screenBounds.width {
- finalCenter.x -= (frame.maxX - screenBounds.width)
+ } else if frame.maxX > screenBounds.width + edgeMaxX {
+ finalCenter.x -= (frame.maxX - screenBounds.width - edgeMaxX)
isFixScreenOutside = true
}
+
+ let edgeMinY = UIScreen.main.bounds.minY - screenBounds.minY
+ let edgeMaxY = UIScreen.main.bounds.height - screenBounds.maxY
- if frame.minY < 0 {
- finalCenter.y += -frame.minY
+ if frame.minY < edgeMinY {
+ finalCenter.y += (-frame.minY + edgeMinY)
isFixScreenOutside = true
- } else if frame.maxY > screenBounds.height {
- finalCenter.y -= (frame.maxY - screenBounds.height)
+ } else if frame.maxY > screenBounds.height + edgeMaxY {
+ finalCenter.y -= (frame.maxY - screenBounds.height - edgeMaxY)
isFixScreenOutside = true
}
@@ -565,8 +648,10 @@ class FlexSkinSettingViewController: BaseViewController {
initFrames.removeAll()
initScreens.removeAll()
for (index, screen) in screens.enumerated() {
- if let outputFrame = screen.outputFrame {
- let scaledFrame = outputFrame.applying(.init(scaleX: Constants.Size.WindowWidth, y: Constants.Size.WindowHeight))
+ if let outputFrame = screen.outputFrame,
+ let controllerSkin = controlView.controllerSkin as? ControllerSkin,
+ let frames = controllerSkin.getFrames() {
+ let scaledFrame = outputFrame.applying(.init(scaleX: frames.skinFrame.width, y: frames.skinFrame.height))
containerViews[index].frame = scaledFrame
initFrames.append(scaledFrame)
initScreens.append(screen)
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinPreviewViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinPreviewViewController.swift
index 0fdfd868..58f71e60 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinPreviewViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinPreviewViewController.swift
@@ -90,6 +90,10 @@ class SkinPreviewViewController: BaseViewController {
AppDelegate.orientation = .landscapeRight
default: break
}
+ if #available(iOS 26.0, *) {
+ controlView.setNeedsLayout()
+ controlView.layoutIfNeeded()
+ }
}
override func viewWillDisappear(_ animated: Bool) {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinSettingsViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinSettingsViewController.swift
index f72682c5..2c62b349 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinSettingsViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/ViewControllers/SkinSettingsViewController.swift
@@ -13,7 +13,7 @@ import ManicEmuCore
class SkinSettingsViewController: BaseViewController {
private lazy var skinSettingsView: SkinSettingsView = {
- let view = SkinSettingsView(game: game, gameType: gameType)
+ let view = SkinSettingsView(game: game, gameType: gameType, showClose: showClose)
view.didTapClose = {[weak self] in
self?.dismiss(animated: true)
}
@@ -22,14 +22,16 @@ class SkinSettingsViewController: BaseViewController {
private let game: Game?
private let gameType: GameType?
+ private let showClose: Bool
/// 初始化控制器 如果game和gameType都不传入 则使用默认规则展示 默认优先展示GBA的skin 两个都传入只读取game
/// - Parameters:
/// - game: 游戏 如果传入一个确定的游戏 则只为这个游戏设置皮肤 不能切换或设置别的平台的skin
/// - gameType: 传入游戏类型 则有限展示次类型的skin 可以切换其他平台
- init(game: Game? = nil, gameType: GameType? = nil) {
+ init(game: Game? = nil, gameType: GameType? = nil, showClose: Bool = true) {
self.game = game
self.gameType = gameType
+ self.showClose = showClose
super.init(nibName: nil, bundle: nil)
}
@@ -45,4 +47,12 @@ class SkinSettingsViewController: BaseViewController {
make.edges.equalToSuperview()
}
}
+
+ override func viewWillAppear(_ animated: Bool) {
+ super.viewWillAppear(animated)
+ if #available(iOS 26.0, *) {
+ skinSettingsView.setNeedsLayout()
+ skinSettingsView.layoutIfNeeded()
+ }
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/AuxiliaryLineView.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/AuxiliaryLineView.swift
index 64b6e77f..371e7fd9 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/AuxiliaryLineView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/AuxiliaryLineView.swift
@@ -14,12 +14,63 @@ class AuxiliaryLineView: UIView {
var enableCrosshair: Bool
var enableBorder: Bool
+
+ // 边缘拖动手柄
+ let topHandle: UIView = {
+ let view = UIView()
+ let icon = IconView()
+ icon.imageView.contentMode = .scaleAspectFill
+ icon.image = UIImage(symbol: .chevronCompactUp, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ view.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ make.size.equalTo(CGSize(width: 40, height: 20))
+ }
+ return view
+ }()
+ let bottomHandle: UIView = {
+ let view = UIView()
+ let icon = IconView()
+ icon.imageView.contentMode = .scaleAspectFill
+ icon.image = UIImage(symbol: .chevronCompactDown, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ view.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ make.size.equalTo(CGSize(width: 40, height: 20))
+ }
+ return view
+ }()
+ let leftHandle: UIView = {
+ let view = UIView()
+ let icon = IconView()
+ icon.imageView.contentMode = .scaleAspectFill
+ icon.image = UIImage(symbol: .chevronCompactLeft, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ view.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ make.size.equalTo(CGSize(width: 20, height: 40))
+ }
+ return view
+ }()
+ let rightHandle: UIView = {
+ let view = UIView()
+ let icon = IconView()
+ icon.imageView.contentMode = .scaleAspectFill
+ icon.image = UIImage(symbol: .chevronCompactRight, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ view.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ make.size.equalTo(CGSize(width: 20, height: 40))
+ }
+ return view
+ }()
override init(frame: CGRect) {
self.enableCrosshair = false
self.enableBorder = false
super.init(frame: frame)
setupLayers()
+ setupEdgeHandles()
}
init(frame: CGRect = .zero, enableCrosshair: Bool = false, enableBorder: Bool = false) {
@@ -27,6 +78,7 @@ class AuxiliaryLineView: UIView {
self.enableBorder = enableBorder
super.init(frame: frame)
setupLayers()
+ setupEdgeHandles()
}
required init?(coder: NSCoder) {
@@ -34,6 +86,7 @@ class AuxiliaryLineView: UIView {
self.enableBorder = false
super.init(coder: coder)
setupLayers()
+ setupEdgeHandles()
}
private func setupLayers() {
@@ -50,10 +103,38 @@ class AuxiliaryLineView: UIView {
// 虚线边框样式
dashedBorderLayer.strokeColor = UIColor.white.cgColor
dashedBorderLayer.fillColor = nil
- dashedBorderLayer.lineWidth = 2
+ dashedBorderLayer.lineWidth = 1
layer.addSublayer(dashedBorderLayer)
}
}
+
+ private func setupEdgeHandles() {
+ guard enableBorder else { return }
+
+ addSubview(topHandle)
+ topHandle.snp.makeConstraints { make in
+ make.left.right.top.equalToSuperview()
+ make.height.equalTo(20)
+ }
+
+ addSubview(bottomHandle)
+ bottomHandle.snp.makeConstraints { make in
+ make.left.right.bottom.equalToSuperview()
+ make.height.equalTo(20)
+ }
+
+ addSubview(leftHandle)
+ leftHandle.snp.makeConstraints { make in
+ make.left.top.bottom.equalToSuperview()
+ make.width.equalTo(20)
+ }
+
+ addSubview(rightHandle)
+ rightHandle.snp.makeConstraints { make in
+ make.right.top.bottom.equalToSuperview()
+ make.width.equalTo(20)
+ }
+ }
override func layoutSubviews() {
super.layoutSubviews()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
index 5ee4b6d8..8bcc7506 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
@@ -50,7 +50,7 @@ class SkinCollectionViewCell: UICollectionViewCell {
let view = UIImageView()
view.contentMode = .center
view.layerCornerRadius = Constants.Size.IconSizeMin.height/2
- view.layer.shadowColor = Constants.Color.Shadow.cgColor
+ view.layer.shadowColor = Constants.Color.Shadow.forceStyle(.dark).cgColor
view.layer.shadowOpacity = 0.5
view.layer.shadowRadius = 2
view.image = UIImage(symbol: .checkmarkCircleFill, weight: .bold, colors: [Constants.Color.LabelPrimary.forceStyle(.dark), Constants.Color.Main])
@@ -116,7 +116,7 @@ class SkinCollectionViewCell: UICollectionViewCell {
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
- selectImageView.layer.shadowColor = Constants.Color.Shadow.cgColor
+
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
index 2c9698c6..89a7a896 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
@@ -173,7 +173,12 @@ class SkinSettingsView: BaseView {
///游戏
private var game: Game? = nil
///游戏类型
- private var gameType: GameType = .gba
+ private var gameType: GameType = {
+ if let shortName = Constants.Config.PlatformOrder?.first, let type = GameType(shortName: shortName) {
+ return type
+ }
+ return System.allCases.first?.gameType ?? .gba
+ }()
///是否是单独为某一个游戏设置
private var isSettingForGame: Bool { game != nil }
///数据库中存储的用户皮肤
@@ -210,7 +215,7 @@ class SkinSettingsView: BaseView {
/// - Parameters:
/// - game: 游戏 如果传入一个确定的游戏 则只为这个游戏设置皮肤 不能切换或设置别的平台的skin
/// - gameType: 传入游戏类型 则有限展示次类型的skin 可以切换其他平台
- init(game: Game? = nil, gameType: GameType? = nil) {
+ init(game: Game? = nil, gameType: GameType? = nil, showClose: Bool = true) {
//查询数据库
let realm = Database.realm
allSkins = realm.objects(Skin.self).where({ !$0.isDeleted })
@@ -282,17 +287,24 @@ class SkinSettingsView: BaseView {
segmentView.setIndex(1, animated: false, shouldSendValueChangedEvent: true)
}
- navigationBlurView.addSubview(closeButton)
- closeButton.snp.makeConstraints { make in
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
- make.top.equalToSuperview().offset(10)
- make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ if showClose {
+ navigationBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.top.equalToSuperview().offset(10)
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
}
navigationBlurView.addSubview(moreContextMenuButton)
moreContextMenuButton.snp.makeConstraints { make in
- make.trailing.equalTo(closeButton.snp.leading).offset(-Constants.Size.ContentSpaceMid)
- make.centerY.equalTo(closeButton)
+ if showClose {
+ make.trailing.equalTo(closeButton.snp.leading).offset(-Constants.Size.ContentSpaceMid)
+ make.centerY.equalTo(closeButton)
+ } else {
+ make.leading.equalTo(navigationSymbolTitle.snp.trailing).offset(Constants.Size.ContentSpaceMid)
+ make.centerY.equalTo(navigationSymbolTitle)
+ }
make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/ViewControllers/TriggerProPreviewController.swift b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/ViewControllers/TriggerProPreviewController.swift
index bb9d0d91..7c6457ca 100644
--- a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/ViewControllers/TriggerProPreviewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/ViewControllers/TriggerProPreviewController.swift
@@ -364,25 +364,29 @@ class TriggerProPreviewController: BaseViewController {
}
private func getInputs() -> [String] {
- if let items = defaultSkin.items(for: traits) {
- var result: [String] = []
- for item in items {
- switch item.kind {
- case .button:
- //不支持组合键
- if let input = item.inputs.allInputs.first {
- result.append(input.stringValue)
- }
- case .dPad, .thumbstick:
- if case .directional(let up, let down, let left, let right) = item.inputs {
- result.append(contentsOf: [up.stringValue, down.stringValue, left.stringValue, right.stringValue])
- }
- default: break
- }
- }
- return result
+ if let inputs = defaultSkin.gameType.manicEmuCore?.allInputs {
+ return inputs.compactMap({ ($0.stringValue == "flex" || $0.stringValue.contains("touchScreen")) ? nil : $0.stringValue })
}
return []
+// if let items = defaultSkin.items(for: traits) {
+// var result: [String] = []
+// for item in items {
+// switch item.kind {
+// case .button:
+// //不支持组合键
+// if let input = item.inputs.allInputs.first {
+// result.append(input.stringValue)
+// }
+// case .dPad, .thumbstick:
+// if case .directional(let up, let down, let left, let right) = item.inputs {
+// result.append(contentsOf: [up.stringValue, down.stringValue, left.stringValue, right.stringValue])
+// }
+// default: break
+// }
+// }
+// return result
+// }
+// return []
}
private func storeTrigger() {
diff --git a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerButtonView.swift b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerButtonView.swift
index 1de34cc3..a885418a 100644
--- a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerButtonView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerButtonView.swift
@@ -115,13 +115,11 @@ class AddTriggerButtonView: BaseView {
make.centerY.equalTo(icon)
}
- if UIDevice.isPhone {
- topBlurView.addSubview(closeButton)
- closeButton.snp.makeConstraints { make in
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
- make.centerY.equalToSuperview()
- make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
- }
+ topBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/32X.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/32X.swift
index ff93f7c0..201d89e0 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/32X.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/32X.swift
@@ -15,7 +15,7 @@ extension GameType
static let _32x = GameType("public.aoshuang.game.32x")
}
-@objc enum S2XGameInput: Int, Input {
+@objc enum S2XGameInput: Int, Input, CaseIterable {
case a
case b
case c
@@ -67,6 +67,7 @@ struct S2X: ManicEmuCoreProtocol {
public var gameType: GameType { GameType._32x }
public var gameInputType: Input.Type { S2XGameInput.self }
+ var allInputs: [Input] { S2XGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/Arcade.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/Arcade.swift
new file mode 100644
index 00000000..1581aa35
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/Arcade.swift
@@ -0,0 +1,215 @@
+//
+// Arcade.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/18.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import ManicEmuCore
+import AVFoundation
+
+extension GameType {
+ static let arcade = GameType("public.aoshuang.game.arcade")
+}
+
+@objc enum ArcadeGameInput: Int, Input, CaseIterable {
+ case a
+ case b
+ case x
+ case y
+ case start
+ case select
+ case up
+ case down
+ case left
+ case right
+ case l1
+ case r1
+ case l2
+ case r2
+ case l3
+ case r3
+ case leftThumbstickUp
+ case leftThumbstickDown
+ case leftThumbstickLeft
+ case leftThumbstickRight
+ case rightThumbstickUp
+ case rightThumbstickDown
+ case rightThumbstickLeft
+ case rightThumbstickRight
+
+ case flex
+ case menu
+
+ public var type: InputType {
+ return .game(.arcade)
+ }
+
+ init?(stringValue: String) {
+ if stringValue == "a" { self = .a}
+ else if stringValue == "b" { self = .b}
+ else if stringValue == "x" { self = .x}
+ else if stringValue == "y" { self = .y}
+ else if stringValue == "start" { self = .start}
+ else if stringValue == "select" { self = .select}
+ else if stringValue == "up" { self = .up}
+ else if stringValue == "down" { self = .down}
+ else if stringValue == "left" { self = .left}
+ else if stringValue == "right" { self = .right}
+ else if stringValue == "l1" { self = .l1}
+ else if stringValue == "r1" { self = .r1}
+ else if stringValue == "l2" { self = .l2}
+ else if stringValue == "r2" { self = .r2}
+ else if stringValue == "l3" { self = .l3}
+ else if stringValue == "r3" { self = .r3}
+ else if stringValue == "leftThumbstickUp" { self = .leftThumbstickUp}
+ else if stringValue == "leftThumbstickDown" { self = .leftThumbstickDown}
+ else if stringValue == "leftThumbstickLeft" { self = .leftThumbstickLeft}
+ else if stringValue == "leftThumbstickRight" { self = .leftThumbstickRight}
+ else if stringValue == "rightThumbstickUp" { self = .rightThumbstickUp}
+ else if stringValue == "rightThumbstickDown" { self = .rightThumbstickDown}
+ else if stringValue == "rightThumbstickLeft" { self = .rightThumbstickLeft}
+ else if stringValue == "rightThumbstickRight" { self = .rightThumbstickRight}
+ else { return nil }
+ }
+}
+
+struct Arcade: ManicEmuCoreProtocol {
+ public static let core = Arcade()
+
+ public var name: String { "Arcade" }
+ public var identifier: String { "com.aoshuang.ArcadeCore" }
+
+ public var gameType: GameType { GameType.arcade }
+ public var gameInputType: Input.Type { ArcadeGameInput.self }
+ var allInputs: [Input] { ArcadeGameInput.allCases }
+ public var gameSaveExtension: String { "srm" }
+
+ public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 44100, channels: 1, interleaved: true)!
+ public let videoFormat = VideoFormat(format: .bitmap(.rgb565), dimensions: CGSize(width: 640, height: 480))
+
+ public var supportCheatFormats: Set<CheatFormat> {
+ return []
+ }
+
+ public var emulatorConnector: EmulatorBase { ArcadeEmulatorBridge.shared }
+
+ private init() {}
+}
+
+
+class ArcadeEmulatorBridge : NSObject, EmulatorBase {
+ static let shared = ArcadeEmulatorBridge()
+
+ var gameURL: URL?
+
+ private(set) var frameDuration: TimeInterval = (1.0 / 60.0)
+
+ var audioRenderer: (any ManicEmuCore.AudioRenderProtocol)?
+
+ var videoRenderer: (any ManicEmuCore.VideoRenderProtocol)?
+
+ var saveUpdateHandler: (() -> Void)?
+
+ private var leftThumbstickPosition: CGPoint = .zero
+ private var rightThumbstickPosition: CGPoint = .zero
+
+ private var thumbstickPosition: CGPoint = .zero
+
+ func start(withGameURL gameURL: URL) {}
+
+ func stop() {}
+
+ func pause() {}
+
+ func resume() {}
+
+ func runFrame(processVideo: Bool) {}
+
+ func activateInput(_ input: Int, value: Double, playerIndex: Int) {
+ guard playerIndex >= 0 else { return }
+ if input == ArcadeGameInput.leftThumbstickUp || input == ArcadeGameInput.leftThumbstickDown {
+ leftThumbstickPosition.y = input == ArcadeGameInput.leftThumbstickUp ? value : -value
+ LibretroCore.sharedInstance().moveStick(true, x: leftThumbstickPosition.x, y: leftThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.leftThumbstickLeft || input == ArcadeGameInput.leftThumbstickRight {
+ leftThumbstickPosition.x = input == ArcadeGameInput.leftThumbstickRight ? value : -value
+ LibretroCore.sharedInstance().moveStick(true, x: leftThumbstickPosition.x, y: leftThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.rightThumbstickUp || input == ArcadeGameInput.rightThumbstickDown {
+ rightThumbstickPosition.y = input == ArcadeGameInput.rightThumbstickUp ? value : -value
+ LibretroCore.sharedInstance().moveStick(false, x: rightThumbstickPosition.x, y: rightThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.rightThumbstickLeft || input == ArcadeGameInput.rightThumbstickRight {
+ rightThumbstickPosition.x = input == ArcadeGameInput.rightThumbstickRight ? value : -value
+ LibretroCore.sharedInstance().moveStick(false, x: rightThumbstickPosition.x, y: rightThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else {
+ if let gameInput = ArcadeGameInput(rawValue: input),
+ let libretroButton = gameInputToCoreInput(gameInput: gameInput) {
+#if DEBUG
+Log.debug("\(String(describing: Self.self))点击了:\(gameInput)")
+#endif
+ LibretroCore.sharedInstance().press(libretroButton, playerIndex: UInt32(playerIndex))
+ }
+ }
+ }
+
+ func gameInputToCoreInput(gameInput: ArcadeGameInput) -> LibretroButton? {
+ if gameInput == .a { return .A }
+ else if gameInput == .b { return .B }
+ else if gameInput == .x { return .X }
+ else if gameInput == .y { return .Y }
+ else if gameInput == .start { return .start }
+ else if gameInput == .select { return .select }
+ else if gameInput == .up { return .up }
+ else if gameInput == .down { return .down }
+ else if gameInput == .left { return .left }
+ else if gameInput == .right { return .right }
+ else if gameInput == .l1 { return .L1 }
+ else if gameInput == .r1 { return .R1 }
+ else if gameInput == .l2 { return .L2 }
+ else if gameInput == .r2 { return .R2 }
+ else if gameInput == .l3 { return .L3 }
+ else if gameInput == .r3 { return .R3 }
+ return nil
+ }
+
+ func deactivateInput(_ input: Int, playerIndex: Int) {
+ if input == ArcadeGameInput.leftThumbstickUp || input == ArcadeGameInput.leftThumbstickDown {
+ leftThumbstickPosition.y = 0
+ LibretroCore.sharedInstance().moveStick(true, x: leftThumbstickPosition.x, y: leftThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.leftThumbstickLeft || input == ArcadeGameInput.leftThumbstickRight {
+ leftThumbstickPosition.x = 0
+ LibretroCore.sharedInstance().moveStick(true, x: leftThumbstickPosition.x, y: leftThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.rightThumbstickUp || input == ArcadeGameInput.rightThumbstickDown {
+ rightThumbstickPosition.y = 0
+ LibretroCore.sharedInstance().moveStick(false, x: rightThumbstickPosition.x, y: rightThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ArcadeGameInput.rightThumbstickLeft || input == ArcadeGameInput.rightThumbstickRight {
+ rightThumbstickPosition.x = 0
+ LibretroCore.sharedInstance().moveStick(false, x: rightThumbstickPosition.x, y: rightThumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else {
+ if let gameInput = ArcadeGameInput(rawValue: input),
+ let libretroButton = gameInputToCoreInput(gameInput: gameInput) {
+ LibretroCore.sharedInstance().release(libretroButton, playerIndex: UInt32(playerIndex))
+ }
+ }
+ }
+
+ func resetInputs() {}
+
+ func saveSaveState(to url: URL) {}
+
+ func loadSaveState(from url: URL) {}
+
+ func saveGameSave(to url: URL) {}
+
+ func loadGameSave(from url: URL) {}
+
+ func addCheatCode(_ cheatCode: String, type: String) -> Bool {
+ return false
+ }
+
+ func resetCheats() {}
+
+ func updateCheats() {}
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/DC.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/DC.swift
index 3c4e833e..8cdf5f31 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/DC.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/DC.swift
@@ -15,7 +15,7 @@ extension GameType
static let dc = GameType("public.aoshuang.game.dc")
}
-@objc enum DCGameInput: Int, Input {
+@objc enum DCGameInput: Int, Input, CaseIterable {
case a
case b
case x
@@ -69,6 +69,7 @@ struct DC: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.dc }
public var gameInputType: Input.Type { DCGameInput.self }
+ var allInputs: [Input] { DCGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/FDS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/FDS.swift
index 9f6beffd..053bb5ab 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/FDS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/FDS.swift
@@ -14,7 +14,7 @@ extension GameType {
static let fds = GameType("public.aoshuang.game.fds")
}
-@objc enum FDSGameInput: Int, Input {
+@objc enum FDSGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -71,6 +71,7 @@ struct FDS: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.fds }
public var gameInputType: Input.Type { FDSGameInput.self }
+ var allInputs: [Input] { FDSGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 44100, channels: 1, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/GB.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/GB.swift
index 6f3737d6..18a10173 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/GB.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/GB.swift
@@ -15,7 +15,7 @@ extension GameType
static let gb = GameType("public.aoshuang.game.gb")
}
-@objc enum GBGameInput: Int, Input {
+@objc enum GBGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -55,6 +55,7 @@ struct GB: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.gb }
public var gameInputType: Input.Type { GBGameInput.self }
+ var allInputs: [Input] { GBGameInput.allCases }
public var gameSaveExtension: String { "sav" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 35112 * 60, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/GBA.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/GBA.swift
index d50a18b3..61261a0a 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/GBA.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/GBA.swift
@@ -21,7 +21,7 @@ extension CheatType
static let codeBreaker = CheatType("codeBreaker")
}
-@objc enum GBAGameInput: Int, Input {
+@objc enum GBAGameInput: Int, Input, CaseIterable {
case a
case b
case l
@@ -65,6 +65,7 @@ struct GBA: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.gba }
public var gameInputType: Input.Type { GBAGameInput.self }
+ var allInputs: [Input] { GBAGameInput.allCases }
public var gameSaveExtension: String { "sav" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/GBC.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/GBC.swift
index 2d21ecaf..cc9eef4b 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/GBC.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/GBC.swift
@@ -14,7 +14,7 @@ extension GameType
static let gbc = GameType("public.aoshuang.game.gbc")
}
-@objc enum GBCGameInput: Int, Input {
+@objc enum GBCGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -54,6 +54,7 @@ struct GBC: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.gbc }
public var gameInputType: Input.Type { GBCGameInput.self }
+ var allInputs: [Input] { GBCGameInput.allCases }
public var gameSaveExtension: String { "sav" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 35112 * 60, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/GG.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/GG.swift
index 95e51cdd..42f863fb 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/GG.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/GG.swift
@@ -15,7 +15,7 @@ extension GameType
static let gg = GameType("public.aoshuang.game.gg")
}
-@objc enum GGGameInput: Int, Input {
+@objc enum GGGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -55,6 +55,7 @@ struct GG: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.gg }
public var gameInputType: Input.Type { GGGameInput.self }
+ var allInputs: [Input] { PSPGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/MCD.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/MCD.swift
index 5d4bccfd..7833950b 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/MCD.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/MCD.swift
@@ -15,7 +15,7 @@ extension GameType
static let mcd = GameType("public.aoshuang.game.mcd")
}
-@objc enum MCDGameInput: Int, Input {
+@objc enum MCDGameInput: Int, Input, CaseIterable {
case a
case b
case c
@@ -67,6 +67,7 @@ struct MCD: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.mcd }
public var gameInputType: Input.Type { MCDGameInput.self }
+ var allInputs: [Input] { MCDGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/MD.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/MD.swift
index ce1f3810..a935f9c1 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/MD.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/MD.swift
@@ -20,7 +20,7 @@ extension CheatType
static let actionReplay16 = CheatType("ActionReplay16")
}
-@objc enum MDGameInput: Int, Input {
+@objc enum MDGameInput: Int, Input, CaseIterable {
case a
case b
case c
@@ -72,6 +72,7 @@ struct MD: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.md }
public var gameInputType: Input.Type { MDGameInput.self }
+ var allInputs: [Input] { MDGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/MS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/MS.swift
index ce580950..8c101940 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/MS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/MS.swift
@@ -15,7 +15,7 @@ extension GameType
static let ms = GameType("public.aoshuang.game.ms")
}
-@objc enum MSGameInput: Int, Input {
+@objc enum MSGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -55,6 +55,7 @@ struct MS: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.ms }
public var gameInputType: Input.Type { MSGameInput.self }
+ var allInputs: [Input] { MSGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/N64.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/N64.swift
index 758164f2..cdacf66b 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/N64.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/N64.swift
@@ -15,7 +15,7 @@ extension GameType
static let n64 = GameType("public.aoshuang.game.n64")
}
-@objc enum N64GameInput: Int, Input {
+@objc enum N64GameInput: Int, Input, CaseIterable {
case a
case b
case z
@@ -76,6 +76,7 @@ struct N64: ManicEmuCoreProtocol {
var gameType: GameType { GameType.n64 }
var gameInputType: Input.Type { N64GameInput.self }
+ var allInputs: [Input] { N64GameInput.allCases }
var gameSaveExtension: String { "srm" }
let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/NDS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/NDS.swift
index 71dff8f9..a4e481a1 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/NDS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/NDS.swift
@@ -15,7 +15,7 @@ extension GameType
static let ds = GameType("public.aoshuang.game.ds")
}
-@objc enum DSGameInput: Int, Input {
+@objc enum DSGameInput: Int, Input, CaseIterable {
case a
case b
case x
@@ -85,6 +85,7 @@ struct DS: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.ds }
public var gameInputType: Input.Type { DSGameInput.self }
+ var allInputs: [Input] { DSGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/NES.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/NES.swift
index d41a1fa7..362c3db1 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/NES.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/NES.swift
@@ -21,7 +21,7 @@ extension CheatType
static let gameGenie8 = CheatType("GameGenie8")
}
-@objc enum NESGameInput: Int, Input {
+@objc enum NESGameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -78,6 +78,7 @@ struct NES: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.nes }
public var gameInputType: Input.Type { NESGameInput.self }
+ var allInputs: [Input] { NESGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 44100, channels: 1, interleaved: true)!
@@ -125,7 +126,7 @@ class NESEmulatorBridge : NSObject, EmulatorBase {
if let gameInput = NESGameInput(rawValue: input),
let libretroButton = gameInputToCoreInput(gameInput: gameInput) {
#if DEBUG
-Log.debug("\(String(describing: Self.self))点击了:\(gameInput)")
+//Log.debug("\(String(describing: Self.self))点击了:\(gameInput)")
#endif
LibretroCore.sharedInstance().press(libretroButton, playerIndex: UInt32(playerIndex))
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/PM.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/PM.swift
index 2a9f0106..66c94032 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/PM.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/PM.swift
@@ -15,7 +15,7 @@ extension GameType
static let pm = GameType("public.aoshuang.game.pm")
}
-@objc enum PMGameInput: Int, Input {
+@objc enum PMGameInput: Int, Input, CaseIterable {
case a
case b
case c
@@ -55,6 +55,7 @@ struct PM: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.pm }
public var gameInputType: Input.Type { PMGameInput.self }
+ var allInputs: [Input] { PMGameInput.allCases }
public var gameSaveExtension: String { "eep" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/PS1.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/PS1.swift
index e4f9f73d..ba17a561 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/PS1.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/PS1.swift
@@ -15,7 +15,7 @@ extension GameType
static let ps1 = GameType("public.aoshuang.game.ps1")
}
-@objc enum PS1GameInput: Int, Input {
+@objc enum PS1GameInput: Int, Input, CaseIterable {
case a
case b
case x
@@ -87,6 +87,7 @@ struct PS1: ManicEmuCoreProtocol {
var gameType: GameType { GameType.ps1 }
var gameInputType: Input.Type { PS1GameInput.self }
+ var allInputs: [Input] { PS1GameInput.allCases }
var gameSaveExtension: String { "srm" }
let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/PSP.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/PSP.swift
index 405fa8a2..ab9791e9 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/PSP.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/PSP.swift
@@ -20,7 +20,7 @@ extension CheatType
static let cwCheat = CheatType("CWCheat")
}
-@objc enum PSPGameInput: Int, Input {
+@objc enum PSPGameInput: Int, Input, CaseIterable {
case a
case b
case x
@@ -77,6 +77,7 @@ struct PSP: ManicEmuCoreProtocol {
var gameType: GameType { GameType.psp }
var gameInputType: Input.Type { PSPGameInput.self }
+ var allInputs: [Input] { PSPGameInput.allCases }
var gameSaveExtension: String { "psp.sav" }
let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/SG1000.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/SG1000.swift
index c767b5a8..11086614 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/SG1000.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/SG1000.swift
@@ -15,7 +15,7 @@ extension GameType
static let sg1000 = GameType("public.aoshuang.game.sg1000")
}
-@objc enum SG1000GameInput: Int, Input {
+@objc enum SG1000GameInput: Int, Input, CaseIterable {
case a
case b
case start
@@ -55,6 +55,7 @@ struct SG1000: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.sg1000 }
public var gameInputType: Input.Type { SG1000GameInput.self }
+ var allInputs: [Input] { SG1000GameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/SNES.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/SNES.swift
index e3821296..32c4e6d9 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/SNES.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/SNES.swift
@@ -21,7 +21,7 @@ extension CheatType
static let gameGenie = CheatType("GameGenie")
}
-@objc enum SNESGameInput: Int, Input {
+@objc enum SNESGameInput: Int, Input, CaseIterable {
case a
case b
case x
@@ -69,6 +69,7 @@ struct SNES: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.snes }
public var gameInputType: Input.Type { SNESGameInput.self }
+ var allInputs: [Input] { SNESGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/SS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/SS.swift
index 8a1ae51c..65108585 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/SS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/SS.swift
@@ -15,7 +15,7 @@ extension GameType
static let ss = GameType("public.aoshuang.game.ss")
}
-@objc enum SSGameInput: Int, Input {
+@objc enum SSGameInput: Int, Input, CaseIterable {
case a
case b
case c
@@ -67,6 +67,7 @@ struct SS: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.ss }
public var gameInputType: Input.Type { SSGameInput.self }
+ var allInputs: [Input] { SSGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
index d77971f4..dc206bee 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
@@ -25,7 +25,7 @@ extension CheatType
static let gateshark = CheatType("Gateshark")
}
-@objc enum ThreeDSGameInput: Int, Input {
+@objc enum ThreeDSGameInput: Int, Input, CaseIterable {
case a = 700
case b = 701
case x = 702
@@ -42,8 +42,6 @@ extension CheatType
case right = 712
case l1 = 773
case r1 = 774
- case Debug = 781
- case GPIO14 = 78
case CirclePad = 713
case leftThumbstickUp = 714
case leftThumbstickDown = 715
@@ -89,8 +87,6 @@ extension CheatType
else if stringValue == "right" { self = .right }
else if stringValue == "l1" { self = .l1 }
else if stringValue == "r1" { self = .r1 }
- else if stringValue == "Debug" { self = .Debug }
- else if stringValue == "GPIO14" { self = .GPIO14 }
else if stringValue == "CirclePad" { self = .CirclePad }
else if stringValue == "leftThumbstickUp" { self = .leftThumbstickUp }
else if stringValue == "leftThumbstickDown" { self = .leftThumbstickDown }
@@ -117,17 +113,26 @@ struct ThreeDS: ManicEmuCoreProtocol {
var gameType: GameType { GameType._3ds }
var gameInputType: Input.Type { ThreeDSGameInput.self }
+ var allInputs: [Input] { ThreeDSGameInput.allCases }
var gameSaveExtension: String { "3ds.sav" }
let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32768, channels: 2, interleaved: true)!
- let videoFormat = VideoFormat(format: .bitmap(.bgra8), dimensions: CGSize(width: 400, height: 455))
+ let videoFormat = VideoFormat(format: .bitmap(.bgra8), dimensions: CGSize(width: 400, height: 480))
var supportCheatFormats: Set<CheatFormat> {
let actionReplayFormat = CheatFormat(name: NSLocalizedString("Gateshark", comment: ""), format: "XXXXXXXX YYYYYYYY", type: .gateshark)
return [actionReplayFormat]
}
- var emulatorConnector: EmulatorBase { ThreeDSEmulatorBridge.shared }
+ static var isAzaharCore: Bool = false
+
+ var emulatorConnector: EmulatorBase {
+ if Self.isAzaharCore {
+ return AzaharEmulatorBridge.shared
+ } else {
+ return ThreeDSEmulatorBridge.shared
+ }
+ }
private init()
{
@@ -746,4 +751,152 @@ class ThreeDSEmulatorBridge : NSObject, EmulatorBase {
#endif
-
+class AzaharEmulatorBridge : NSObject, EmulatorBase {
+
+ static let shared = AzaharEmulatorBridge()
+
+ var gameURL: URL?
+
+ private(set) var frameDuration: TimeInterval = (1.0 / 60.0)
+
+ var audioRenderer: (any ManicEmuCore.AudioRenderProtocol)?
+
+ var videoRenderer: (any ManicEmuCore.VideoRenderProtocol)?
+
+ var saveUpdateHandler: (() -> Void)?
+
+ private var thumbstickPosition: CGPoint = .zero
+ private var cstickPosition: CGPoint = .zero
+ private var touchPointX: CGFloat? = nil
+ private var touchPointY: CGFloat? = nil
+ var touchInputFrame: CGRect = .zero
+
+ func start(withGameURL gameURL: URL) {}
+
+ func stop() {}
+
+ func pause() {}
+
+ func resume() {}
+
+ func runFrame(processVideo: Bool) { }
+
+ func activateInput(_ input: Int, value: Double, playerIndex: Int) {
+ /**
+ 摇杆坐标
+ 0,1
+
+ -1,0 0,0 1,0
+
+ 0,-1
+ */
+ if input == ThreeDSGameInput.leftThumbstickUp || input == ThreeDSGameInput.leftThumbstickDown {
+
+ thumbstickPosition.y = input == ThreeDSGameInput.leftThumbstickUp ? value : -value
+ LibretroCore.sharedInstance().moveStick(true, x: thumbstickPosition.x, y: thumbstickPosition.y, playerIndex: UInt32(playerIndex))
+
+
+ } else if input == ThreeDSGameInput.leftThumbstickLeft || input == ThreeDSGameInput.leftThumbstickRight {
+
+ thumbstickPosition.x = input == ThreeDSGameInput.leftThumbstickRight ? value : -value
+ LibretroCore.sharedInstance().moveStick(true, x: thumbstickPosition.x, y: thumbstickPosition.y, playerIndex: UInt32(playerIndex))
+
+ } else if input == ThreeDSGameInput.rightThumbstickUp || input == ThreeDSGameInput.rightThumbstickDown {
+
+ cstickPosition.y = input == ThreeDSGameInput.rightThumbstickUp ? value : -value
+ LibretroCore.sharedInstance().moveStick(false, x: cstickPosition.x, y: cstickPosition.y, playerIndex: UInt32(playerIndex))
+
+ } else if input == ThreeDSGameInput.rightThumbstickLeft || input == ThreeDSGameInput.rightThumbstickRight {
+
+ cstickPosition.x = input == ThreeDSGameInput.rightThumbstickRight ? value : -value
+ LibretroCore.sharedInstance().moveStick(false, x: cstickPosition.x, y: cstickPosition.y, playerIndex: UInt32(playerIndex))
+
+ } else if input == ThreeDSGameInput.touchScreenX || input == ThreeDSGameInput.touchScreenY {
+ if input == ThreeDSGameInput.touchScreenX {
+ touchPointX = value
+ } else if input == ThreeDSGameInput.touchScreenY {
+ touchPointY = value
+ }
+ if let x = touchPointX, let y = touchPointY {
+ let touchPoint = CGPoint(x: touchInputFrame.minX + touchInputFrame.width*x, y: touchInputFrame.minY + touchInputFrame.height*y)
+
+#if DEBUG
+ Log.debug("\(String(describing: Self.self)) 触摸屏幕:\(touchPoint)")
+#endif
+ LibretroCore.sharedInstance().sendTouchEventX(touchPoint.x, y: touchPoint.y)
+ touchPointX = nil
+ touchPointY = nil
+ }
+ } else if let gameInput = ThreeDSGameInput(rawValue: input),
+ let libretroButton = gameInputToCoreInput(gameInput: gameInput) {
+#if DEBUG
+ Log.debug("\(String(describing: Self.self))点击了:\(gameInput)")
+#endif
+ LibretroCore.sharedInstance().press(libretroButton, playerIndex: UInt32(playerIndex))
+ }
+ }
+
+ func gameInputToCoreInput(gameInput: ThreeDSGameInput) -> LibretroButton? {
+ if gameInput == .a { return .A }
+ else if gameInput == .b { return .B }
+ else if gameInput == .x { return .X }
+ else if gameInput == .y { return .Y }
+ else if gameInput == .start { return .start }
+ else if gameInput == .select { return .select }
+ else if gameInput == .l1 { return .L1 }
+ else if gameInput == .l2 { return .L2 }
+ else if gameInput == .r1 { return .R1 }
+ else if gameInput == .r2 { return .R2 }
+ else if gameInput == .up { return .up }
+ else if gameInput == .down { return .down }
+ else if gameInput == .left { return .left }
+ else if gameInput == .right { return .right }
+ else { return nil }
+ }
+
+ func deactivateInput(_ input: Int, playerIndex: Int) {
+ if input == ThreeDSGameInput.leftThumbstickUp || input == ThreeDSGameInput.leftThumbstickDown {
+ thumbstickPosition.y = 0
+ LibretroCore.sharedInstance().moveStick(true, x: thumbstickPosition.x, y: thumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ThreeDSGameInput.leftThumbstickLeft || input == ThreeDSGameInput.leftThumbstickRight {
+ thumbstickPosition.x = 0
+ LibretroCore.sharedInstance().moveStick(true, x: thumbstickPosition.x, y: thumbstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ThreeDSGameInput.rightThumbstickUp || input == ThreeDSGameInput.rightThumbstickDown {
+ cstickPosition.y = 0
+ LibretroCore.sharedInstance().moveStick(false, x: cstickPosition.x, y: cstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ThreeDSGameInput.rightThumbstickLeft || input == ThreeDSGameInput.rightThumbstickRight {
+ cstickPosition.x = 0
+ LibretroCore.sharedInstance().moveStick(false, x: cstickPosition.x, y: cstickPosition.y, playerIndex: UInt32(playerIndex))
+ } else if input == ThreeDSGameInput.touchScreenX || input == ThreeDSGameInput.touchScreenY {
+ if input == ThreeDSGameInput.touchScreenX {
+ touchPointX = nil
+ } else if input == ThreeDSGameInput.touchScreenY {
+ touchPointY = nil
+ }
+ if touchPointX == nil, touchPointY == nil {
+ LibretroCore.sharedInstance().releaseTouchEvent()
+ }
+ } else if let gameInput = ThreeDSGameInput(rawValue: input),
+ let libretroButton = gameInputToCoreInput(gameInput: gameInput) {
+ LibretroCore.sharedInstance().release(libretroButton, playerIndex: UInt32(playerIndex))
+ }
+ }
+
+ func resetInputs() {}
+
+ func saveSaveState(to url: URL) {}
+
+ func loadSaveState(from url: URL) {}
+
+ func saveGameSave(to url: URL) {}
+
+ func loadGameSave(from url: URL) {}
+
+ func addCheatCode(_ cheatCode: String, type: String) -> Bool {
+ return false
+ }
+
+ func resetCheats() {}
+
+ func updateCheats() {}
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/VB.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/VB.swift
index 7dbb6e88..2c6001a4 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/VB.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/VB.swift
@@ -15,7 +15,7 @@ extension GameType
static let vb = GameType("public.aoshuang.game.vb")
}
-@objc enum VBGameInput: Int, Input {
+@objc enum VBGameInput: Int, Input, CaseIterable {
case a
case b
case l
@@ -67,6 +67,7 @@ struct VB: ManicEmuCoreProtocol {
public var gameType: GameType { GameType.vb }
public var gameInputType: Input.Type { VBGameInput.self }
+ var allInputs: [Input] { VBGameInput.allCases }
public var gameSaveExtension: String { "srm" }
public let audioFormat = AVAudioFormat(commonFormat: .pcmFormatInt16, sampleRate: 32040, channels: 2, interleaved: true)!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/EmulatorCoreExtentions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/EmulatorCoreExtentions.swift
deleted file mode 100644
index 265fde0d..00000000
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/EmulatorCoreExtentions.swift
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// EmulatorCoreExtentions.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/6.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-import ManicEmuCore
-
-extension EmulatorCore {
- func setRate(speed: GameSetting.FastForwardSpeed) {
- switch speed {
- case .one:
- if manicCore.gameType.isLibretroType {
- LibretroCore.sharedInstance().fastForward(0.0)
- } else {
- self.rate = 1
- }
- default:
- if manicCore.gameType.isLibretroType {
- switch speed {
- case .one:
- LibretroCore.sharedInstance().fastForward(1.0)
- case .two:
- LibretroCore.sharedInstance().fastForward(1.4)
- case .three:
- LibretroCore.sharedInstance().fastForward(3)
- case .four:
- LibretroCore.sharedInstance().fastForward(5)
- case .five:
- LibretroCore.sharedInstance().fastForward(7)
- }
- }
- }
- }
-
-}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
index 34b29669..784d5854 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
@@ -84,7 +84,9 @@ extension GameType {
self = .ps1
} else if ["cdi", "gdi", "chd", "cue", "bin", "m3u"].contains(ext) {
self = .dc
- } else {
+ } else if ["zip", "7z", "cmd"].contains(ext) {
+ self = .arcade
+ } else {
self = .notSupport
}
}
@@ -142,18 +144,13 @@ extension GameType {
self = .ps1
} else if shortName.uppercased() == "DC" {
self = .dc
- } else {
+ } else if shortName.uppercased() == "Arcade".uppercased() {
+ self = .arcade
+ } else {
return nil
}
}
- var isLibretroType: Bool {
- if self == ._3ds {
- return false
- }
- return true
- }
-
var localizedName: String {
switch self
{
@@ -178,6 +175,7 @@ extension GameType {
case .pm: return "Pokémon Mini"
case .ps1: return "PlayStation"
case .dc: return "Dreamcast"
+ case .arcade: return "Arcade"
default: return ""
}
}
@@ -206,6 +204,7 @@ extension GameType {
case .pm: return NSLocalizedString("PM", comment: "")
case .ps1: return NSLocalizedString("PS1", comment: "")
case .dc: return NSLocalizedString("DC", comment: "")
+ case .arcade: return NSLocalizedString("Arcade", comment: "")
case .unknown: return R.string.localizable.unknownPlatform()
default: return ""
}
@@ -235,6 +234,7 @@ extension GameType {
case .pm: return 2001
case .ps1: return 1995
case .dc: return 1998
+ case .arcade: return 1971
default: return 0
}
}
@@ -263,6 +263,7 @@ extension GameType {
case .pm: return PM.core
case .ps1: return PS1.core
case .dc: return DC.core
+ case .arcade: return Arcade.core
default: return nil
}
}
@@ -287,6 +288,12 @@ extension GameType {
return [LibretroCore.Cores.Gearsystem.name, LibretroCore.Cores.PicoDrive.name]
} else if self == .gb || self == .gbc {
return [LibretroCore.Cores.Gambatte.name, LibretroCore.Cores.mGBA.name, LibretroCore.Cores.VBAM.name]
+ } else if self == .arcade {
+#if SIDE_LOAD
+ return [LibretroCore.Cores.MAME.name, LibretroCore.Cores.FinalBurnNeo.name]
+#endif
+ } else if self == ._3ds {
+ return [LibretroCore.Cores.Citra.name, LibretroCore.Cores.Azahar.name]
}
return []
}
@@ -331,6 +338,28 @@ extension GameType {
return (isComplete(biosItems: dsBiosItems), isComplete(biosItems: dsiBiosItems))
}
+ var manufacturer: Manufacturer {
+ switch self {
+ case ._3ds, .ds, .gb, .gba, .gbc, .nes, .fds, .snes, .vb, .pm, .n64:
+ return .nintendo
+ case .ps1, .psp:
+ return .sony
+ case .md, .mcd, ._32x, .sg1000, .gg, .ms, .ss, .dc:
+ return .sega
+ case .arcade:
+ return .arcade
+ default:
+ return .nintendo
+ }
+ }
+
+ var supportAnalogInput: Bool {
+ switch self {
+ case .psp, ._3ds, .arcade, .dc, .ps1, .n64:
+ return true
+ default: return false
+ }
+ }
}
///让GameType支持realm的存储
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/LibretroCoreExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/LibretroCoreExtensions.swift
index b4c8ebc2..68d409df 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/LibretroCoreExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/LibretroCoreExtensions.swift
@@ -9,7 +9,7 @@
extension LibretroCore {
enum Cores {
- case Nestopia, Snes9x, PicoDrive, Yabause, BeetleSaturn, Mupen64PlushNext, BeetleVB, PokeMini, BeetlePSXHW, bsnes, Gambatte, VBAM, mGBA, Flycast, Gearsystem, ClownMDEmu, bsnesJG, melonDSDS, PPSSPP
+ case Nestopia, Snes9x, PicoDrive, Yabause, BeetleSaturn, Mupen64PlushNext, BeetleVB, PokeMini, BeetlePSXHW, bsnes, Gambatte, VBAM, mGBA, Flycast, Gearsystem, ClownMDEmu, bsnesJG, melonDSDS, PPSSPP, MAME, FinalBurnNeo, Citra, Azahar
var name: String {
switch self {
@@ -51,6 +51,14 @@ extension LibretroCore {
"melonDS DS"
case .PPSSPP:
"PPSSPP"
+ case .MAME:
+ "MAME"
+ case .FinalBurnNeo:
+ "FinalBurn Neo"
+ case .Citra:
+ "Citra"
+ case .Azahar:
+ "Azahar"
}
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
index 6f0978d2..407777bc 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
@@ -45,8 +45,16 @@ extension UIView {
}
}
- func makeShadow(ofColor: UIColor = Constants.Color.Shadow, radius: CGFloat = 10) {
- self.addShadow(ofColor: ofColor, radius: radius)
+ func makeShadow(ofColor: UIColor = Constants.Color.Shadow, offset: CGSize = .zero, radius: CGFloat = 10, opacity: Float = 0.5) {
+ layer.shadowColor = ofColor.cgColor
+ layer.shadowOffset = offset
+ layer.shadowRadius = radius
+ layer.shadowOpacity = opacity
+ layer.masksToBounds = false
+ }
+
+ func removeShadow() {
+ layer.shadowColor = UIColor.clear.cgColor
}
/// 为视图添加 iOS 26 的 Liquid Glass 效果
@@ -278,7 +286,8 @@ extension UIView {
enableForceHide: Bool = true,
cancelAction: (()->Void)? = nil,
confirmAction: (()->Void)? = nil,
- hideAction: (()->Void)? = nil) {
+ hideAction: (()->Void)? = nil,
+ tapBackgroundAction: (()->Void)? = nil) {
func setupSheet(_ sheet: SheetTarget) {
SheetIdentifiers.append(sheet.identifier)
sheet.contentMaskView.alpha = 0
@@ -286,7 +295,10 @@ extension UIView {
sheet.onTappedBackground { sheet in
if enableForceHide {
SheetIdentifiers.removeAll { $0 == sheet.identifier }
- sheet.pop(completon: hideAction)
+ sheet.pop {
+ tapBackgroundAction?()
+ hideAction?()
+ }
}
}
sheet.config.backgroundViewMask { mask in
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/CoreSelectionView.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/CoreSelectionView.swift
index f6e8e4ca..142b1634 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/CoreSelectionView.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/CoreSelectionView.swift
@@ -212,7 +212,7 @@ class CoreSelectionView: BaseView {
var backgroundView: UIView = {
let view = UIView()
view.layerCornerRadius = Constants.Size.CornerRadiusMax
- view.backgroundColor = Constants.Color.BackgroundSecondary
+ view.backgroundColor = Constants.Color.BackgroundPrimary
return view
}()
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
index de3579ad..e5abe600 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
@@ -485,6 +485,11 @@ extension FilesImporter {
if gameType != .notSupport {
game.gameType = gameType
game.importDate = Date()
+
+ if gameType == .arcade, let mameInfo = MAMEKit.getMAMEInfo(fileName: game.name) {
+ game.aliasName = mameInfo.name
+ }
+
do {
if ciaTitleUrl == nil {
//cia格式的3DS不需要拷贝了 因为已经安装进游戏目录了
@@ -683,6 +688,13 @@ extension FilesImporter {
if FileType.zip.extensions.contains(url.pathExtension) {
var innerResults = [URL]()
if url.pathExtension.lowercased() == "zip" {
+
+ //街机ROM则不解压
+ if MAMEKit.isSupportTitle(fileName: url.lastPathComponent.deletingPathExtension) {
+ results.append(url)
+ continue
+ }
+
//先检查zip里面有没有支持的文件类型
if SSZipArchive.isFilePasswordProtected(atPath: url.path) {
//加密文件先不处理
@@ -723,6 +735,13 @@ extension FilesImporter {
}
}
} else if url.pathExtension.lowercased() == "7z" {
+
+ //街机ROM则不解压
+ if MAMEKit.isSupportTitle(fileName: url.lastPathComponent.deletingPathExtension) {
+ results.append(url)
+ continue
+ }
+
do {
Log.debug("开始解压7z")
let archivePath = try Path(url.path)
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/MAMEKit.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/MAMEKit.swift
new file mode 100644
index 00000000..2c9444aa
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/MAMEKit.swift
@@ -0,0 +1,42 @@
+//
+// MAMEKit.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/11/18.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import SQLite
+
+struct MAMEKit {
+ static func isSupportTitle(fileName: String) -> Bool {
+ do {
+ let db = try Connection(Constants.Path.MAMEDB)
+ try db.key(Constants.Cipher.ManicKey)
+ let table = Table("Title")
+ let title = SQLite.Expression<String>("title")
+ let allTitles = try db.prepare(table)
+ return allTitles.first(where: { $0[title] == fileName }) != nil
+ } catch {
+ return false
+ }
+ }
+
+ static func getMAMEInfo(fileName: String) -> (title: String, name: String)? {
+ do {
+ let db = try Connection(Constants.Path.MAMEDB)
+ try db.key(Constants.Cipher.ManicKey)
+ let table = Table("Title")
+ let title = SQLite.Expression<String>("title")
+ let name = SQLite.Expression<String>("name")
+ let allTitles = try db.prepare(table)
+ if let row = allTitles.first(where: { $0[title] == fileName }) {
+ return (row[title], row[name])
+ } else {
+ return nil
+ }
+ } catch {
+ return nil
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/MobyGamesKit.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/MobyGamesKit.swift
index 7dd0ee58..07c0e04b 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/MobyGamesKit.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/MobyGamesKit.swift
@@ -9,6 +9,7 @@
import SQLite
import Fuse
+import ManicEmuCore
struct MobyGamesKit {
struct Result {
@@ -17,21 +18,23 @@ struct MobyGamesKit {
}
static func getGameInfoUrl(game: Game, completion: ((URL)->Void)? = nil) {
- let gameTypeName = game.gameType.localizedShortName
+ let gameTypeName = game.gameType == .fds ? GameType.nes.localizedShortName : game.gameType.localizedShortName
let searchPattern = game.translatedName ?? game.aliasName ?? game.name
DispatchQueue.global().async {
do {
let db = try Connection(Constants.Path.GamesDB)
try db.key(Constants.Cipher.ManicKey)
let table = Table(gameTypeName)
-// let id = SQLite.Expression<Int>("id")
+ let id = SQLite.Expression<Int>("id")
let url = SQLite.Expression<String>("url")
let name = SQLite.Expression<String>("name")
-// let year = SQLite.Expression<Int>("year")
let allGameInfos = try db.prepare(table)
let fuse = Fuse()
let pattern = fuse.createPattern(from: searchPattern)
- let matchList = allGameInfos.map({ Result(name: $0[name], url: $0[url]) })
+ let matchList = allGameInfos.map({
+ let url = Constants.URLs.MobyGames.absoluteString.appendingPathComponent("game").appendingPathComponent("\($0[id])").appendingPathComponent($0[url])
+ return Result(name: $0[name], url: url)
+ })
if let result = matchList.min(by: {
if let result0 = fuse.search(pattern, in: $0.name) {
if let result1 = fuse.search(pattern, in: $1.name) {
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/OnlineCoverManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/OnlineCoverManager.swift
index 9659d7d9..004c6649 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/OnlineCoverManager.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/OnlineCoverManager.swift
@@ -115,6 +115,8 @@ class OnlineCoverManager {
boxArtUrl = host.appendingPathComponent("Sony - PlayStation/Named_Boxarts/")
case .dc:
boxArtUrl = host.appendingPathComponent("Sega - Dreamcast/Named_Boxarts/")
+ case .arcade:
+ boxArtUrl = host.appendingPathComponent("MAME/Named_Boxarts")
default:
boxArtUrl = nil
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
index b3a39a07..8dff84bd 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
@@ -97,18 +97,13 @@ struct ResourcesKit {
}
}
- //每次更新资源都删除Libretro的配置
- let libretroConfig = Constants.Path.Libretro.appendingPathComponent("config/retroarch.cfg")
- if FileManager.default.fileExists(atPath: libretroConfig) {
- try? FileManager.safeRemoveItem(at: URL(fileURLWithPath: libretroConfig))
- }
-
Log.debug("资源解压结束:\(Date.now.timeIntervalSince1970ms)")
completion?(isSuccess)
if isSuccess {
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("aes_keys.txt")), to: URL(fileURLWithPath: Constants.Path.ThreeDSSystemData.appendingPathComponent("aes_keys.txt")), shouldReplace: true)
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("seeddb.bin")), to: URL(fileURLWithPath: Constants.Path.ThreeDSSystemData.appendingPathComponent("seeddb.bin")), shouldReplace: true)
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("shared_font.bin")), to: URL(fileURLWithPath: Constants.Path.ThreeDSSystemData.appendingPathComponent("shared_font.bin")), shouldReplace: true)
+
//Libretro的资源复制到对应位置
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/info")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("info")), shouldReplace: true)
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/autoconfig")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("autoconfig")), shouldReplace: true)
@@ -116,7 +111,7 @@ struct ResourcesKit {
try? FileManager.safeReplaceDirectory(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/system")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("system")))
try? FileManager.safeReplaceDirectory(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/config")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("config")))
- try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.ThreeDSDefaultConfig), to: URL(fileURLWithPath: Constants.Path.ThreeDSConfig), shouldReplace: true)
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.CitraDefaultConfig), to: URL(fileURLWithPath: Constants.Path.CitraConfig), shouldReplace: true)
if let systemCoreVersion = UserDefaults.standard.string(forKey: Constants.DefaultKey.SystemCoreVersion) {
let systemCoreVersionNumber = UInt64(systemCoreVersion.replacingOccurrences(ofPattern: "\\.", withTemplate: ""))!
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/SyncManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/SyncManager.swift
index 4df30204..3d8bef40 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/SyncManager.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/SyncManager.swift
@@ -22,8 +22,6 @@ class SyncManager: NSObject {
var iCloudServiceEnable: Bool? = nil
- var iCloudStatus: CKAccountStatus? = nil
-
var hasDownloadTask: Bool {
downloadingFiles.count > 0
}
@@ -34,10 +32,35 @@ class SyncManager: NSObject {
private var iCloudAccountChangedNotification: Any? = nil
+ enum SyncState: String {
+ case undefine
+ case idle
+ case syncing //上传文件到iCloud drive 或 从iCloud Drive下载文件 或 正在删除iCloud Drive的文件
+ }
+
+ private(set) var syncState: SyncState = .undefine {
+ didSet {
+ if oldValue != syncState {
+ NotificationCenter.default.post(name: Constants.NotificationName.iCloudDriveSyncChange, object: syncState)
+ Log.debug("[iCloud Sync] 同步状态变化: \(oldValue.rawValue) -> \(syncState.rawValue)")
+ }
+ }
+ }
+
+ // MARK: - iCloud 文件状态监控
+ private let metadataQuery = NSMetadataQuery()
+ private var metadataQueryNotificationTokens: [NSObjectProtocol] = []
+ private var isMonitoring = false
+ private var monitoredUploadingFiles = Set<URL>()
+ private var monitoredDownloadingFiles = Set<URL>()
+ private let monitoringQueue = DispatchQueue(label: "com.manicemu.syncmanager.monitoring")
+
deinit {
+ stopiCloudFileMonitoring()
if let iCloudAccountChangedNotification = iCloudAccountChangedNotification {
NotificationCenter.default.removeObserver(iCloudAccountChangedNotification)
}
+ metadataQueryNotificationTokens.forEach { NotificationCenter.default.removeObserver($0) }
}
private override init() {
@@ -54,6 +77,8 @@ class SyncManager: NSObject {
if realmSyncEngine == nil {
setupRealmSync()
setupDocumentSync()
+ // 启动 iCloud 文件监控
+ startiCloudFileMonitoring()
stopGameNotification = NotificationCenter.default.addObserver(forName: Constants.NotificationName.StopPlayGame, object: nil, queue: .main) { notification in
SyncManager.syncDocument()
}
@@ -63,6 +88,8 @@ class SyncManager: NSObject {
//停止同步
func stopSync() {
realmSyncEngine = nil
+ // 停止 iCloud 文件监控
+ stopiCloudFileMonitoring()
if let stopGameNotification = stopGameNotification {
NotificationCenter.default.removeObserver(stopGameNotification)
}
@@ -95,9 +122,9 @@ class SyncManager: NSObject {
realmSyncEngine?.setupCompletion = { error in
//同步设定完成之后 尝试将本地所有数据推到云端
if let error = error {
- Log.debug("数据库同步初始化结束 error:\(error)")
+ Log.debug("[iCloud Sync]数据库同步初始化结束 error:\(error)")
} else {
- Log.debug("数据库同步初始化结束")
+ Log.debug("[iCloud Sync]数据库同步初始化结束")
}
}
}
@@ -106,33 +133,203 @@ class SyncManager: NSObject {
#if !SIDE_LOAD
CKContainer.default().accountStatus { [weak self] status, error in
guard let self = self else { return }
- Log.debug("iCloud状态发生变化 旧状态:\(self.iCloudStatus?.description ?? "未知") 新状态:\(status.description)")
self.iCloudServiceEnable = status == .available
- self.iCloudStatus = status
}
#endif
}
+ // MARK: - iCloud 文件状态监控方法
+ private func startiCloudFileMonitoring() {
+ guard !isMonitoring else { return }
+ guard FileManager.default.ubiquityIdentityToken != nil else {
+ Log.debug("[iCloud Sync] 未检测到iCloud账户,无法开启文件状态监控")
+ return
+ }
+
+ isMonitoring = true
+ DispatchQueue.main.async { [weak self] in
+ self?.configureMetadataQuery()
+ self?.metadataQuery.enableUpdates()
+ self?.metadataQuery.start()
+ Log.debug("[iCloud Sync] 开始监控iCloud文件状态")
+ }
+ }
+
+ private func stopiCloudFileMonitoring() {
+ guard isMonitoring else { return }
+ isMonitoring = false
+ DispatchQueue.main.async { [weak self] in
+ self?.metadataQuery.stop()
+ self?.metadataQuery.disableUpdates()
+ self?.teardownMetadataQueryObservers()
+ Log.debug("[iCloud Sync] 停止监控iCloud文件状态")
+ }
+ monitoringQueue.async { [weak self] in
+ self?.resetTrackingState()
+ }
+ }
+
+ private func configureMetadataQuery() {
+ guard metadataQueryNotificationTokens.isEmpty else { return }
+ metadataQuery.searchScopes = [NSMetadataQueryUbiquitousDocumentsScope]
+ metadataQuery.predicate = NSPredicate(value: true)
+ metadataQuery.notificationBatchingInterval = 0.5
+
+ let center = NotificationCenter.default
+ let finishToken = center.addObserver(forName: .NSMetadataQueryDidFinishGathering, object: metadataQuery, queue: .main) { [weak self] _ in
+ self?.metadataQuery.disableUpdates()
+ self?.processMetadataQueryResults()
+ self?.metadataQuery.enableUpdates()
+ }
+
+ let updateToken = center.addObserver(forName: .NSMetadataQueryDidUpdate, object: metadataQuery, queue: .main) { [weak self] _ in
+ self?.processMetadataQueryResults()
+ }
+
+ metadataQueryNotificationTokens.append(contentsOf: [finishToken, updateToken])
+ }
+
+ private func teardownMetadataQueryObservers() {
+ metadataQueryNotificationTokens.forEach { NotificationCenter.default.removeObserver($0) }
+ metadataQueryNotificationTokens.removeAll()
+ }
+
+ private func processMetadataQueryResults() {
+ guard isMonitoring else { return }
+ let results = metadataQuery.results
+ monitoringQueue.async { [weak self] in
+ guard let self = self else { return }
+ for case let item as NSMetadataItem in results {
+ self.handleMetadataItem(item)
+ }
+ self.updateSyncState()
+ }
+ }
+
+ private func handleMetadataItem(_ item: NSMetadataItem) {
+ guard let fileURL = item.value(forAttribute: NSMetadataItemURLKey) as? URL else { return }
+
+ // 过滤掉目录,只处理文件
+ // 方法1: 检查 URL 路径是否以 / 结尾(目录通常以 / 结尾)
+ if fileURL.path.hasSuffix("/") {
+ return
+ }
+
+ // 方法2: 使用 FileManager 检查(如果文件已存在)
+ var isDirectory: ObjCBool = false
+ if FileManager.default.fileExists(atPath: fileURL.path, isDirectory: &isDirectory),
+ isDirectory.boolValue {
+ return
+ }
+
+ // 方法3: 检查内容类型(如果可用)
+ if let contentType = item.value(forAttribute: NSMetadataItemContentTypeKey) as? String,
+ contentType == "public.directory" || contentType == "public.folder" {
+ return
+ }
+
+ let wasUploading = monitoredUploadingFiles.contains(fileURL)
+ let wasDownloading = monitoredDownloadingFiles.contains(fileURL)
+
+ let uploading = isUploading(item)
+ let downloading = isDownloading(item, cloudFileUrl: fileURL)
+
+ // 处理上传状态
+ if uploading {
+ if !wasUploading {
+ monitoredUploadingFiles.insert(fileURL)
+ }
+ } else {
+ if wasUploading {
+ monitoredUploadingFiles.remove(fileURL)
+ }
+ }
+
+ // 处理下载状态
+ if downloading {
+ if !wasDownloading {
+ monitoredDownloadingFiles.insert(fileURL)
+ }
+ } else {
+ if wasDownloading {
+ monitoredDownloadingFiles.remove(fileURL)
+ }
+ }
+ }
+
+ private func isUploading(_ item: NSMetadataItem) -> Bool {
+ if let uploading = item.value(forAttribute: NSMetadataUbiquitousItemIsUploadingKey) as? Bool, uploading {
+ return true
+ }
+ if let percent = item.value(forAttribute: NSMetadataUbiquitousItemPercentUploadedKey) as? Double, percent > 0.0 && percent < 100.0 {
+ return true
+ }
+ return false
+ }
+
+ private func isDownloading(_ item: NSMetadataItem, cloudFileUrl: URL) -> Bool {
+ if let downloading = item.value(forAttribute: NSMetadataUbiquitousItemIsDownloadingKey) as? Bool, downloading {
+ return true
+ } else if let status = item.value(forAttribute: NSMetadataUbiquitousItemDownloadingStatusKey) as? String {
+ if status == NSMetadataUbiquitousItemDownloadingStatusDownloaded || status == NSMetadataUbiquitousItemDownloadingStatusCurrent {
+ return false
+ } else if status == NSMetadataUbiquitousItemDownloadingStatusNotDownloaded {
+ //该item尚未进行下载 检查一下本地是否已经存在
+ if let localUrl = SyncManager.convertToLocalUrl(fromCloudUrl: cloudFileUrl) {
+ //url合法
+ if FileManager.default.fileExists(atPath: localUrl.path) {
+ //本地文件已经存在
+ return false
+ } else {
+ //本地文件不存在 则进行下载
+ SyncManager.download(to: localUrl.path)
+ return true
+ }
+ } else {
+ //url不合法
+ return false
+ }
+ }
+ }
+ return false
+ }
+
+ private func resetTrackingState() {
+ monitoredUploadingFiles.removeAll()
+ monitoredDownloadingFiles.removeAll()
+ updateSyncState()
+ }
+
+ private func updateSyncState() {
+ let hasActiveTasks = !monitoredUploadingFiles.isEmpty || !monitoredDownloadingFiles.isEmpty
+ let newState: SyncState = hasActiveTasks ? .syncing : .idle
+ guard newState != syncState else { return }
+ DispatchQueue.main.async { [weak self] in
+ self?.syncState = newState
+ }
+ }
+
static func upload(localFilePath: String) {
guard Settings.defalut.iCloudSyncEnable else { return }
if let range = localFilePath.range(of: "/Documents/") {
let cloudFilePath = RootRelativePath(path: String(localFilePath[range.lowerBound...]))
if let cloudDrive = SyncManager.shared.cloudDrive {
Task {
- Log.debug("开始上传文件到iCloud:\(localFilePath)")
+ Log.debug("[iCloud Sync]开始上传文件到iCloud:\(localFilePath)")
let parentDirectory = RootRelativePath(path: String(localFilePath.deletingLastPathComponent[range.lowerBound...]))
let directoryExists = try await cloudDrive.directoryExists(at: parentDirectory)
if !directoryExists {
try await cloudDrive.createDirectory(at: parentDirectory)
}
try? await cloudDrive.upload(from: URL(fileURLWithPath: localFilePath), to: cloudFilePath)
- Log.debug("文件上传iCloud成功:\(cloudFilePath.path)")
+ Log.debug("[iCloud Sync]文件已提交到iCloud上传队列:\(cloudFilePath.path)")
+ // 注意:文件可能还在上传中,真实状态由 NSMetadataQuery 监控
}
}
}
}
- static func download(localFilePath: String, completion: ((Error?)->Void)? = nil) {
+ static func download(to localFilePath: String, completion: ((Error?)->Void)? = nil) {
if SyncManager.shared.downloadingFiles.contains(localFilePath) {
UIView.makeToast(message: R.string.localizable.filesDownloadErrorFileExist(localFilePath.deletingPathExtension.lastPathComponent))
return
@@ -149,18 +346,20 @@ class SyncManager: NSObject {
cloudDrive = try await CloudDrive()
SyncManager.shared.cloudDrive = cloudDrive
}
- Log.debug("开始从iCloud下载文件:\(cloudFilePath.path)")
+ Log.debug("[iCloud Sync]开始从iCloud下载文件:\(cloudFilePath.path)")
if !FileManager.default.fileExists(atPath: localFilePath.deletingLastPathComponent) {
try? FileManager.default.createDirectory(atPath: localFilePath.deletingLastPathComponent, withIntermediateDirectories: true)
}
SyncManager.shared.downloadingFiles.append(localFilePath)
try await cloudDrive.download(from: cloudFilePath, toURL: URL(fileURLWithPath: localFilePath))
- Log.debug("iCloud文件下载成功:\(localFilePath)")
+ Log.debug("[iCloud Sync]文件已提交到iCloud下载队列:\(localFilePath)")
+ // 注意:文件可能还在下载中,真实状态由 NSMetadataQuery 监控
SyncManager.shared.downloadingFiles.removeAll { $0 == localFilePath }
await MainActor.run {
completion?(nil)
}
} catch {
+ SyncManager.shared.downloadingFiles.removeAll { $0 == localFilePath }
await MainActor.run {
completion?(error as? Error)
}
@@ -175,9 +374,9 @@ class SyncManager: NSObject {
let cloudFilePath = RootRelativePath(path: String(localFilePath[range.lowerBound...]))
if let cloudDrive = SyncManager.shared.cloudDrive {
Task {
- Log.debug("开始删除iCloud文件:\(localFilePath)")
+ Log.debug("[iCloud Sync]开始删除iCloud文件:\(localFilePath)")
try? await cloudDrive.removeFile(at: cloudFilePath)
- Log.debug("删除iCloud文件成功:\(cloudFilePath.path)")
+ Log.debug("[iCloud Sync]删除iCloud文件成功:\(cloudFilePath.path)")
}
}
}
@@ -189,9 +388,9 @@ class SyncManager: NSObject {
let cloudFilePath = RootRelativePath(path: String(localPath[range.lowerBound...]))
if let cloudDrive = SyncManager.shared.cloudDrive {
Task {
- Log.debug("开始删除iCloud目录:\(localPath)")
+ Log.debug("[iCloud Sync]开始删除iCloud目录:\(localPath)")
try? await cloudDrive.removeDirectory(at: cloudFilePath)
- Log.debug("删除iCloud目录成功:\(cloudFilePath.path)")
+ Log.debug("[iCloud Sync]删除iCloud目录成功:\(cloudFilePath.path)")
}
}
}
@@ -261,11 +460,11 @@ class SyncManager: NSObject {
//文件没有更新,忽略
}
} else {
- Log.debug("无法获取本地文件修改时间,记录冲突,让用户来决定")
+ Log.debug("[iCloud Sync]无法获取本地文件修改时间,记录冲突,让用户来决定")
conflictFiles.append(cloudFileRelativePath)
}
} else {
- Log.debug("本地文件不存在,下载到本地... \(cloudFileRelativePath)")
+ Log.debug("[iCloud Sync]本地文件不存在,下载到本地... \(cloudFileRelativePath)")
do {
if !FileManager.default.fileExists(atPath: localFilePath.deletingLastPathComponent) {
try? FileManager.default.createDirectory(atPath: localFilePath.deletingLastPathComponent, withIntermediateDirectories: true)
@@ -277,10 +476,10 @@ class SyncManager: NSObject {
}
handledFiles.append(cloudFileRelativePath)
} else {
- Log.debug("无法获取云端文件的相对路径")
+ Log.debug("[iCloud Sync]无法获取云端文件的相对路径")
}
} else {
- Log.debug("无法获取云端文件修改时间")
+ Log.debug("[iCloud Sync]无法获取云端文件修改时间")
}
}
}
@@ -291,13 +490,13 @@ class SyncManager: NSObject {
let localFileRelativePath = String(localFileUrl.path[range.upperBound...])
if !handledFiles.contains(localFileRelativePath) {
do {
- Log.debug("本地存在的文件,但是云端还没有 进行上传... \(localFileRelativePath)")
+ Log.debug("[iCloud Sync]本地存在的文件,但是云端还没有 进行上传... \(localFileRelativePath)")
let directoryExists = try await cloudDrive.directoryExists(at: RootRelativePath(path: "Documents/\(localFileRelativePath.deletingLastPathComponent)"))
if !directoryExists {
try await cloudDrive.createDirectory(at: RootRelativePath(path: "Documents/\(localFileRelativePath.deletingLastPathComponent)"))
}
try await cloudDrive.upload(from: localFileUrl, to: RootRelativePath(path: "Documents/\(localFileRelativePath)"))
- Log.debug("文件上传成功 \(localFileRelativePath)")
+ Log.debug("[iCloud Sync]文件上传成功 \(localFileRelativePath)")
} catch {
Log.debug("\(localFileRelativePath)上传失败:\(error)")
}
@@ -308,7 +507,7 @@ class SyncManager: NSObject {
}
//处理冲突
for conflictFile in conflictFiles {
- Log.debug("处理冲突文件:\(conflictFile)")
+ Log.debug("[iCloud Sync]处理冲突文件:\(conflictFile)")
Task { @MainActor in
let cloudFilePath = RootRelativePath(path: "Documents/\(conflictFile)")
let localFilePath = Constants.Path.Document.appendingPathComponent(conflictFile)
@@ -322,6 +521,7 @@ class SyncManager: NSObject {
//保留云端 则删除本地的
try? FileManager.safeRemoveItem(at: URL(fileURLWithPath: localFilePath))
try await cloudDrive.download(from: cloudFilePath, toURL: URL(fileURLWithPath: localFilePath))
+ // 注意:文件可能还在下载中,真实状态由 NSMetadataQuery 监控
}
},
confirmAction: {
@@ -329,6 +529,7 @@ class SyncManager: NSObject {
Task {
try? await cloudDrive.removeFile(at: cloudFilePath)
try await cloudDrive.upload(from: URL(fileURLWithPath: localFilePath), to: cloudFilePath)
+ // 注意:文件可能还在上传中,真实状态由 NSMetadataQuery 监控
}
})
}
@@ -386,9 +587,24 @@ class SyncManager: NSObject {
}
}
} catch {
- Log.debug("遍历云端文件失败:\(error)")
+ Log.debug("[iCloud Sync]遍历云端文件失败:\(error)")
throw error
}
return result
}
+
+ static func convertToLocalUrl(fromCloudUrl: URL) -> URL? {
+ if let range = fromCloudUrl.path.range(of: "/Documents/") {
+ let cloudFileRelativePath = String(fromCloudUrl.path[range.upperBound...])
+ return URL(fileURLWithPath: Constants.Path.Document.appendingPathComponent(cloudFileRelativePath))
+ }
+ return nil
+ }
+
+ static func convertToCloudPath(url: URL) -> RootRelativePath? {
+ if let range = url.path.range(of: "/Documents/") {
+ return RootRelativePath(path: String(url.path[range.lowerBound...]))
+ }
+ return nil
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
index 46909f9c..66adabf5 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
@@ -11,6 +11,7 @@ import ManicEmuCore
enum System: CaseIterable
{
+ case arcade
case dc
case ps1
case pm
@@ -39,7 +40,7 @@ enum System: CaseIterable
}
static var allCores: [ManicEmuCoreProtocol] {
- return [NES.core, SNES.core, ThreeDS.core, GBC.core, GBA.core, PSP.core, MD.core, MCD.core, S2X.core, SG1000.core, GG.core, MS.core, SS.core, N64.core, GB.core, VB.core, PM.core, PS1.core, DC.core, DS.core, FDS.core]
+ return [NES.core, SNES.core, ThreeDS.core, GBC.core, GBA.core, PSP.core, MD.core, MCD.core, S2X.core, SG1000.core, GG.core, MS.core, SS.core, N64.core, GB.core, VB.core, PM.core, PS1.core, DC.core, DS.core, FDS.core, Arcade.core]
}
}
@@ -69,6 +70,7 @@ extension System {
case .ps1: return .ps1
case .dc: return .dc
case .fds: return .fds
+ case .arcade: return .arcade
}
}
}
diff --git a/ManicEmu/Podfile b/ManicEmu/Podfile
index ddb8c0b5..fa4699da 100644
--- a/ManicEmu/Podfile
+++ b/ManicEmu/Podfile
@@ -16,7 +16,6 @@ target 'ManicEmu' do
pod 'ProHUD', :path => '../ProHUD'
pod 'BlankSlate', :path => '../BlankSlate'
pod 'IceCream', :path => '../IceCream'
- pod 'iCloudSync', :path => '../iCloudSync'
pod 'JXBanner', :path => '../JXBanner'
pod 'SwipeCellKit', :path => '../SwipeCellKit'
pod 'SSZipArchive', :path => '../ZipArchive'
@@ -49,7 +48,8 @@ target 'ManicEmu' do
pod 'Schedule', '~> 2.0'
pod "Fuse", '~> 1.4.0'
pod 'Kingfisher', '~> 8.0'
- pod 'SQLite.swift/SQLCipher'
+ pod 'SQLite.swift/SQLCipher', '~> 0.15.4'
+ pod 'JXSegmentedView', '~> 1.4.1'
end
post_install do |installer|
diff --git a/ManicEmu/Podfile.lock b/ManicEmu/Podfile.lock
index 308fbd36..d5537098 100644
--- a/ManicEmu/Podfile.lock
+++ b/ManicEmu/Podfile.lock
@@ -34,7 +34,6 @@ PODS:
- HXPhotoPicker/Resources (4.2.5)
- IceCream (2.1.0):
- RealmSwift (~> 10.42)
- - iCloudSync (8.0.21)
- IQKeyboardCore (1.0.5)
- IQKeyboardManagerSwift (8.0.0):
- IQKeyboardManagerSwift/Appearance (= 8.0.0)
@@ -106,6 +105,7 @@ PODS:
- JXPageControl/Common
- JXPageControl/Transform (0.1.5):
- JXPageControl/Common
+ - JXSegmentedView (1.4.1)
- KeychainAccess (4.2.2)
- Kingfisher (8.3.1)
- LookinServer/Core (1.2.8)
@@ -203,9 +203,9 @@ DEPENDENCIES:
- Haptica (~> 3.0)
- HXPhotoPicker/Lite (from `../HXPhotoPicker`)
- IceCream (from `../IceCream`)
- - iCloudSync (from `../iCloudSync`)
- IQKeyboardManagerSwift (~> 8.0)
- JXBanner (from `../JXBanner`)
+ - JXSegmentedView (~> 1.4.1)
- KeychainAccess (~> 4.2)
- Kingfisher (~> 8.0)
- LookinServer/Swift
@@ -223,7 +223,7 @@ DEPENDENCIES:
- ShowTouches
- SideMenu (~> 6.5)
- SnapKit (~> 5.0)
- - SQLite.swift/SQLCipher
+ - SQLite.swift/SQLCipher (~> 0.15.4)
- SSZipArchive (from `../ZipArchive`)
- SwifterSwift (~> 7.0)
- SwipeCellKit (from `../SwipeCellKit`)
@@ -249,6 +249,7 @@ SPEC REPOS:
- IQTextInputViewNotification
- IQTextView
- JXPageControl
+ - JXSegmentedView
- KeychainAccess
- Kingfisher
- LookinServer
@@ -294,8 +295,6 @@ EXTERNAL SOURCES:
:path: "../HXPhotoPicker"
IceCream:
:path: "../IceCream"
- iCloudSync:
- :path: "../iCloudSync"
JXBanner:
:path: "../JXBanner"
ManicEmuCore:
@@ -337,7 +336,6 @@ SPEC CHECKSUMS:
Haptica: 23497230b2d7476621f7860263ae0667279a0a89
HXPhotoPicker: c200bc265eab96411f22a7f2ff32447734c7dc2a
IceCream: fa012f4b8e5bc321f2dfde126c85f88a5da88dbb
- iCloudSync: 68ea8986be30ac6297cc037312348c3e60c89e86
IQKeyboardCore: 28c8bf3bcd8ba5aa1570b318cbc4da94b861711e
IQKeyboardManagerSwift: 0c6fbbaa2e60739e48d7cf59f25661471a7a3a65
IQKeyboardNotification: d7382c4466c5a5adef92c7452ebf861b36050088
@@ -348,6 +346,7 @@ SPEC CHECKSUMS:
IQTextView: ae13b4922f22e6f027f62c557d9f4f236b19d5c7
JXBanner: b53efc5b4d2dbe074bdc5fe2efaea68b8805eaca
JXPageControl: e9487b39e2e58fc17790833214f3b8e935bef98b
+ JXSegmentedView: cd73555ce2134d1656db2cb383ba9c2f36fb5078
KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
Kingfisher: 3204d23de16b5ea53541c44ca5a8efb55741dec3
LookinServer: 1b2b61c6402ae29fa22182d48f5cd067b4e99e80
@@ -377,6 +376,6 @@ SPEC CHECKSUMS:
VisualEffectView: 173e1fabc2eb37af663547e14dc12efef7d2da8b
ZIPFoundation: b8c29ea7ae353b309bc810586181fd073cb3312c
-PODFILE CHECKSUM: 1da151c3805063ec159935f9ae72ecbd9c867818
+PODFILE CHECKSUM: 63d510ee083b754e40a0382fc4d0d289b0f67886
COCOAPODS: 1.16.2
diff --git a/ManicSupport/Resources/System.core b/ManicSupport/Resources/System.core
index 2521caed..92bee549 100644
--- a/ManicSupport/Resources/System.core
+++ b/ManicSupport/Resources/System.core
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:53d14dbdc58ed4c78f0b679e07a9beda588e6ef6fb4357f5149c50295d08d04e
-size 72892032
+oid sha256:c115e752ad5b96c1d4179d538d601933e91b78f270dddf972a78936d1bd8ff7e
+size 87936274
diff --git a/iCloudSync/.gitignore b/iCloudSync/.gitignore
deleted file mode 100644
index 5e4e35e3..00000000
--- a/iCloudSync/.gitignore
+++ /dev/null
@@ -1,11 +0,0 @@
-.DS_Store
-build
-Build
-Products
-*.pbxuser
-*.perspectivev3
-*.mode1v3
-xcuserdata
-.DS_Store
-iCloud.framework
-
diff --git a/iCloudSync/Documentation/CloudBanner.png b/iCloudSync/Documentation/CloudBanner.png
deleted file mode 100644
index 0b13a882..00000000
Binary files a/iCloudSync/Documentation/CloudBanner.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Info.plist b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Info.plist
deleted file mode 100644
index 2c8109ed..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Info.plist
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>en</string>
- <key>CFBundleIdentifier</key>
- <string>com.iRareMedia.iCloud-Framework</string>
- <key>CFBundleName</key>
- <string>iCloud Framework Documentation</string>
- <key>CFBundleShortVersionString</key>
- <string>7.2</string>
- <key>CFBundleVersion</key>
- <string>7.2</string>
-
-
-
- <key>DocSetFallbackURL</key>
- <string>https://github.com/iRareMedia/iCloudDocumentSync/tree/master/Documentation/</string>
- <key>DocSetFeedName</key>
- <string>iCloud Framework Documentation</string>
- <key>DocSetFeedURL</key>
- <string>https://github.com/iRareMedia/iCloudDocumentSync/tree/master/Documentation//publish/iRareMedia.atom</string>
- <key>DocSetMinimumXcodeVersion</key>
- <string>3.0</string>
- <key>DocSetPlatformFamily</key>
- <string>iphoneos</string>
- <key>DashDocSetFamily</key>
- <string>appledoc</string>
- <key>DocSetPublisherIdentifier</key>
- <string>com.iRareMedia.documentation</string>
- <key>DocSetPublisherName</key>
- <string>iRare Media</string>
- <key>NSHumanReadableCopyright</key>
- <string>Copyright © 2014 iRare Media. All rights reserved.</string>
-</dict>
-</plist>
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloud.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloud.html
deleted file mode 100644
index c7ebb232..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloud.html
+++ /dev/null
@@ -1,2608 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloud Class Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Class Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
- <option value="properties">Properties</option>
-
- <option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
-
- <option value="//api/name/fileList">&nbsp;&nbsp;&nbsp;&nbsp;fileList</option>
-
- <option value="//api/name/previousQueryResults">&nbsp;&nbsp;&nbsp;&nbsp;previousQueryResults</option>
-
- <option value="//api/name/query">&nbsp;&nbsp;&nbsp;&nbsp;query</option>
-
- <option value="//api/name/verboseAvailabilityLogging">&nbsp;&nbsp;&nbsp;&nbsp;verboseAvailabilityLogging</option>
-
- <option value="//api/name/verboseLogging">&nbsp;&nbsp;&nbsp;&nbsp;verboseLogging</option>
-
-
-
-
- <option value="class_methods">Class Methods</option>
-
- <option value="//api/name/sharedCloud">&nbsp;&nbsp;&nbsp;&nbsp;+ sharedCloud</option>
-
- <option value="//api/name/updateFilesWithDelegate:">&nbsp;&nbsp;&nbsp;&nbsp;+ updateFilesWithDelegate:</option>
-
- <option value="//api/name/uploadLocalOfflineDocumentsWithDelegate:">&nbsp;&nbsp;&nbsp;&nbsp;+ uploadLocalOfflineDocumentsWithDelegate:</option>
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/checkCloudAvailability">&nbsp;&nbsp;&nbsp;&nbsp;- checkCloudAvailability</option>
-
- <option value="//api/name/checkCloudUbiquityContainer">&nbsp;&nbsp;&nbsp;&nbsp;- checkCloudUbiquityContainer</option>
-
- <option value="//api/name/deleteDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- deleteDocumentWithName:completion:</option>
-
- <option value="//api/name/documentStateForFile:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- documentStateForFile:completion:</option>
-
- <option value="//api/name/doesFileExistInCloud:">&nbsp;&nbsp;&nbsp;&nbsp;- doesFileExistInCloud:</option>
-
- <option value="//api/name/duplicateOriginalDocument:withNewName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- duplicateOriginalDocument:withNewName:completion:</option>
-
- <option value="//api/name/evictCloudDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- evictCloudDocumentWithName:completion:</option>
-
- <option value="//api/name/fileCreatedDate:">&nbsp;&nbsp;&nbsp;&nbsp;- fileCreatedDate:</option>
-
- <option value="//api/name/fileModifiedDate:">&nbsp;&nbsp;&nbsp;&nbsp;- fileModifiedDate:</option>
-
- <option value="//api/name/fileSize:">&nbsp;&nbsp;&nbsp;&nbsp;- fileSize:</option>
-
- <option value="//api/name/findUnresolvedConflictingVersionsOfFile:">&nbsp;&nbsp;&nbsp;&nbsp;- findUnresolvedConflictingVersionsOfFile:</option>
-
- <option value="//api/name/getListOfCloudFiles">&nbsp;&nbsp;&nbsp;&nbsp;- getListOfCloudFiles</option>
-
- <option value="//api/name/listCloudFiles">&nbsp;&nbsp;&nbsp;&nbsp;- listCloudFiles</option>
-
- <option value="//api/name/monitorDocumentStateForFile:onTarget:withSelector:">&nbsp;&nbsp;&nbsp;&nbsp;- monitorDocumentStateForFile:onTarget:withSelector:</option>
-
- <option value="//api/name/renameOriginalDocument:withNewName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- renameOriginalDocument:withNewName:completion:</option>
-
- <option value="//api/name/resolveConflictForFile:withSelectedFileVersion:">&nbsp;&nbsp;&nbsp;&nbsp;- resolveConflictForFile:withSelectedFileVersion:</option>
-
- <option value="//api/name/retrieveCloudDocumentObjectWithName:">&nbsp;&nbsp;&nbsp;&nbsp;- retrieveCloudDocumentObjectWithName:</option>
-
- <option value="//api/name/retrieveCloudDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- retrieveCloudDocumentWithName:completion:</option>
-
- <option value="//api/name/saveAndCloseDocumentWithName:withContent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- saveAndCloseDocumentWithName:withContent:completion:</option>
-
- <option value="//api/name/saveChangesToDocumentWithName:withContent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- saveChangesToDocumentWithName:withContent:completion:</option>
-
- <option value="//api/name/shareDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- shareDocumentWithName:completion:</option>
-
- <option value="//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">&nbsp;&nbsp;&nbsp;&nbsp;- stopMonitoringDocumentStateChangesForFile:onTarget:</option>
-
- <option value="//api/name/ubiquitousContainerURL">&nbsp;&nbsp;&nbsp;&nbsp;- ubiquitousContainerURL</option>
-
- <option value="//api/name/ubiquitousDocumentsDirectoryURL">&nbsp;&nbsp;&nbsp;&nbsp;- ubiquitousDocumentsDirectoryURL</option>
-
- <option value="//api/name/updateFiles">&nbsp;&nbsp;&nbsp;&nbsp;- updateFiles</option>
-
- <option value="//api/name/uploadLocalDocumentToCloudWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- uploadLocalDocumentToCloudWithName:completion:</option>
-
- <option value="//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Singleton">Singleton</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Delegate">Delegate</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Checking for iCloud">Checking for iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Syncing with iCloud">Syncing with iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Uploading to iCloud">Uploading to iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Sharing iCloud Content">Sharing iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deleting iCloud Content">Deleting iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving iCloud Content and Info">Retrieving iCloud Content and Info</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Managing iCloud Content">Managing iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_iCloud Document State">iCloud Document State</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Resolving iCloud Conflicts">Resolving iCloud Conflicts</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deprecated Methods">Deprecated Methods</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileList">fileList</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/previousQueryResults">previousQueryResults</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/query">query</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/verboseAvailabilityLogging">verboseAvailabilityLogging</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/verboseLogging">verboseLogging</a></span></li>
-
-</ul></li>
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sharedCloud">sharedCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/updateFilesWithDelegate:">updateFilesWithDelegate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalOfflineDocumentsWithDelegate:">uploadLocalOfflineDocumentsWithDelegate:</a></span></li>
-
-</ul></li>
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/checkCloudAvailability">checkCloudAvailability</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/checkCloudUbiquityContainer">checkCloudUbiquityContainer</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteDocumentWithName:completion:">deleteDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentStateForFile:completion:">documentStateForFile:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/duplicateOriginalDocument:withNewName:completion:">duplicateOriginalDocument:withNewName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/evictCloudDocumentWithName:completion:">evictCloudDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileCreatedDate:">fileCreatedDate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileModifiedDate:">fileModifiedDate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileSize:">fileSize:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/findUnresolvedConflictingVersionsOfFile:">findUnresolvedConflictingVersionsOfFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getListOfCloudFiles">getListOfCloudFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/listCloudFiles">listCloudFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/monitorDocumentStateForFile:onTarget:withSelector:">monitorDocumentStateForFile:onTarget:withSelector:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/renameOriginalDocument:withNewName:completion:">renameOriginalDocument:withNewName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resolveConflictForFile:withSelectedFileVersion:">resolveConflictForFile:withSelectedFileVersion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/retrieveCloudDocumentObjectWithName:">retrieveCloudDocumentObjectWithName:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/retrieveCloudDocumentWithName:completion:">retrieveCloudDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveChangesToDocumentWithName:withContent:completion:">saveChangesToDocumentWithName:withContent:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareDocumentWithName:completion:">shareDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">stopMonitoringDocumentStateChangesForFile:onTarget:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/ubiquitousContainerURL">ubiquitousContainerURL</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/ubiquitousDocumentsDirectoryURL">ubiquitousDocumentsDirectoryURL</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/updateFiles">updateFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalDocumentToCloudWithName:completion:">uploadLocalDocumentToCloudWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloud Class Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Class Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Inherits from</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloud.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>iCloud Document Sync makes it easy for developers to integrate the iCloud document storage APIs into iOS applications. This is how iCloud document-storage and management should&rsquo;ve been out of the box from Apple. Integrate iCloud into iOS (OS X coming soon) Objective-C document projects with one-line code methods. Sync, upload, manage, and remove documents to and from iCloud with only a few lines of code (compared to the hundreds of lines and hours that it usually takes). Get iCloud up and running in your iOS app in only a few minutes. Updates and more details on this project can be found on <a href="http://www.github.com/iRareMedia/iCloudDocumentSync">GitHub</a>. If you like the project, please star it on GitHub!</p>
-
-<p>The <code>iCloud</code> class provides methods to integrate iCloud into document projects.</p>
-
-<p>Adding iCloud Document Sync to your project is easy. Follow these steps below to get everything up and running.</p>
-
-<ol>
-<li>Drag the iCloud Framework into your project</li>
-<li>Add <code>#import &lt;iCloud/iCloud.h&gt;</code> to your header file(s) iCloud Document Sync</li>
-<li>Subscribe to the <a href="../Protocols/iCloudDelegate.html"><code>iCloudDelegate</code></a> <a href="#//api/name/delegate">delegate</a>.</li>
-<li><p>Call the following methods to setup iCloud when your app starts:</p>
-
-<p> [[iCloud sharedCloud] setDelegate:self]; // Set this if you plan to use the delegate
- [[iCloud sharedCloud] setVerboseLogging:YES]; // We want detailed feedback about what&rsquo;s going on with iCloud, this is OFF by default
- [[iCloud sharedCloud] updateFiles]; // Force iCloud Update: This is done automatically when changes are made, but we want to make sure the view is always updated when presented</p></li>
-</ol>
-<div class="warning"><p><strong>Warning:</strong> Only available on iOS 6.0 and later on apps with valid code signing and entitlements. Requires Xcode 5.0.1 and later. Check the online documentation for more information on setting up iCloud in your app.</p></div>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
- <a title="Singleton" name="task_Singleton"></a>
- <h3 class="subsubtitle task-title">Singleton</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/sharedCloud">+&nbsp;sharedCloud</a></code>
- <span class="tooltip"><p>iCloud shared instance object</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Delegate" name="task_Delegate"></a>
- <h3 class="subsubtitle task-title">Delegate</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
- <span class="tooltip"><p>iCloud Delegate helps call methods when document processes begin or end</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li>
- </ul>
-
-
- <a title="Properties" name="task_Properties"></a>
- <h3 class="subsubtitle task-title">Properties</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/query">&nbsp;&nbsp;query</a></code>
- <span class="tooltip"><p>The current NSMetadataQuery object</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileList">&nbsp;&nbsp;fileList</a></code>
- <span class="tooltip"><p>A list of iCloud files from the current <a href="#//api/name/query">query</a></p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/previousQueryResults">&nbsp;&nbsp;previousQueryResults</a></code>
- <span class="tooltip"><p>A list of iCloud files from the previous <a href="#//api/name/query">query</a></p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/verboseLogging">&nbsp;&nbsp;verboseLogging</a></code>
- <span class="tooltip"><p>Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/verboseAvailabilityLogging">&nbsp;&nbsp;verboseAvailabilityLogging</a></code>
- <span class="tooltip"><p>Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the <a href="#//api/name/verboseLogging">verboseLogging</a> property.</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li>
- </ul>
-
-
- <a title="Checking for iCloud" name="task_Checking for iCloud"></a>
- <h3 class="subsubtitle task-title">Checking for iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/checkCloudAvailability">&ndash;&nbsp;checkCloudAvailability</a></code>
- <span class="tooltip"><p>Check whether or not iCloud is available and that it can be accessed. Returns a boolean value.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/checkCloudUbiquityContainer">&ndash;&nbsp;checkCloudUbiquityContainer</a></code>
- <span class="tooltip"><p>Check that the current application&rsquo;s iCloud Ubiquity Container is available. Returns a boolean value.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/ubiquitousContainerURL">&ndash;&nbsp;ubiquitousContainerURL</a></code>
- <span class="tooltip"><p>Retrieve the current application&rsquo;s ubiquitous root URL</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/ubiquitousDocumentsDirectoryURL">&ndash;&nbsp;ubiquitousDocumentsDirectoryURL</a></code>
- <span class="tooltip"><p>Retrieve the current application&rsquo;s ubiquitous documents directory URL</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Syncing with iCloud" name="task_Syncing with iCloud"></a>
- <h3 class="subsubtitle task-title">Syncing with iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/updateFiles">&ndash;&nbsp;updateFiles</a></code>
- <span class="tooltip"><p>Check for and update the list of files stored in your app&rsquo;s iCloud Documents Folder. This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange:withNewFileNames: <a href="#//api/name/delegate">delegate</a> method is triggered by this method.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Uploading to iCloud" name="task_Uploading to iCloud"></a>
- <h3 class="subsubtitle task-title">Uploading to iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">&ndash;&nbsp;saveAndCloseDocumentWithName:withContent:completion:</a></code>
- <span class="tooltip"><p>Create, save, and close a document in iCloud.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">&ndash;&nbsp;uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</a></code>
- <span class="tooltip"><p>Upload any local files that weren&rsquo;t created with iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalDocumentToCloudWithName:completion:">&ndash;&nbsp;uploadLocalDocumentToCloudWithName:completion:</a></code>
- <span class="tooltip"><p>Upload a local file to iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Sharing iCloud Content" name="task_Sharing iCloud Content"></a>
- <h3 class="subsubtitle task-title">Sharing iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/shareDocumentWithName:completion:">&ndash;&nbsp;shareDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Share an iCloud document by uploading it to a public URL.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deleting iCloud Content" name="task_Deleting iCloud Content"></a>
- <h3 class="subsubtitle task-title">Deleting iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/deleteDocumentWithName:completion:">&ndash;&nbsp;deleteDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Delete a document from iCloud.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/evictCloudDocumentWithName:completion:">&ndash;&nbsp;evictCloudDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Evict a document from iCloud, move it from iCloud to the current application&rsquo;s local documents directory.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Retrieving iCloud Content and Info" name="task_Retrieving iCloud Content and Info"></a>
- <h3 class="subsubtitle task-title">Retrieving iCloud Content and Info</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/retrieveCloudDocumentWithName:completion:">&ndash;&nbsp;retrieveCloudDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the <a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a> method to check if a file exists before calling this method.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/retrieveCloudDocumentObjectWithName:">&ndash;&nbsp;retrieveCloudDocumentObjectWithName:</a></code>
- <span class="tooltip"><p>Get the relevant <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object for the specified file</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/doesFileExistInCloud:">&ndash;&nbsp;doesFileExistInCloud:</a></code>
- <span class="tooltip"><p>Check if a file exists in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileSize:">&ndash;&nbsp;fileSize:</a></code>
- <span class="tooltip"><p>Get the size of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileModifiedDate:">&ndash;&nbsp;fileModifiedDate:</a></code>
- <span class="tooltip"><p>Get the last modified date of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileCreatedDate:">&ndash;&nbsp;fileCreatedDate:</a></code>
- <span class="tooltip"><p>Get the creation date of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/listCloudFiles">&ndash;&nbsp;listCloudFiles</a></code>
- <span class="tooltip"><p>Get a list of files stored in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Managing iCloud Content" name="task_Managing iCloud Content"></a>
- <h3 class="subsubtitle task-title">Managing iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/renameOriginalDocument:withNewName:completion:">&ndash;&nbsp;renameOriginalDocument:withNewName:completion:</a></code>
- <span class="tooltip"><p>Rename a document in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/duplicateOriginalDocument:withNewName:completion:">&ndash;&nbsp;duplicateOriginalDocument:withNewName:completion:</a></code>
- <span class="tooltip"><p>Duplicate a document in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="iCloud Document State" name="task_iCloud Document State"></a>
- <h3 class="subsubtitle task-title">iCloud Document State</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/documentStateForFile:completion:">&ndash;&nbsp;documentStateForFile:completion:</a></code>
- <span class="tooltip"><p>Get the current document state of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/monitorDocumentStateForFile:onTarget:withSelector:">&ndash;&nbsp;monitorDocumentStateForFile:onTarget:withSelector:</a></code>
- <span class="tooltip"><p>Monitor changes in the state of a document stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">&ndash;&nbsp;stopMonitoringDocumentStateChangesForFile:onTarget:</a></code>
- <span class="tooltip"><p>Stop monitoring changes to the state of a document stored in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Resolving iCloud Conflicts" name="task_Resolving iCloud Conflicts"></a>
- <h3 class="subsubtitle task-title">Resolving iCloud Conflicts</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/findUnresolvedConflictingVersionsOfFile:">&ndash;&nbsp;findUnresolvedConflictingVersionsOfFile:</a></code>
- <span class="tooltip"><p>Find all the conflicting versions of a specified document</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/resolveConflictForFile:withSelectedFileVersion:">&ndash;&nbsp;resolveConflictForFile:withSelectedFileVersion:</a></code>
- <span class="tooltip"><p>Your application can follow one of three strategies for resolving document-version conflicts:</p>
-
-<ul>
-<li>Merge the changes from the conflicting versions.</li>
-<li>Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.</li>
-<li>Enable the user to view conflicting versions of a document and select the one to use.</li>
-</ul>
-</span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deprecated Methods" name="task_Deprecated Methods"></a>
- <h3 class="subsubtitle task-title">Deprecated Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/getListOfCloudFiles">&ndash;&nbsp;getListOfCloudFiles</a></code>
- <span class="tooltip"><p>DEPRECATED. Use <a href="#//api/name/listCloudFiles">listCloudFiles</a> instead. Get a list of files stored in iCloud (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.3. Use listCloudFiles instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/saveChangesToDocumentWithName:withContent:completion:">&ndash;&nbsp;saveChangesToDocumentWithName:withContent:completion:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use <a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a> instead. Record changes made to a document in iCloud. Changes are saved when the document is closed. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated beginning in version 7.1. Use saveAndCloseDocumentWithName:withContent:completion: instead. This method may become unavailable in a future version.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalOfflineDocumentsWithDelegate:">+&nbsp;uploadLocalOfflineDocumentsWithDelegate:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use uploadLocalOfflineDocuments instead, like so: [[iCloud sharedCloud] uploadLocalOfflineDocuments]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use uploadLocalOfflineDocuments instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/updateFilesWithDelegate:">+&nbsp;updateFilesWithDelegate:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use updateFiles instead, like so: [[iCloud sharedCloud] updateFiles]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use updateFiles instead.</span>)</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Properties" name="properties"></a>
- <h2 class="subtitle subtitle-methods">Properties</h2>
-
- <div class="section-method">
- <a name="//api/name/delegate" title="delegate"></a>
- <h3 class="subsubtitle method-title">delegate</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>iCloud Delegate helps call methods when document processes begin or end</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (weak, nonatomic) id&lt;iCloudDelegate&gt; delegate</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileList" title="fileList"></a>
- <h3 class="subsubtitle method-title">fileList</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>A list of iCloud files from the current <a href="#//api/name/query">query</a></p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMutableArray *fileList</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/previousQueryResults" title="previousQueryResults"></a>
- <h3 class="subsubtitle method-title">previousQueryResults</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>A list of iCloud files from the previous <a href="#//api/name/query">query</a></p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMutableArray *previousQueryResults</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/query" title="query"></a>
- <h3 class="subsubtitle method-title">query</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>The current NSMetadataQuery object</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMetadataQuery *query</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/verboseAvailabilityLogging" title="verboseAvailabilityLogging"></a>
- <h3 class="subsubtitle method-title">verboseAvailabilityLogging</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the <a href="#//api/name/verboseLogging">verboseLogging</a> property.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property BOOL verboseAvailabilityLogging</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/verboseLogging" title="verboseLogging"></a>
- <h3 class="subsubtitle method-title">verboseLogging</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property BOOL verboseLogging</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
- <div class="section section-methods">
- <a title="Class Methods" name="class_methods"></a>
- <h2 class="subtitle subtitle-methods">Class Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/sharedCloud" title="sharedCloud"></a>
- <h3 class="subsubtitle method-title">sharedCloud</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>iCloud shared instance object</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (instancetype)sharedCloud</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The shared instance of iCloud</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/updateFilesWithDelegate:" title="updateFilesWithDelegate:"></a>
- <h3 class="subsubtitle method-title">updateFilesWithDelegate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use updateFiles instead, like so: [[iCloud sharedCloud] updateFiles]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use updateFiles instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (void)updateFilesWithDelegate:(id&lt;iCloudDelegate&gt;)<em>delegate</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>delegate</em></dt>
- <dd><p>The <a href="../Protocols/iCloudDelegate.html">iCloudDelegate</a> object to be used for <a href="#//api/name/delegate">delegate</a> notifications</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalOfflineDocumentsWithDelegate:" title="uploadLocalOfflineDocumentsWithDelegate:"></a>
- <h3 class="subsubtitle method-title">uploadLocalOfflineDocumentsWithDelegate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use uploadLocalOfflineDocuments instead, like so: [[iCloud sharedCloud] uploadLocalOfflineDocuments]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use uploadLocalOfflineDocuments instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (void)uploadLocalOfflineDocumentsWithDelegate:(id&lt;iCloudDelegate&gt;)<em>delegate</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>delegate</em></dt>
- <dd><p>The <a href="../Protocols/iCloudDelegate.html">iCloudDelegate</a> object to be used for <a href="#//api/name/delegate">delegate</a> notifications</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/checkCloudAvailability" title="checkCloudAvailability"></a>
- <h3 class="subsubtitle method-title">checkCloudAvailability</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check whether or not iCloud is available and that it can be accessed. Returns a boolean value.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)checkCloudAvailability</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if iCloud is available. NO if iCloud is not available.</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>You should always check if iCloud is available before performing any iCloud operations (every method checks to make sure iCloud is available before continuing). Additionally, you may want to check if your users want to opt-in to iCloud on a per-app basis (according to Apple&rsquo;s documentation, you should only ask the user once to opt-in to iCloud). The Return value could be <strong>NO</strong> (iCloud Unavailable) for one or more of the following reasons:</p>
-
-<ul>
-<li> iCloud is turned off by the user</li>
-<li> The entitlements profile, code signing identity, and/or provisioning profile is invalid</li>
-</ul>
-
-
-<p>This method uses the ubiquityIdentityToken to check if iCloud is available. The <a href="#//api/name/delegate">delegate</a> method iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer: can be used to automatically detect changes in the availability of iCloud. A ubiquity token is passed in that method which lets you know if the iCloud account has changed.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/checkCloudUbiquityContainer" title="checkCloudUbiquityContainer"></a>
- <h3 class="subsubtitle method-title">checkCloudUbiquityContainer</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check that the current application&rsquo;s iCloud Ubiquity Container is available. Returns a boolean value.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)checkCloudUbiquityContainer</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the iCloud ubiquity container is available. NO if the ubiquity container is not available.</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method may not return immediately, depending on a number of factors. It is not necessary to call this method directly, although it may become useful in certain situations.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/deleteDocumentWithName:completion:" title="deleteDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">deleteDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Delete a document from iCloud.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)deleteDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document to delete from iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when a file is successfully deleted from iCloud. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Permanently delete a document stored in iCloud. This will only affect copies of the specified file stored in iCloud, if there is a copy stored locally it will not be affected.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentStateForFile:completion:" title="documentStateForFile:completion:"></a>
- <h3 class="subsubtitle method-title">documentStateForFile:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the current document state of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentStateForFile:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( UIDocumentState *documentState , NSString *userReadableDocumentState , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Completion handler that passes three parameters, an NSError, NSString and a UIDocumentState. The documentState parameter represents the document state that the specified file is currently in (may be nil if the file does not exist). The userReadableDocumentState parameter is an NSString which succinctly describes the current document state; if the file does not exist, a non-scary error will be displayed. The NSError parameter will contain a 404 error if the file does not exist.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/doesFileExistInCloud:" title="doesFileExistInCloud:"></a>
- <h3 class="subsubtitle method-title">doesFileExistInCloud:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check if a file exists in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)doesFileExistInCloud:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the UIDocument in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>BOOL value, YES if the file does exist in iCloud, NO if it does not. May return NO if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/duplicateOriginalDocument:withNewName:completion:" title="duplicateOriginalDocument:withNewName:completion:"></a>
- <h3 class="subsubtitle method-title">duplicateOriginalDocument:withNewName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Duplicate a document in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)duplicateOriginalDocument:(NSString *)<em>documentName</em> withNewName:(NSString *)<em>newName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being duplicated in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>newName</em></dt>
- <dd><p>The new name which the document should be duplicated to (usually the same name with the word &ldquo;copy&rdquo; appended to the end). The file specified should not exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document duplication has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/evictCloudDocumentWithName:completion:" title="evictCloudDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">evictCloudDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Evict a document from iCloud, move it from iCloud to the current application&rsquo;s local documents directory.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)evictCloudDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the iCloud document being downloaded from iCloud to the local documents directory. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called after the file has been uploaded to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Remove a document from iCloud storage and move it into the local document&rsquo;s directory. This method may call the iCloudFileConflictBetweenCloudFile:andLocalFile: iCloud Delegate method if there is a file conflict.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileCreatedDate:" title="fileCreatedDate:"></a>
- <h3 class="subsubtitle method-title">fileCreatedDate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the creation date of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSDate *)fileCreatedDate:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The date that the file was created. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileModifiedDate:" title="fileModifiedDate:"></a>
- <h3 class="subsubtitle method-title">fileModifiedDate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the last modified date of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSDate *)fileModifiedDate:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The date that the file was last modified. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileSize:" title="fileSize:"></a>
- <h3 class="subsubtitle method-title">fileSize:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the size of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSNumber *)fileSize:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The number of bytes in an unsigned long long. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/findUnresolvedConflictingVersionsOfFile:" title="findUnresolvedConflictingVersionsOfFile:"></a>
- <h3 class="subsubtitle method-title">findUnresolvedConflictingVersionsOfFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Find all the conflicting versions of a specified document</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)findUnresolvedConflictingVersionsOfFile:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An array of NSFileVersion objects, or nil if no such version object exists.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/getListOfCloudFiles" title="getListOfCloudFiles"></a>
- <h3 class="subsubtitle method-title">getListOfCloudFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use <a href="#//api/name/listCloudFiles">listCloudFiles</a> instead. Get a list of files stored in iCloud (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.3. Use listCloudFiles instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)getListOfCloudFiles</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>NSArray with a list of all the files currently stored in your app&rsquo;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/listCloudFiles" title="listCloudFiles"></a>
- <h3 class="subsubtitle method-title">listCloudFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get a list of files stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)listCloudFiles</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>NSArray with a list of all the files currently stored in your app&rsquo;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/monitorDocumentStateForFile:onTarget:withSelector:" title="monitorDocumentStateForFile:onTarget:withSelector:"></a>
- <h3 class="subsubtitle method-title">monitorDocumentStateForFile:onTarget:withSelector:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Monitor changes in the state of a document stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)monitorDocumentStateForFile:(NSString *)<em>documentName</em> onTarget:(id)<em>sender</em> withSelector:(SEL)<em>selector</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>sender</em></dt>
- <dd><p>Object registering as an observer. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>selector</em></dt>
- <dd><p>Selector to be called when the document state changes. Must only have one argument, an instance of NSNotifcation whose object is an <a href="../Classes/iCloudDocument.html">iCloudDocument</a> (UIDocument subclass). This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/renameOriginalDocument:withNewName:completion:" title="renameOriginalDocument:withNewName:completion:"></a>
- <h3 class="subsubtitle method-title">renameOriginalDocument:withNewName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Rename a document in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)renameOriginalDocument:(NSString *)<em>documentName</em> withNewName:(NSString *)<em>newName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being renamed in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>newName</em></dt>
- <dd><p>The new name which the document should be renamed with. The file specified should not exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document renaming has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/resolveConflictForFile:withSelectedFileVersion:" title="resolveConflictForFile:withSelectedFileVersion:"></a>
- <h3 class="subsubtitle method-title">resolveConflictForFile:withSelectedFileVersion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Your application can follow one of three strategies for resolving document-version conflicts:</p>
-
-<ul>
-<li>Merge the changes from the conflicting versions.</li>
-<li>Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.</li>
-<li>Enable the user to view conflicting versions of a document and select the one to use.</li>
-</ul>
-
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)resolveConflictForFile:(NSString *)<em>documentName</em> withSelectedFileVersion:(NSFileVersion *)<em>documentVersion</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentVersion</em></dt>
- <dd><p>The version of the document which should be kept and saved. All other conflicting versions will be removed.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/retrieveCloudDocumentObjectWithName:" title="retrieveCloudDocumentObjectWithName:"></a>
- <h3 class="subsubtitle method-title">retrieveCloudDocumentObjectWithName:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the relevant <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object for the specified file</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (iCloudDocument *)retrieveCloudDocumentObjectWithName:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the UIDocument stored in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An <a href="../Classes/iCloudDocument.html">iCloudDocument</a> (UIDocument subclass) object. May return nil if iCloud is unavailable or if an error occurred</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method serves a very different purpose from the <a href="#//api/name/retrieveCloudDocumentWithName:completion:">retrieveCloudDocumentWithName:completion:</a> method. Understand the differences between both methods and ensure that you are using the correct one. This method does not open, create, or save any UIDocuments - it simply returns the <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object which you can then use for various purposes.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/retrieveCloudDocumentWithName:completion:" title="retrieveCloudDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">retrieveCloudDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the <a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a> method to check if a file exists before calling this method.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)retrieveCloudDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully retrieved (opened or downloaded). The completion block passes UIDocument and NSData objects containing the opened document and it&rsquo;s contents in the form of NSData. If there is an error, the NSError object will have an error message (may be nil if there is no error). This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method will attempt to open the specified document. If the file does not exist, a blank one will be created. The completion handler is called when the file is opened or created (either successfully or not). The completion handler contains a UIDocument, NSData, and NSError all of which contain information about the opened document.</p>
-
-<pre><code>[[iCloud sharedCloud] retrieveCloudDocumentWithName:@"docName.ext" completion:^(UIDocument *cloudDocument, NSData *documentData, NSError *error) {
- if (error == nil) {
- NSString *documentName = [cloudDocument.fileURL lastPathComponent];
- NSData *fileData = documentData;
- }
- }];
-</code></pre>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/saveAndCloseDocumentWithName:withContent:completion:" title="saveAndCloseDocumentWithName:withContent:completion:"></a>
- <h3 class="subsubtitle method-title">saveAndCloseDocumentWithName:withContent:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Create, save, and close a document in iCloud.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)saveAndCloseDocumentWithName:(NSString *)<em>documentName</em> withContent:(NSData *)<em>content</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being written to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>content</em></dt>
- <dd><p>The data to write to the document</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully saved. The completion block passes UIDocument and NSData objects containing the saved document and it&rsquo;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>First, iCloud Document Sync checks if the specified document exists. If the document exists it is saved and closed. If the document does not exist, it is created then closed.</p>
-
-<p>iCloud Document Sync uses UIDocument and NSData to store and manage files. All of the heavy lifting with NSData and UIDocument is handled for you. There&rsquo;s no need to actually create or manage any files, just give iCloud Document Sync your data, and the rest is done for you.</p>
-
-<p>To create a new document or save an existing one (close the document), use this method. Below is a code example of how to use it.</p>
-
-<pre><code>[[iCloud sharedCloud] saveAndCloseDocumentWithName:@"Name.ext" withContent:[NSData data] completion:^(UIDocument *cloudDocument, NSData *documentData, NSError *error) {
- if (error == nil) {
- // Code here to use the UIDocument or NSData objects which have been passed with the completion handler
- }
-}];
-</code></pre>
-
-<p>Documents can be created even if the user is not connected to the internet. The only case in which a document will not be created is when the user has disabled iCloud or if the current application is not setup for iCloud.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/saveChangesToDocumentWithName:withContent:completion:" title="saveChangesToDocumentWithName:withContent:completion:"></a>
- <h3 class="subsubtitle method-title">saveChangesToDocumentWithName:withContent:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use <a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a> instead. Record changes made to a document in iCloud. Changes are saved when the document is closed. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated beginning in version 7.1. Use saveAndCloseDocumentWithName:withContent:completion: instead. This method may become unavailable in a future version.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)saveChangesToDocumentWithName:(NSString *)<em>documentName</em> withContent:(NSData *)<em>content</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being written to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>content</em></dt>
- <dd><p>The data to write to the document</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document changes are recorded. The completion block passes UIDocument and NSData objects containing the saved document and it&rsquo;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/shareDocumentWithName:completion:" title="shareDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">shareDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Share an iCloud document by uploading it to a public URL.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)shareDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSURL *sharedURL , NSDate *expirationDate , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the iCloud file being uploaded to a public URL. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully uploaded. The completion block passes NSURL, NSDate, and NSError objects. The NSURL object is the public URL where the file is available at, could be nil. The NSDate object is the date that the URL expires on, could be nil. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The public URL where the file is available</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Upload a document stored in iCloud to a public location on the internet for a limited amount of time.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:" title="stopMonitoringDocumentStateChangesForFile:onTarget:"></a>
- <h3 class="subsubtitle method-title">stopMonitoringDocumentStateChangesForFile:onTarget:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Stop monitoring changes to the state of a document stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)stopMonitoringDocumentStateChangesForFile:(NSString *)<em>documentName</em> onTarget:(id)<em>sender</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>sender</em></dt>
- <dd><p>Object registered as an observer that will no longer receive document state updates. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/ubiquitousContainerURL" title="ubiquitousContainerURL"></a>
- <h3 class="subsubtitle method-title">ubiquitousContainerURL</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the current application&rsquo;s ubiquitous root URL</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)ubiquitousContainerURL</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSURL with the root iCloud Ubiquitous URL for the current app. May return nil if iCloud is not properly setup or available.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/ubiquitousDocumentsDirectoryURL" title="ubiquitousDocumentsDirectoryURL"></a>
- <h3 class="subsubtitle method-title">ubiquitousDocumentsDirectoryURL</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the current application&rsquo;s ubiquitous documents directory URL</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)ubiquitousDocumentsDirectoryURL</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSURL with the iCloud ubiquitous documents directory URL for the current app. May return nil if iCloud is not properly setup or available.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/updateFiles" title="updateFiles"></a>
- <h3 class="subsubtitle method-title">updateFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check for and update the list of files stored in your app&rsquo;s iCloud Documents Folder. This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange:withNewFileNames: <a href="#//api/name/delegate">delegate</a> method is triggered by this method.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)updateFiles</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalDocumentToCloudWithName:completion:" title="uploadLocalDocumentToCloudWithName:completion:"></a>
- <h3 class="subsubtitle method-title">uploadLocalDocumentToCloudWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Upload a local file to iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)uploadLocalDocumentToCloudWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the local file stored in the application&rsquo;s documents directory. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called after the file has been uploaded to iCloud</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:" title="uploadLocalOfflineDocumentsWithRepeatingHandler:completion:"></a>
- <h3 class="subsubtitle method-title">uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Upload any local files that weren&rsquo;t created with iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)uploadLocalOfflineDocumentsWithRepeatingHandler:(void ( ^ ) ( NSString *documentName , NSError *error ))<em>repeatingHandler</em> completion:(void ( ^ ) ( void ))<em>completion</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>repeatingHandler</em></dt>
- <dd><p>Code block called after each file is uploaded to iCloud. This block is called every-time a local file is uploaded, therefore it may be called multiple times. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>completion</em></dt>
- <dd><p>Code block called after all files have been uploaded to iCloud. This block is only called once at the end of the method, regardless of any successes or failures that may have occurred during the upload(s).</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Files in the local documents directory that do not already exist in iCloud will be <strong>moved</strong> into iCloud one by one. This process involves lots of file manipulation and as a result it may take a long time. This process will be performed on the background thread to avoid any lag or memory problems. When the upload processes end, the completion block is called on the main thread.</p>
-
-<pre><code>[[iCloud sharedCloud] uploadLocalOfflineDocumentsWithRepeatingHandler:^(NSString *documentName, NSError *error) {
- if (error == nil) {
- // This code block is called repeatedly until all files have been uploaded (or an upload has at least been attempted).
- // Code here to use the NSString (the name of the uploaded file) which have been passed with the repeating handler
- }
- } completion:^{
- // Completion handler could be used to tell the user that the upload has completed
- }];
-</code></pre>
-
-<p>This method may call the iCloudFileConflictBetweenCloudFile:andLocalFile: iCloud Delegate method if there is a file conflict.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloudDocument.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloudDocument.html
deleted file mode 100644
index 0e295e58..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Classes/iCloudDocument.html
+++ /dev/null
@@ -1,555 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDocument Class Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDocument Class Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
- <option value="properties">Properties</option>
-
- <option value="//api/name/contents">&nbsp;&nbsp;&nbsp;&nbsp;contents</option>
-
- <option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/initWithFileURL:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithFileURL:</option>
-
- <option value="//api/name/localizedName">&nbsp;&nbsp;&nbsp;&nbsp;- localizedName</option>
-
- <option value="//api/name/stateDescription">&nbsp;&nbsp;&nbsp;&nbsp;- stateDescription</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Methods">Methods</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Delegate">Delegate</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/contents">contents</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithFileURL:">initWithFileURL:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/localizedName">localizedName</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stateDescription">stateDescription</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDocument Class Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDocument Class Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Inherits from</td>
- <td class="specification-value">UIDocument</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloudDocument.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>Use the iCloudDocument class (a subclass of UIDocument) to read and write documents managed by the <a href="../Classes/iCloud.html">iCloud</a> class. You should rarely interact directly with iCloudDocument. The <a href="../Classes/iCloud.html">iCloud</a> class manages all interactions with iCloudDocument. You can however retieve an iCloudDocument object by specifying its URL in the <a href="../Classes/iCloud.html">iCloud</a> class.</p>
-
-<p>iCloudDocument can read and write any files with the following exceptions:</p>
-
-<ul>
-<li>Bundles</li>
-<li>Packages</li>
-<li>Aliases</li>
-</ul>
-
-
-<p>If you&rsquo;d like support for the above faux files then please consider <a href="https://github.com/iRareMedia/iCloudDocumentSync/issues/new">filing an Issue on GitHub</a> or <a href="https://github.com/iRareMedia/iCloudDocumentSync/pulls">submitting a Pull Request</a> if you&rsquo;ve figured out how. This can be done using an NSFileWrapper.</p>
-
-<p>You may want to consider subclassing iCloudDocument for custom implementations of many features.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
- <a title="Methods" name="task_Methods"></a>
- <h3 class="subsubtitle task-title">Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/initWithFileURL:">&ndash;&nbsp;initWithFileURL:</a></code>
- <span class="tooltip"><p>Initialize a new UIDocument with the specified file path</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Delegate" name="task_Delegate"></a>
- <h3 class="subsubtitle task-title">Delegate</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
- <span class="tooltip"><p><a href="../Classes/iCloud.html">iCloud</a> Delegate helps call methods when document processes begin or end</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/contents">&nbsp;&nbsp;contents</a></code>
- <span class="tooltip"><p>The data to read or write to a UIDocument</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/localizedName">&ndash;&nbsp;localizedName</a></code>
- <span class="tooltip"><p>Retrieve the localized name of the current document</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/stateDescription">&ndash;&nbsp;stateDescription</a></code>
- <span class="tooltip"><p>Retrieve a user-readable form of the document state</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Properties" name="properties"></a>
- <h2 class="subtitle subtitle-methods">Properties</h2>
-
- <div class="section-method">
- <a name="//api/name/contents" title="contents"></a>
- <h3 class="subsubtitle method-title">contents</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>The data to read or write to a UIDocument</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (copy) NSData *contents</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/delegate" title="delegate"></a>
- <h3 class="subsubtitle method-title">delegate</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p><a href="../Classes/iCloud.html">iCloud</a> Delegate helps call methods when document processes begin or end</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (weak, nonatomic) id&lt;iCloudDocumentDelegate&gt; delegate</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/initWithFileURL:" title="initWithFileURL:"></a>
- <h3 class="subsubtitle method-title">initWithFileURL:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Initialize a new UIDocument with the specified file path</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (instancetype)initWithFileURL:(NSURL *)<em>url</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>url</em></dt>
- <dd><p>The path to the UIDocument file</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>UIDocument object at the specified URL</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/localizedName" title="localizedName"></a>
- <h3 class="subsubtitle method-title">localizedName</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the localized name of the current document</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)localizedName</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>Name of document including file extension, as an NSString</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/stateDescription" title="stateDescription"></a>
- <h3 class="subsubtitle method-title">stateDescription</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve a user-readable form of the document state</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)stateDescription</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>Current state of the document as a user-readable NSString</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDelegate.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDelegate.html
deleted file mode 100644
index 35d8c787..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDelegate.html
+++ /dev/null
@@ -1,1210 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDelegate Protocol Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDelegate Protocol Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/cloudError:">&nbsp;&nbsp;&nbsp;&nbsp;- cloudError:</option>
-
- <option value="//api/name/documentWasDeleted">&nbsp;&nbsp;&nbsp;&nbsp;- documentWasDeleted</option>
-
- <option value="//api/name/documentWasSaved">&nbsp;&nbsp;&nbsp;&nbsp;- documentWasSaved</option>
-
- <option value="//api/name/documentsFinishedDownloading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsFinishedDownloading</option>
-
- <option value="//api/name/documentsFinishedUploading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsFinishedUploading</option>
-
- <option value="//api/name/documentsStartedDownloading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsStartedDownloading</option>
-
- <option value="//api/name/documentsStartedUploading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsStartedUploading</option>
-
- <option value="//api/name/fileListChangedWithFiles:andFileNames:">&nbsp;&nbsp;&nbsp;&nbsp;- fileListChangedWithFiles:andFileNames:</option>
-
- <option value="//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</option>
-
- <option value="//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</option>
-
- <option value="//api/name/iCloudError:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudError:</option>
-
- <option value="//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileConflictBetweenCloudFile:andLocalFile:</option>
-
- <option value="//api/name/iCloudFileUpdateDidBegin">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUpdateDidBegin</option>
-
- <option value="//api/name/iCloudFileUpdateDidEnd">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUpdateDidEnd</option>
-
- <option value="//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUploadConflictWithCloudFile:andLocalFile:</option>
-
- <option value="//api/name/iCloudFilesDidChange:withNewFileNames:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFilesDidChange:withNewFileNames:</option>
-
- <option value="//api/name/iCloudQueryLimitedToFileExtension">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudQueryLimitedToFileExtension</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deprecated Delegate Methods">Deprecated Delegate Methods</a></span></li>
-
-</ul></li>
-
-
-
-
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/cloudError:">cloudError:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentWasDeleted">documentWasDeleted</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentWasSaved">documentWasSaved</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsFinishedDownloading">documentsFinishedDownloading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsFinishedUploading">documentsFinishedUploading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsStartedDownloading">documentsStartedDownloading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsStartedUploading">documentsStartedUploading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileListChangedWithFiles:andFileNames:">fileListChangedWithFiles:andFileNames:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudError:">iCloudError:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">iCloudFileConflictBetweenCloudFile:andLocalFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUpdateDidBegin">iCloudFileUpdateDidBegin</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUpdateDidEnd">iCloudFileUpdateDidEnd</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">iCloudFileUploadConflictWithCloudFile:andLocalFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFilesDidChange:withNewFileNames:">iCloudFilesDidChange:withNewFileNames:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudQueryLimitedToFileExtension">iCloudQueryLimitedToFileExtension</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDelegate Protocol Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDelegate Protocol Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Conforms to</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloud.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>The iCloudDelegate protocol defines the methods used to receive event notifications and allow for deeper control of the <a href="../Classes/iCloud.html">iCloud</a> Class.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
-
- <h3 class="subsubtitle task-title">Other Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">&ndash;&nbsp;iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</a></code>
- <span class="tooltip"><p>Called when the availability of <a href="../Classes/iCloud.html">iCloud</a> changes</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">&ndash;&nbsp;iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</a></code>
- <span class="tooltip"><p>Called when the <a href="../Classes/iCloud.html">iCloud</a> initiaization process is finished and the <a href="../Classes/iCloud.html">iCloud</a> is available</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudQueryLimitedToFileExtension">&ndash;&nbsp;iCloudQueryLimitedToFileExtension</a></code>
- <span class="tooltip"><p>Called before creating an <a href="../Classes/iCloud.html">iCloud</a> Query filter. Specify the type of file to be queried.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUpdateDidBegin">&ndash;&nbsp;iCloudFileUpdateDidBegin</a></code>
- <span class="tooltip"><p>Called before an <a href="../Classes/iCloud.html">iCloud</a> Query begins.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUpdateDidEnd">&ndash;&nbsp;iCloudFileUpdateDidEnd</a></code>
- <span class="tooltip"><p>Called when an <a href="../Classes/iCloud.html">iCloud</a> Query ends.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFilesDidChange:withNewFileNames:">&ndash;&nbsp;iCloudFilesDidChange:withNewFileNames:</a></code>
- <span class="tooltip"><p>Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">&ndash;&nbsp;iCloudFileConflictBetweenCloudFile:andLocalFile:</a></code>
- <span class="tooltip"><p>Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload or download</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deprecated Delegate Methods" name="task_Deprecated Delegate Methods"></a>
- <h3 class="subsubtitle task-title">Deprecated Delegate Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">&ndash;&nbsp;iCloudFileUploadConflictWithCloudFile:andLocalFile:</a></code>
- <span class="tooltip"><p>DEPRECATED. Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use iCloudFileConflictBetweenCloudFile:andLocalFile: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudError:">&ndash;&nbsp;iCloudError:</a></code>
- <span class="tooltip"><p>DEPRECATED. Called when there is an error while performing an <a href="../Classes/iCloud.html">iCloud</a> process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.1. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/cloudError:">&ndash;&nbsp;cloudError:</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that there was an error while performing a process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileListChangedWithFiles:andFileNames:">&ndash;&nbsp;fileListChangedWithFiles:andFileNames:</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use iCloudFilesDidChange:withNewFileNames: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentWasDeleted">&ndash;&nbsp;documentWasDeleted</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document was successfully deleted. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in deleteDocumentWithName:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentWasSaved">&ndash;&nbsp;documentWasSaved</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document was successfully saved (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in saveDocumentWithName:withContent:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsFinishedUploading">&ndash;&nbsp;documentsFinishedUploading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document finished uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in uploadLocalOfflineDocumentsWithDelegate:repeatingHandler:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsStartedUploading">&ndash;&nbsp;documentsStartedUploading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document started uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsStartedDownloading">&ndash;&nbsp;documentsStartedDownloading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document started downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsFinishedDownloading">&ndash;&nbsp;documentsFinishedDownloading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document finished downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/cloudError:" title="cloudError:"></a>
- <h3 class="subsubtitle method-title">cloudError:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that there was an error while performing a process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)cloudError:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>Returns the NSError that occurred</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentWasDeleted" title="documentWasDeleted"></a>
- <h3 class="subsubtitle method-title">documentWasDeleted</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document was successfully deleted. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in deleteDocumentWithName:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentWasDeleted</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentWasSaved" title="documentWasSaved"></a>
- <h3 class="subsubtitle method-title">documentWasSaved</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document was successfully saved (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in saveDocumentWithName:withContent:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentWasSaved</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsFinishedDownloading" title="documentsFinishedDownloading"></a>
- <h3 class="subsubtitle method-title">documentsFinishedDownloading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document finished downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsFinishedDownloading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsFinishedUploading" title="documentsFinishedUploading"></a>
- <h3 class="subsubtitle method-title">documentsFinishedUploading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document finished uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in uploadLocalOfflineDocumentsWithDelegate:repeatingHandler:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsFinishedUploading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsStartedDownloading" title="documentsStartedDownloading"></a>
- <h3 class="subsubtitle method-title">documentsStartedDownloading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document started downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsStartedDownloading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsStartedUploading" title="documentsStartedUploading"></a>
- <h3 class="subsubtitle method-title">documentsStartedUploading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document started uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsStartedUploading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileListChangedWithFiles:andFileNames:" title="fileListChangedWithFiles:andFileNames:"></a>
- <h3 class="subsubtitle method-title">fileListChangedWithFiles:andFileNames:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use iCloudFilesDidChange:withNewFileNames: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)fileListChangedWithFiles:(NSMutableArray *)<em>files</em> andFileNames:(NSMutableArray *)<em>fileNames</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>files</em></dt>
- <dd><p>Returns a list of the files now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory - each file in the array contains information such as file version, url, localized name, date, etc.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>fileNames</em></dt>
- <dd><p>Returns a list of the file names now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:" title="iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:"></a>
- <h3 class="subsubtitle method-title">iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when the availability of <a href="../Classes/iCloud.html">iCloud</a> changes</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudAvailabilityDidChangeToState:(BOOL)<em>cloudIsAvailable</em> withUbiquityToken:(id)<em>ubiquityToken</em> withUbiquityContainer:(NSURL *)<em>ubiquityContainer</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudIsAvailable</em></dt>
- <dd><p>Boolean value that is YES if <a href="../Classes/iCloud.html">iCloud</a> is available and NO if <a href="../Classes/iCloud.html">iCloud</a> is not available</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityToken</em></dt>
- <dd><p>An <a href="../Classes/iCloud.html">iCloud</a> ubiquity token that represents the current <a href="../Classes/iCloud.html">iCloud</a> identity. Can be used to determine if <a href="../Classes/iCloud.html">iCloud</a> is available and if the <a href="../Classes/iCloud.html">iCloud</a> account has been changed (ex. if the user logged out and then logged in with a different <a href="../Classes/iCloud.html">iCloud</a> account). This object may be nil if <a href="../Classes/iCloud.html">iCloud</a> is not available for any reason.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityContainer</em></dt>
- <dd><p>The root URL path to the current application&rsquo;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:" title="iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:"></a>
- <h3 class="subsubtitle method-title">iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when the <a href="../Classes/iCloud.html">iCloud</a> initiaization process is finished and the <a href="../Classes/iCloud.html">iCloud</a> is available</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudDidFinishInitializingWitUbiquityToken:(id)<em>cloudToken</em> withUbiquityContainer:(NSURL *)<em>ubiquityContainer</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudToken</em></dt>
- <dd><p>An <a href="../Classes/iCloud.html">iCloud</a> ubiquity token that represents the current <a href="../Classes/iCloud.html">iCloud</a> identity. Can be used to determine if <a href="../Classes/iCloud.html">iCloud</a> is available and if the <a href="../Classes/iCloud.html">iCloud</a> account has been changed (ex. if the user logged out and then logged in with a different <a href="../Classes/iCloud.html">iCloud</a> account). This object may be nil if <a href="../Classes/iCloud.html">iCloud</a> is not available for any reason.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityContainer</em></dt>
- <dd><p>The root URL path to the current application&rsquo;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudError:" title="iCloudError:"></a>
- <h3 class="subsubtitle method-title">iCloudError:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Called when there is an error while performing an <a href="../Classes/iCloud.html">iCloud</a> process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.1. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudError:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>An NSError with a message, error code, and information</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:" title="iCloudFileConflictBetweenCloudFile:andLocalFile:"></a>
- <h3 class="subsubtitle method-title">iCloudFileConflictBetweenCloudFile:andLocalFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload or download</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileConflictBetweenCloudFile:(NSDictionary *)<em>cloudFile</em> andLocalFile:(NSDictionary *)<em>localFile</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudFile</em></dt>
- <dd><p>An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>localFile</em></dt>
- <dd><p>An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>When both files have the same modification date and file content, <a href="../Classes/iCloud.html">iCloud</a> Document Sync will not be able to automatically determine how to handle the conflict. As a result, this delegate method is called to pass the file information to the delegate which should be able to appropriately handle and resolve the conflict. The delegate should, if needed, present the user with a conflict resolution interface. <a href="../Classes/iCloud.html">iCloud</a> Document Sync does not need to know the result of the attempted resolution, it will continue to upload all files which are not conflicting.</p>
-
-<p>It is important to note that <strong>this method may be called more than once in a very short period of time</strong> - be prepared to handle the data appropriately.</p>
-
-<p>The delegate is only notified about conflicts during upload and download procedures with <a href="../Classes/iCloud.html">iCloud</a>. This method does not monitor for document conflicts between documents which already exist in <a href="../Classes/iCloud.html">iCloud</a>. There are other methods provided to you to detect document state and state changes / conflicts.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUpdateDidBegin" title="iCloudFileUpdateDidBegin"></a>
- <h3 class="subsubtitle method-title">iCloudFileUpdateDidBegin</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called before an <a href="../Classes/iCloud.html">iCloud</a> Query begins.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUpdateDidBegin</code></div>
-
-
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This may be useful to display interface updates.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUpdateDidEnd" title="iCloudFileUpdateDidEnd"></a>
- <h3 class="subsubtitle method-title">iCloudFileUpdateDidEnd</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when an <a href="../Classes/iCloud.html">iCloud</a> Query ends.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUpdateDidEnd</code></div>
-
-
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This may be useful to display interface updates.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:" title="iCloudFileUploadConflictWithCloudFile:andLocalFile:"></a>
- <h3 class="subsubtitle method-title">iCloudFileUploadConflictWithCloudFile:andLocalFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use iCloudFileConflictBetweenCloudFile:andLocalFile: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUploadConflictWithCloudFile:(NSDictionary *)<em>cloudFile</em> andLocalFile:(NSDictionary *)<em>localFile</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudFile</em></dt>
- <dd><p>An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>localFile</em></dt>
- <dd><p>An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFilesDidChange:withNewFileNames:" title="iCloudFilesDidChange:withNewFileNames:"></a>
- <h3 class="subsubtitle method-title">iCloudFilesDidChange:withNewFileNames:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFilesDidChange:(NSMutableArray *)<em>files</em> withNewFileNames:(NSMutableArray *)<em>fileNames</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>files</em></dt>
- <dd><p>A list of the files now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory - each NSMetadataItem in the array contains information such as file version, url, localized name, date, etc.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>fileNames</em></dt>
- <dd><p>A list of the file names (NSString) now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudQueryLimitedToFileExtension" title="iCloudQueryLimitedToFileExtension"></a>
- <h3 class="subsubtitle method-title">iCloudQueryLimitedToFileExtension</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called before creating an <a href="../Classes/iCloud.html">iCloud</a> Query filter. Specify the type of file to be queried.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)iCloudQueryLimitedToFileExtension</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSString with one file extension formatted like this: @&ldquo;txt&rdquo;</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>If this delegate is not implemented or returns nil, all files stored in the documents directory will be queried.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDocumentDelegate.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDocumentDelegate.html
deleted file mode 100644
index 9c3a523c..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/Protocols/iCloudDocumentDelegate.html
+++ /dev/null
@@ -1,314 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDocumentDelegate Protocol Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDocumentDelegate Protocol Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/iCloudDocumentErrorOccured:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudDocumentErrorOccured:</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
-</ul></li>
-
-
-
-
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudDocumentErrorOccured:">iCloudDocumentErrorOccured:</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDocumentDelegate Protocol Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDocumentDelegate Protocol Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Conforms to</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloudDocument.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>The iCloudDocumentDelegate protocol defines the methods used to receive error notifications and allow for deeper control of document handling and management.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
-
-
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudDocumentErrorOccured:">&ndash;&nbsp;iCloudDocumentErrorOccured:</a></code>
- <span class="tooltip"><p>Delegate method fired when an error occurs during an attempt to read, save, or revert a document.</p></span>
- </span>
-
- <span class="task-item-suffix">required method</span>
-</li>
- </ul>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/iCloudDocumentErrorOccured:" title="iCloudDocumentErrorOccured:"></a>
- <h3 class="subsubtitle method-title">iCloudDocumentErrorOccured:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Delegate method fired when an error occurs during an attempt to read, save, or revert a document.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudDocumentErrorOccured:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>The error that occured during an attempt to read, save, or revert a document.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/styles.css b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/styles.css
deleted file mode 100644
index 1ad26185..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/styles.css
+++ /dev/null
@@ -1,588 +0,0 @@
-body {
- font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
- font-size: 13px;
-}
-
-code {
- font-family: Courier, Consolas, monospace;
- font-size: 13px;
- color: #666;
-}
-
-pre {
- font-family: Courier, Consolas, monospace;
- font-size: 13px;
- line-height: 18px;
- tab-interval: 0.5em;
- border: 1px solid #C7CFD5;
- background-color: #F1F5F9;
- color: #666;
- padding: 0.3em 1em;
-}
-
-ul {
- list-style-type: square;
-}
-
-li {
- margin-bottom: 10px;
-}
-
-a, a code {
- text-decoration: none;
- color: #36C;
-}
-
-a:hover, a:hover code {
- text-decoration: underline;
- color: #36C;
-}
-
-h2 {
- border-bottom: 1px solid #8391A8;
- color: #3C4C6C;
- font-size: 187%;
- font-weight: normal;
- margin-top: 1.75em;
- padding-bottom: 2px;
-}
-
-table {
- margin-bottom: 4em;
- border-collapse:collapse;
- vertical-align: middle;
-}
-
-td {
- border: 1px solid #9BB3CD;
- padding: .667em;
- font-size: 100%;
-}
-
-th {
- border: 1px solid #9BB3CD;
- padding: .3em .667em .3em .667em;
- background: #93A5BB;
- font-size: 103%;
- font-weight: bold;
- color: white;
- text-align: left;
-}
-
-/* @group Common page elements */
-
-#top_header {
- height: 91px;
- left: 0;
- min-width: 598px;
- position: absolute;
- right: 0;
- top: 0;
- z-index: 900;
-}
-
-#footer {
- clear: both;
- padding-top: 20px;
- text-align: center;
-}
-
-#contents, #overview_contents {
- -webkit-overflow-scrolling: touch;
- border-top: 1px solid #2B334F;
- position: absolute;
- top: 91px;
- left: 0;
- right: 0;
- bottom: 0;
- overflow-x: hidden;
- overflow-y: auto;
- padding-left: 2em;
- padding-right: 2em;
- padding-top: 1em;
- min-width: 550px;
-}
-
-#contents.isShowingTOC {
- left: 230px;
- min-width: 320px;
-}
-
-.copyright {
- font-size: 12px;
-}
-
-.generator {
- font-size: 11px;
-}
-
-.main-navigation ul li {
- display: inline;
- margin-left: 15px;
- list-style: none;
-}
-
-.navigation-top {
- clear: both;
- float: right;
-}
-
-.navigation-bottom {
- clear: both;
- float: right;
- margin-top: 20px;
- margin-bottom: -10px;
-}
-
-.open > .disclosure {
- background-image: url("../img/disclosure_open.png");
-}
-
-.disclosure {
- background: url("../img/disclosure.png") no-repeat scroll 0 0;
-}
-
-.disclosure, .nodisclosure {
- display: inline-block;
- height: 8px;
- margin-right: 5px;
- position: relative;
- width: 9px;
-}
-
-/* @end */
-
-/* @group Header */
-
-#top_header #library {
- background: url("../img/library_background.png") repeat-x 0 0 #485E78;
- background-color: #ccc;
- height: 35px;
- font-size: 115%;
-}
-
-#top_header #library #libraryTitle {
- color: #FFFFFF;
- margin-left: 15px;
- text-shadow: 0 -1px 0 #485E78;
- top: 8px;
- position: absolute;
-}
-
-#libraryTitle {
- left: 0;
-}
-
-#top_header #library #developerHome {
- color: #92979E;
- right: 15px;
- top: 8px;
- position: absolute;
-}
-
-#top_header #library a:hover {
- text-decoration: none;
-}
-
-#top_header #title {
- background: url("../img/title_background.png") repeat-x 0 0 #8A98A9;
- border-bottom: 1px solid #B6B6B6;
- height: 25px;
- overflow: hidden;
-}
-
-#top_header h1 {
- font-size: 115%;
- font-weight: normal;
- margin: 0;
- padding: 3px 0 2px;
- text-align: center;
- text-shadow: 0 1px 0 #D5D5D5;
- white-space: nowrap;
-}
-
-#headerButtons {
- background-color: #D8D8D8;
- background-image: url("../img/button_bar_background.png");
- border-bottom: 1px solid #EDEDED;
- border-top: 1px solid #2B334F;
- font-size: 8pt;
- height: 28px;
- left: 0;
- list-style: none outside none;
- margin: 0;
- overflow: hidden;
- padding: 0;
- position: absolute;
- right: 0;
- top: 61px;
-}
-
-#headerButtons li {
- background-repeat: no-repeat;
- display: inline;
- margin-top: 0;
- margin-bottom: 0;
- padding: 0;
-}
-
-#toc_button button {
- border-color: #ACACAC;
- border-style: none solid none none;
- border-width: 0 1px 0 0;
- height: 28px;
- margin: 0;
- padding-left: 30px;
- text-align: left;
- width: 230px;
-}
-
-li#jumpto_button {
- left: 230px;
- margin-left: 0;
- position: absolute;
-}
-
-li#jumpto_button select {
- height: 22px;
- margin: 5px 2px 0 10px;
- max-width: 300px;
-}
-
-/* @end */
-
-/* @group Table of contents */
-
-#tocContainer.isShowingTOC {
- border-right: 1px solid #ACACAC;
- display: block;
- overflow-x: hidden;
- overflow-y: auto;
- padding: 0;
-}
-
-#tocContainer {
- background-color: #E4EBF7;
- border-top: 1px solid #2B334F;
- bottom: 0;
- display: none;
- left: 0;
- overflow: hidden;
- position: absolute;
- top: 91px;
- width: 229px;
-}
-
-#tocContainer > ul#toc {
- font-size: 11px;
- margin: 0;
- padding: 12px 0 18px;
- width: 209px;
- -moz-user-select: none;
- -webkit-user-select: none;
- user-select: none;
-}
-
-#tocContainer > ul#toc > li {
- margin: 0;
- padding: 0 0 7px 30px;
- text-indent: -15px;
-}
-
-#tocContainer > ul#toc > li > .sectionName a {
- color: #000000;
- font-weight: bold;
-}
-
-#tocContainer > ul#toc > li > .sectionName a:hover {
- text-decoration: none;
-}
-
-#tocContainer > ul#toc li.children > ul {
- display: none;
- height: 0;
-}
-
-#tocContainer > ul#toc > li > ul {
- margin: 0;
- padding: 0;
-}
-
-#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
- margin-left: 0;
- margin-bottom: 0;
- padding-left: 15px;
-}
-
-#tocContainer > ul#toc > li ul {
- list-style: none;
- margin-right: 0;
- padding-right: 0;
-}
-
-#tocContainer > ul#toc li.children.open > ul {
- display: block;
- height: auto;
- margin-left: -15px;
- padding-left: 0;
-}
-
-#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
- margin-left: 0;
- padding-left: 15px;
-}
-
-#tocContainer li ul li {
- margin-top: 0.583em;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-#tocContainer li ul li span.sectionName {
- white-space: normal;
-}
-
-#tocContainer > ul#toc > li > ul > li > .sectionName a {
- font-weight: bold;
-}
-
-#tocContainer > ul#toc > li > ul a {
- color: #4F4F4F;
-}
-
-/* @end */
-
-/* @group Index formatting */
-
-.index-title {
- font-size: 13px;
- font-weight: normal;
-}
-
-.index-column {
- float: left;
- width: 30%;
- min-width: 200px;
- font-size: 11px;
-}
-
-.index-column ul {
- margin: 8px 0 0 0;
- padding: 0;
- list-style: none;
-}
-
-.index-column ul li {
- margin: 0 0 3px 0;
- padding: 0;
-}
-
-.hierarchy-column {
- min-width: 400px;
-}
-
-.hierarchy-column ul {
- margin: 3px 0 0 15px;
-}
-
-.hierarchy-column ul li {
- list-style-type: square;
-}
-
-/* @end */
-
-/* @group Common formatting elements */
-
-.title {
- font-weight: normal;
- font-size: 215%;
- margin-top:0;
-}
-
-.subtitle {
- font-weight: normal;
- font-size: 180%;
- color: #3C4C6C;
- border-bottom: 1px solid #5088C5;
-}
-
-.subsubtitle {
- font-weight: normal;
- font-size: 145%;
- height: 0.7em;
-}
-
-.note {
- border: 1px solid #5088C5;
- background-color: white;
- margin: 1.667em 0 1.75em 0;
- padding: 0 .667em .083em .750em;
-}
-
-.warning {
- border: 1px solid #5088C5;
- background-color: #F0F3F7;
- margin-bottom: 0.5em;
- padding: 0.3em 0.8em;
-}
-
-.bug {
- border: 1px solid #000;
- background-color: #ffffcc;
- margin-bottom: 0.5em;
- padding: 0.3em 0.8em;
-}
-
-.deprecated {
- color: #F60425;
-}
-
-/* @end */
-
-/* @group Common layout */
-
-.section {
- margin-top: 3em;
-}
-
-/* @end */
-
-/* @group Object specification section */
-
-.section-specification {
- margin-left: 2.5em;
- margin-right: 2.5em;
- font-size: 12px;
-}
-
-.section-specification table {
- margin-bottom: 0em;
- border-top: 1px solid #d6e0e5;
-}
-
-.section-specification td {
- vertical-align: top;
- border-bottom: 1px solid #d6e0e5;
- border-left-width: 0px;
- border-right-width: 0px;
- border-top-width: 0px;
- padding: .6em;
-}
-
-.section-specification .specification-title {
- font-weight: bold;
-}
-
-/* @end */
-
-/* @group Tasks section */
-
-.task-list {
- list-style-type: none;
- padding-left: 0px;
-}
-
-.task-list li {
- margin-bottom: 3px;
-}
-
-.task-item-suffix {
- color: #996;
- font-size: 12px;
- font-style: italic;
- margin-left: 0.5em;
-}
-
-span.tooltip span.tooltip {
- font-size: 1.0em;
- display: none;
- padding: 0.3em;
- border: 1px solid #aaa;
- background-color: #fdfec8;
- color: #000;
- text-align: left;
-}
-
-span.tooltip:hover span.tooltip {
- display: block;
- position: absolute;
- margin-left: 2em;
-}
-
-/* @end */
-
-/* @group Method section */
-
-.section-method {
- margin-top: 2.3em;
-}
-
-.method-title {
- margin-bottom: 1.5em;
-}
-
-.method-subtitle {
- margin-top: 0.7em;
- margin-bottom: 0.2em;
-}
-
-.method-subsection p {
- margin-top: 0.4em;
- margin-bottom: 0.8em;
-}
-
-.method-declaration {
- margin-top:1.182em;
- margin-bottom:.909em;
-}
-
-.method-declaration code {
- font:14px Courier, Consolas, monospace;
- color:#000;
-}
-
-.declaration {
- color: #000;
-}
-
-.argument-def {
- margin-top: 0.3em;
- margin-bottom: 0.3em;
-}
-
-.argument-def dd {
- margin-left: 1.25em;
-}
-
-.see-also-section ul {
- list-style-type: none;
- padding-left: 0px;
- margin-top: 0;
-}
-
-.see-also-section li {
- margin-bottom: 3px;
-}
-
-.declared-in-ref {
- color: #666;
-}
-
-#tocContainer.hideInXcode {
- display: none;
- border: 0px solid black;
-}
-
-#top_header.hideInXcode {
- display: none;
-}
-
-#contents.hideInXcode {
- border: 0px solid black;
- top: 0px;
- left: 0px;
-}
-
-/* @end */
-
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/stylesPrint.css b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/stylesPrint.css
deleted file mode 100644
index dc54cd2f..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/css/stylesPrint.css
+++ /dev/null
@@ -1,22 +0,0 @@
-
-header {
- display: none;
-}
-
-div.main-navigation, div.navigation-top {
- display: none;
-}
-
-div#overview_contents, div#contents.isShowingTOC, div#contents {
- overflow: visible;
- position: relative;
- top: 0px;
- border: none;
- left: 0;
-}
-#tocContainer.isShowingTOC {
- display: none;
-}
-nav {
- display: none;
-}
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/hierarchy.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/hierarchy.html
deleted file mode 100644
index c7ebb9e1..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/hierarchy.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>iCloud Framework Hierarchy</title>
- <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Framework Hierarchy</h1>
- </div>
- <ul id="headerButtons" role="toolbar"></ul>
- </header>
- <article>
- <div id="overview_contents" role="main">
- <div class="main-navigation navigation-top">
- <a href="index.html">Previous</a>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Framework Hierarchy</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="index-column hierarchy-column">
- <h2 class="index-title">Class Hierarchy</h2>
-
- <ul>
-
- <li>NSObject
- <ul>
-
- <li><a href="Classes/iCloud.html">iCloud</a></li>
-
- </ul>
-</li>
-
- <li>UIDocument
- <ul>
-
- <li><a href="Classes/iCloudDocument.html">iCloudDocument</a></li>
-
- </ul>
-</li>
-
- </ul>
-
- </div>
-
-
-
- <div class="index-column">
-
- <h2 class="index-title">Protocol References</h2>
- <ul>
-
- <li><a href="Protocols/iCloudDelegate.html">iCloudDelegate</a></li>
-
- <li><a href="Protocols/iCloudDocumentDelegate.html">iCloudDocumentDelegate</a></li>
-
- </ul>
-
-
- </div>
-
- </div>
- <div class="main-navigation navigation-bottom">
- <a href="index.html">Previous</a>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
-
- </div>
- </div>
- </div>
- </article>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/button_bar_background.png b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/button_bar_background.png
deleted file mode 100644
index abea7178..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/button_bar_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure.png b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure.png
deleted file mode 100644
index 4c5cbf44..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure_open.png b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure_open.png
deleted file mode 100644
index 82396fed..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/disclosure_open.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/library_background.png b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/library_background.png
deleted file mode 100644
index 7b3486bd..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/library_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/title_background.png b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/title_background.png
deleted file mode 100644
index 3bf0bb17..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/img/title_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/index.html b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/index.html
deleted file mode 100644
index f6a0fc93..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Documents/index.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>iCloud Framework Reference</title>
- <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Framework Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar"></ul>
- </header>
- <article>
- <div id="overview_contents" role="main">
- <div class="main-navigation navigation-top">
- <a href="hierarchy.html">Next</a>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Framework Reference</h1>
- </div>
- </div>
- <div id="container">
-
-
-
-
-
- <div class="index-column">
- <h2 class="index-title">Class References</h2>
- <ul>
-
- <li><a href="Classes/iCloud.html">iCloud</a></li>
-
- <li><a href="Classes/iCloudDocument.html">iCloudDocument</a></li>
-
- </ul>
- </div>
-
-
-
- <div class="index-column">
-
- <h2 class="index-title">Protocol References</h2>
- <ul>
-
- <li><a href="Protocols/iCloudDelegate.html">iCloudDelegate</a></li>
-
- <li><a href="Protocols/iCloudDocumentDelegate.html">iCloudDocumentDelegate</a></li>
-
- </ul>
-
-
- </div>
-
- </div>
- <div class="main-navigation navigation-bottom">
- <a href="hierarchy.html">Next</a>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
-
- </div>
- </div>
- </div>
- </article>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Nodes.xml b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Nodes.xml
deleted file mode 100644
index 155ce0c1..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Nodes.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<DocSetNodes version="1.0">
- <TOC>
- <Node type="folder">
- <Name>iCloud Framework</Name>
- <Path>index.html</Path>
- <Subnodes>
-
-
- <Node type="folder">
- <Name>Classes</Name>
- <Path>index.html</Path>
- <Subnodes>
- <NodeRef refid="1"/>
- <NodeRef refid="2"/>
-
- </Subnodes>
- </Node>
-
-
-
- <Node type="folder">
- <Name>Protocols</Name>
- <Path>index.html</Path>
- <Subnodes>
- <NodeRef refid="3"/>
- <NodeRef refid="4"/>
-
- </Subnodes>
- </Node>
-
- </Subnodes>
- </Node>
- </TOC>
- <Library>
-
- <Node id="1" type="file">
- <Name>iCloud</Name>
- <Path>Classes/iCloud.html</Path>
- </Node>
- <Node id="2" type="file">
- <Name>iCloudDocument</Name>
- <Path>Classes/iCloudDocument.html</Path>
- </Node>
-
-
- <Node id="3" type="file">
- <Name>iCloudDelegate</Name>
- <Path>Protocols/iCloudDelegate.html</Path>
- </Node>
- <Node id="4" type="file">
- <Name>iCloudDocumentDelegate</Name>
- <Path>Protocols/iCloudDocumentDelegate.html</Path>
- </Node>
-
- </Library>
-</DocSetNodes>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens1.xml b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens1.xml
deleted file mode 100644
index 7492d63e..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens1.xml
+++ /dev/null
@@ -1,762 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Tokens version="1.0">
- <File path="Classes/iCloud.html">
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/cl/iCloud</TokenIdentifier>
- <Abstract type="html">iCloud Document Sync makes it easy for developers to integrate the iCloud document storage APIs into iOS applications. This is how iCloud document-storage and management should&apos;ve been out of the box from Apple. Integrate iCloud into iOS (OS X coming soon) Objective-C document projects with one-line code methods. Sync, upload, manage, and remove documents to and from iCloud with only a few lines of code (compared to the hundreds of lines and hours that it usually takes). Get iCloud up and running in your iOS app in only a few minutes. Updates and more details on this project can be found on GitHub. If you like the project, please star it on GitHub!</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <NodeRef refid="1"/>
- </Token>
-
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/clm/iCloud/sharedCloud</TokenIdentifier>
- <Abstract type="html">iCloud shared instance object</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>+ (instancetype)sharedCloud</Declaration>
-
- <ReturnValue><Abstract type="html">The shared instance of iCloud</Abstract></ReturnValue>
- <Anchor>//api/name/sharedCloud</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setDelegate:</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/delegate</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/delegate</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setQuery:</TokenIdentifier>
- <Abstract type="html">The current NSMetadataQuery object</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMetadataQuery *query</Declaration>
-
-
- <Anchor>//api/name/query</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/query</TokenIdentifier>
- <Abstract type="html">The current NSMetadataQuery object</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMetadataQuery *query</Declaration>
-
-
- <Anchor>//api/name/query</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/query</TokenIdentifier>
- <Abstract type="html">The current NSMetadataQuery object</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMetadataQuery *query</Declaration>
-
-
- <Anchor>//api/name/query</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setFileList:</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the current query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *fileList</Declaration>
-
-
- <Anchor>//api/name/fileList</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/fileList</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the current query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *fileList</Declaration>
-
-
- <Anchor>//api/name/fileList</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/fileList</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the current query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *fileList</Declaration>
-
-
- <Anchor>//api/name/fileList</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setPreviousQueryResults:</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the previous query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *previousQueryResults</Declaration>
-
-
- <Anchor>//api/name/previousQueryResults</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/previousQueryResults</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the previous query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *previousQueryResults</Declaration>
-
-
- <Anchor>//api/name/previousQueryResults</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/previousQueryResults</TokenIdentifier>
- <Abstract type="html">A list of iCloud files from the previous query</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property (strong) NSMutableArray *previousQueryResults</Declaration>
-
-
- <Anchor>//api/name/previousQueryResults</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setVerboseLogging:</TokenIdentifier>
- <Abstract type="html">Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseLogging</Declaration>
-
-
- <Anchor>//api/name/verboseLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/verboseLogging</TokenIdentifier>
- <Abstract type="html">Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseLogging</Declaration>
-
-
- <Anchor>//api/name/verboseLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/verboseLogging</TokenIdentifier>
- <Abstract type="html">Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseLogging</Declaration>
-
-
- <Anchor>//api/name/verboseLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/setVerboseAvailabilityLogging:</TokenIdentifier>
- <Abstract type="html">Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the verboseLogging property.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseAvailabilityLogging</Declaration>
-
-
- <Anchor>//api/name/verboseAvailabilityLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/verboseAvailabilityLogging</TokenIdentifier>
- <Abstract type="html">Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the verboseLogging property.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseAvailabilityLogging</Declaration>
-
-
- <Anchor>//api/name/verboseAvailabilityLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloud/verboseAvailabilityLogging</TokenIdentifier>
- <Abstract type="html">Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the verboseLogging property.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>@property BOOL verboseAvailabilityLogging</Declaration>
-
-
- <Anchor>//api/name/verboseAvailabilityLogging</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/checkCloudAvailability</TokenIdentifier>
- <Abstract type="html">Check whether or not iCloud is available and that it can be accessed. Returns a boolean value.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (BOOL)checkCloudAvailability</Declaration>
-
- <ReturnValue><Abstract type="html">YES if iCloud is available. NO if iCloud is not available.</Abstract></ReturnValue>
- <Anchor>//api/name/checkCloudAvailability</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/checkCloudUbiquityContainer</TokenIdentifier>
- <Abstract type="html">Check that the current application&apos;s iCloud Ubiquity Container is available. Returns a boolean value.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (BOOL)checkCloudUbiquityContainer</Declaration>
-
- <ReturnValue><Abstract type="html">YES if the iCloud ubiquity container is available. NO if the ubiquity container is not available.</Abstract></ReturnValue>
- <Anchor>//api/name/checkCloudUbiquityContainer</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/ubiquitousContainerURL</TokenIdentifier>
- <Abstract type="html">Retrieve the current application&apos;s ubiquitous root URL</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSURL *)ubiquitousContainerURL</Declaration>
-
- <ReturnValue><Abstract type="html">An NSURL with the root iCloud Ubiquitous URL for the current app. May return nil if iCloud is not properly setup or available.</Abstract></ReturnValue>
- <Anchor>//api/name/ubiquitousContainerURL</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/ubiquitousDocumentsDirectoryURL</TokenIdentifier>
- <Abstract type="html">Retrieve the current application&apos;s ubiquitous documents directory URL</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSURL *)ubiquitousDocumentsDirectoryURL</Declaration>
-
- <ReturnValue><Abstract type="html">An NSURL with the iCloud ubiquitous documents directory URL for the current app. May return nil if iCloud is not properly setup or available.</Abstract></ReturnValue>
- <Anchor>//api/name/ubiquitousDocumentsDirectoryURL</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/updateFiles</TokenIdentifier>
- <Abstract type="html">Check for and update the list of files stored in your app&apos;s iCloud Documents Folder. This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange:withNewFileNames: delegate method is triggered by this method.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)updateFiles</Declaration>
-
-
- <Anchor>//api/name/updateFiles</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/saveAndCloseDocumentWithName:withContent:completion:</TokenIdentifier>
- <Abstract type="html">Create, save, and close a document in iCloud.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)saveAndCloseDocumentWithName:(NSString *)documentName withContent:(NSData *)content completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document being written to iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>content</Name>
- <Abstract type="html">The data to write to the document</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document is successfully saved. The completion block passes UIDocument and NSData objects containing the saved document and it&apos;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/saveAndCloseDocumentWithName:withContent:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</TokenIdentifier>
- <Abstract type="html">Upload any local files that weren&apos;t created with iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)uploadLocalOfflineDocumentsWithRepeatingHandler:(void ( ^ ) ( NSString *documentName , NSError *error ))repeatingHandler completion:(void ( ^ ) ( void ))completion</Declaration>
- <Parameters>
- <Parameter>
- <Name>repeatingHandler</Name>
- <Abstract type="html">Code block called after each file is uploaded to iCloud. This block is called every-time a local file is uploaded, therefore it may be called multiple times. The NSError object contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter><Parameter>
- <Name>completion</Name>
- <Abstract type="html">Code block called after all files have been uploaded to iCloud. This block is only called once at the end of the method, regardless of any successes or failures that may have occurred during the upload(s).</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/uploadLocalDocumentToCloudWithName:completion:</TokenIdentifier>
- <Abstract type="html">Upload a local file to iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)uploadLocalDocumentToCloudWithName:(NSString *)documentName completion:(void ( ^ ) ( NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the local file stored in the application&apos;s documents directory. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called after the file has been uploaded to iCloud</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/uploadLocalDocumentToCloudWithName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/shareDocumentWithName:completion:</TokenIdentifier>
- <Abstract type="html">Share an iCloud document by uploading it to a public URL.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSURL *)shareDocumentWithName:(NSString *)documentName completion:(void ( ^ ) ( NSURL *sharedURL , NSDate *expirationDate , NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the iCloud file being uploaded to a public URL. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document is successfully uploaded. The completion block passes NSURL, NSDate, and NSError objects. The NSURL object is the public URL where the file is available at, could be nil. The NSDate object is the date that the URL expires on, could be nil. The NSError object contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">The public URL where the file is available</Abstract></ReturnValue>
- <Anchor>//api/name/shareDocumentWithName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/deleteDocumentWithName:completion:</TokenIdentifier>
- <Abstract type="html">Delete a document from iCloud.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)deleteDocumentWithName:(NSString *)documentName completion:(void ( ^ ) ( NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document to delete from iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when a file is successfully deleted from iCloud. The NSError object contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/deleteDocumentWithName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/evictCloudDocumentWithName:completion:</TokenIdentifier>
- <Abstract type="html">Evict a document from iCloud, move it from iCloud to the current application&apos;s local documents directory.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)evictCloudDocumentWithName:(NSString *)documentName completion:(void ( ^ ) ( NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the iCloud document being downloaded from iCloud to the local documents directory. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called after the file has been uploaded to iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/evictCloudDocumentWithName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/retrieveCloudDocumentWithName:completion:</TokenIdentifier>
- <Abstract type="html">Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the doesFileExistInCloud: method to check if a file exists before calling this method.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)retrieveCloudDocumentWithName:(NSString *)documentName completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document in iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document is successfully retrieved (opened or downloaded). The completion block passes UIDocument and NSData objects containing the opened document and it&apos;s contents in the form of NSData. If there is an error, the NSError object will have an error message (may be nil if there is no error). This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/retrieveCloudDocumentWithName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/retrieveCloudDocumentObjectWithName:</TokenIdentifier>
- <Abstract type="html">Get the relevant iCloudDocument object for the specified file</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (iCloudDocument *)retrieveCloudDocumentObjectWithName:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the UIDocument stored in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">An iCloudDocument (UIDocument subclass) object. May return nil if iCloud is unavailable or if an error occurred</Abstract></ReturnValue>
- <Anchor>//api/name/retrieveCloudDocumentObjectWithName:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/doesFileExistInCloud:</TokenIdentifier>
- <Abstract type="html">Check if a file exists in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (BOOL)doesFileExistInCloud:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the UIDocument in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">BOOL value, YES if the file does exist in iCloud, NO if it does not. May return NO if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/doesFileExistInCloud:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/fileSize:</TokenIdentifier>
- <Abstract type="html">Get the size of a file stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSNumber *)fileSize:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">The number of bytes in an unsigned long long. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/fileSize:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/fileModifiedDate:</TokenIdentifier>
- <Abstract type="html">Get the last modified date of a file stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSDate *)fileModifiedDate:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">The date that the file was last modified. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/fileModifiedDate:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/fileCreatedDate:</TokenIdentifier>
- <Abstract type="html">Get the creation date of a file stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSDate *)fileCreatedDate:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">The date that the file was created. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/fileCreatedDate:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/listCloudFiles</TokenIdentifier>
- <Abstract type="html">Get a list of files stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSArray *)listCloudFiles</Declaration>
-
- <ReturnValue><Abstract type="html">NSArray with a list of all the files currently stored in your app&apos;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/listCloudFiles</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/renameOriginalDocument:withNewName:completion:</TokenIdentifier>
- <Abstract type="html">Rename a document in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)renameOriginalDocument:(NSString *)documentName withNewName:(NSString *)newName completion:(void ( ^ ) ( NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document being renamed in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>newName</Name>
- <Abstract type="html">The new name which the document should be renamed with. The file specified should not exist, otherwise an error will occur. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document renaming has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/renameOriginalDocument:withNewName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/duplicateOriginalDocument:withNewName:completion:</TokenIdentifier>
- <Abstract type="html">Duplicate a document in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)duplicateOriginalDocument:(NSString *)documentName withNewName:(NSString *)newName completion:(void ( ^ ) ( NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document being duplicated in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>newName</Name>
- <Abstract type="html">The new name which the document should be duplicated to (usually the same name with the word &quot;copy&quot; appended to the end). The file specified should not exist, otherwise an error will occur. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document duplication has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/duplicateOriginalDocument:withNewName:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/documentStateForFile:completion:</TokenIdentifier>
- <Abstract type="html">Get the current document state of a file stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentStateForFile:(NSString *)documentName completion:(void ( ^ ) ( UIDocumentState *documentState , NSString *userReadableDocumentState , NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Completion handler that passes three parameters, an NSError, NSString and a UIDocumentState. The documentState parameter represents the document state that the specified file is currently in (may be nil if the file does not exist). The userReadableDocumentState parameter is an NSString which succinctly describes the current document state; if the file does not exist, a non-scary error will be displayed. The NSError parameter will contain a 404 error if the file does not exist.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/documentStateForFile:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/monitorDocumentStateForFile:onTarget:withSelector:</TokenIdentifier>
- <Abstract type="html">Monitor changes in the state of a document stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (BOOL)monitorDocumentStateForFile:(NSString *)documentName onTarget:(id)sender withSelector:(SEL)selector</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>sender</Name>
- <Abstract type="html">Object registering as an observer. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>selector</Name>
- <Abstract type="html">Selector to be called when the document state changes. Must only have one argument, an instance of NSNotifcation whose object is an iCloudDocument (UIDocument subclass). This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</Abstract></ReturnValue>
- <Anchor>//api/name/monitorDocumentStateForFile:onTarget:withSelector:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/stopMonitoringDocumentStateChangesForFile:onTarget:</TokenIdentifier>
- <Abstract type="html">Stop monitoring changes to the state of a document stored in iCloud</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (BOOL)stopMonitoringDocumentStateChangesForFile:(NSString *)documentName onTarget:(id)sender</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>sender</Name>
- <Abstract type="html">Object registered as an observer that will no longer receive document state updates. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</Abstract></ReturnValue>
- <Anchor>//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/findUnresolvedConflictingVersionsOfFile:</TokenIdentifier>
- <Abstract type="html">Find all the conflicting versions of a specified document</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSArray *)findUnresolvedConflictingVersionsOfFile:(NSString *)documentName</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">An array of NSFileVersion objects, or nil if no such version object exists.</Abstract></ReturnValue>
- <Anchor>//api/name/findUnresolvedConflictingVersionsOfFile:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/resolveConflictForFile:withSelectedFileVersion:</TokenIdentifier>
- <Abstract type="html">Your application can follow one of three strategies for resolving document-version conflicts:
-
-* Merge the changes from the conflicting versions.
-* Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.
-* Enable the user to view conflicting versions of a document and select the one to use.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)resolveConflictForFile:(NSString *)documentName withSelectedFileVersion:(NSFileVersion *)documentVersion</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the file in iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>documentVersion</Name>
- <Abstract type="html">The version of the document which should be kept and saved. All other conflicting versions will be removed.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/resolveConflictForFile:withSelectedFileVersion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/getListOfCloudFiles</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Use listCloudFiles instead. Get a list of files stored in iCloud (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 7.3. Use listCloudFiles instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSArray *)getListOfCloudFiles</Declaration>
-
- <ReturnValue><Abstract type="html">NSArray with a list of all the files currently stored in your app&apos;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</Abstract></ReturnValue>
- <Anchor>//api/name/getListOfCloudFiles</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloud/saveChangesToDocumentWithName:withContent:completion:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Use saveAndCloseDocumentWithName:withContent:completion: instead. Record changes made to a document in iCloud. Changes are saved when the document is closed. (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated beginning in version 7.1. Use saveAndCloseDocumentWithName:withContent:completion: instead. This method may become unavailable in a future version.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)saveChangesToDocumentWithName:(NSString *)documentName withContent:(NSData *)content completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))handler</Declaration>
- <Parameters>
- <Parameter>
- <Name>documentName</Name>
- <Abstract type="html">The name of the document being written to iCloud. This value must not be nil.</Abstract>
- </Parameter><Parameter>
- <Name>content</Name>
- <Abstract type="html">The data to write to the document</Abstract>
- </Parameter><Parameter>
- <Name>handler</Name>
- <Abstract type="html">Code block called when the document changes are recorded. The completion block passes UIDocument and NSData objects containing the saved document and it&apos;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/saveChangesToDocumentWithName:withContent:completion:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/clm/iCloud/uploadLocalOfflineDocumentsWithDelegate:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Use uploadLocalOfflineDocuments instead, like so: [[iCloud sharedCloud] uploadLocalOfflineDocuments]; (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 7.0. Use uploadLocalOfflineDocuments instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>+ (void)uploadLocalOfflineDocumentsWithDelegate:(id&lt;iCloudDelegate&gt;)delegate</Declaration>
- <Parameters>
- <Parameter>
- <Name>delegate</Name>
- <Abstract type="html">The iCloudDelegate object to be used for delegate notifications</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/uploadLocalOfflineDocumentsWithDelegate:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/clm/iCloud/updateFilesWithDelegate:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Use updateFiles instead, like so: [[iCloud sharedCloud] updateFiles]; (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 7.0. Use updateFiles instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>+ (void)updateFilesWithDelegate:(id&lt;iCloudDelegate&gt;)delegate</Declaration>
- <Parameters>
- <Parameter>
- <Name>delegate</Name>
- <Abstract type="html">The iCloudDelegate object to be used for delegate notifications</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/updateFilesWithDelegate:</Anchor>
- <NodeRef refid="1"/>
- </Token>
-
- </File>
-</Tokens>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens2.xml b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens2.xml
deleted file mode 100644
index e6e88f68..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens2.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Tokens version="1.0">
- <File path="Classes/iCloudDocument.html">
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/cl/iCloudDocument</TokenIdentifier>
- <Abstract type="html">Use the iCloudDocument class (a subclass of UIDocument) to read and write documents managed by the iCloud class. You should rarely interact directly with iCloudDocument. The iCloud class manages all interactions with iCloudDocument. You can however retieve an iCloudDocument object by specifying its URL in the iCloud class.</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <NodeRef refid="2"/>
- </Token>
-
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/initWithFileURL:</TokenIdentifier>
- <Abstract type="html">Initialize a new UIDocument with the specified file path</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>- (instancetype)initWithFileURL:(NSURL *)url</Declaration>
- <Parameters>
- <Parameter>
- <Name>url</Name>
- <Abstract type="html">The path to the UIDocument file</Abstract>
- </Parameter>
- </Parameters>
- <ReturnValue><Abstract type="html">UIDocument object at the specified URL</Abstract></ReturnValue>
- <Anchor>//api/name/initWithFileURL:</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/setDelegate:</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDocumentDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/delegate</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDocumentDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloudDocument/delegate</TokenIdentifier>
- <Abstract type="html">iCloud Delegate helps call methods when document processes begin or end</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (weak, nonatomic) id&lt;iCloudDocumentDelegate&gt; delegate</Declaration>
-
-
- <Anchor>//api/name/delegate</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/setContents:</TokenIdentifier>
- <Abstract type="html">The data to read or write to a UIDocument</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (copy) NSData *contents</Declaration>
-
-
- <Anchor>//api/name/contents</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/contents</TokenIdentifier>
- <Abstract type="html">The data to read or write to a UIDocument</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (copy) NSData *contents</Declaration>
-
-
- <Anchor>//api/name/contents</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instp/iCloudDocument/contents</TokenIdentifier>
- <Abstract type="html">The data to read or write to a UIDocument</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>@property (copy) NSData *contents</Declaration>
-
-
- <Anchor>//api/name/contents</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/localizedName</TokenIdentifier>
- <Abstract type="html">Retrieve the localized name of the current document</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>- (NSString *)localizedName</Declaration>
-
- <ReturnValue><Abstract type="html">Name of document including file extension, as an NSString</Abstract></ReturnValue>
- <Anchor>//api/name/localizedName</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/instm/iCloudDocument/stateDescription</TokenIdentifier>
- <Abstract type="html">Retrieve a user-readable form of the document state</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>- (NSString *)stateDescription</Declaration>
-
- <ReturnValue><Abstract type="html">Current state of the document as a user-readable NSString</Abstract></ReturnValue>
- <Anchor>//api/name/stateDescription</Anchor>
- <NodeRef refid="2"/>
- </Token>
-
- </File>
-</Tokens>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens3.xml b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens3.xml
deleted file mode 100644
index 8bfdd078..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens3.xml
+++ /dev/null
@@ -1,280 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Tokens version="1.0">
- <File path="Protocols/iCloudDelegate.html">
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intf/iCloudDelegate</TokenIdentifier>
- <Abstract type="html">The iCloudDelegate protocol defines the methods used to receive event notifications and allow for deeper control of the iCloud Class.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <NodeRef refid="3"/>
- </Token>
-
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</TokenIdentifier>
- <Abstract type="html">Called when the availability of iCloud changes</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudAvailabilityDidChangeToState:(BOOL)cloudIsAvailable withUbiquityToken:(id)ubiquityToken withUbiquityContainer:(NSURL *)ubiquityContainer</Declaration>
- <Parameters>
- <Parameter>
- <Name>cloudIsAvailable</Name>
- <Abstract type="html">Boolean value that is YES if iCloud is available and NO if iCloud is not available</Abstract>
- </Parameter><Parameter>
- <Name>ubiquityToken</Name>
- <Abstract type="html">An iCloud ubiquity token that represents the current iCloud identity. Can be used to determine if iCloud is available and if the iCloud account has been changed (ex. if the user logged out and then logged in with a different iCloud account). This object may be nil if iCloud is not available for any reason.</Abstract>
- </Parameter><Parameter>
- <Name>ubiquityContainer</Name>
- <Abstract type="html">The root URL path to the current application&apos;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</TokenIdentifier>
- <Abstract type="html">Called when the iCloud initiaization process is finished and the iCloud is available</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudDidFinishInitializingWitUbiquityToken:(id)cloudToken withUbiquityContainer:(NSURL *)ubiquityContainer</Declaration>
- <Parameters>
- <Parameter>
- <Name>cloudToken</Name>
- <Abstract type="html">An iCloud ubiquity token that represents the current iCloud identity. Can be used to determine if iCloud is available and if the iCloud account has been changed (ex. if the user logged out and then logged in with a different iCloud account). This object may be nil if iCloud is not available for any reason.</Abstract>
- </Parameter><Parameter>
- <Name>ubiquityContainer</Name>
- <Abstract type="html">The root URL path to the current application&apos;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudQueryLimitedToFileExtension</TokenIdentifier>
- <Abstract type="html">Called before creating an iCloud Query filter. Specify the type of file to be queried.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (NSString *)iCloudQueryLimitedToFileExtension</Declaration>
-
- <ReturnValue><Abstract type="html">An NSString with one file extension formatted like this: @&quot;txt&quot;</Abstract></ReturnValue>
- <Anchor>//api/name/iCloudQueryLimitedToFileExtension</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudFileUpdateDidBegin</TokenIdentifier>
- <Abstract type="html">Called before an iCloud Query begins.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudFileUpdateDidBegin</Declaration>
-
-
- <Anchor>//api/name/iCloudFileUpdateDidBegin</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudFileUpdateDidEnd</TokenIdentifier>
- <Abstract type="html">Called when an iCloud Query ends.</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudFileUpdateDidEnd</Declaration>
-
-
- <Anchor>//api/name/iCloudFileUpdateDidEnd</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudFilesDidChange:withNewFileNames:</TokenIdentifier>
- <Abstract type="html">Tells the delegate that the files in iCloud have been modified</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudFilesDidChange:(NSMutableArray *)files withNewFileNames:(NSMutableArray *)fileNames</Declaration>
- <Parameters>
- <Parameter>
- <Name>files</Name>
- <Abstract type="html">A list of the files now in the app&apos;s iCloud documents directory - each NSMetadataItem in the array contains information such as file version, url, localized name, date, etc.</Abstract>
- </Parameter><Parameter>
- <Name>fileNames</Name>
- <Abstract type="html">A list of the file names (NSString) now in the app&apos;s iCloud documents directory</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudFilesDidChange:withNewFileNames:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudFileConflictBetweenCloudFile:andLocalFile:</TokenIdentifier>
- <Abstract type="html">Sent to the delegate where there is a conflict between a local file and an iCloud file during an upload or download</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudFileConflictBetweenCloudFile:(NSDictionary *)cloudFile andLocalFile:(NSDictionary *)localFile</Declaration>
- <Parameters>
- <Parameter>
- <Name>cloudFile</Name>
- <Abstract type="html">An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</Abstract>
- </Parameter><Parameter>
- <Name>localFile</Name>
- <Abstract type="html">An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudFileUploadConflictWithCloudFile:andLocalFile:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Sent to the delegate where there is a conflict between a local file and an iCloud file during an upload (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 7.0. Use iCloudFileConflictBetweenCloudFile:andLocalFile: instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudFileUploadConflictWithCloudFile:(NSDictionary *)cloudFile andLocalFile:(NSDictionary *)localFile</Declaration>
- <Parameters>
- <Parameter>
- <Name>cloudFile</Name>
- <Abstract type="html">An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</Abstract>
- </Parameter><Parameter>
- <Name>localFile</Name>
- <Abstract type="html">An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/iCloudError:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Called when there is an error while performing an iCloud process (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.1. Use the NSError parameter available in corresponding methods&apos; completion handlers.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)iCloudError:(NSError *)error</Declaration>
- <Parameters>
- <Parameter>
- <Name>error</Name>
- <Abstract type="html">An NSError with a message, error code, and information</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudError:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/cloudError:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that there was an error while performing a process (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. Use the NSError parameter available in corresponding methods&apos; completion handlers.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)cloudError:(NSError *)error</Declaration>
- <Parameters>
- <Parameter>
- <Name>error</Name>
- <Abstract type="html">Returns the NSError that occurred</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/cloudError:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/fileListChangedWithFiles:andFileNames:</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that the files in iCloud have been modified (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. Use iCloudFilesDidChange:withNewFileNames: instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)fileListChangedWithFiles:(NSMutableArray *)files andFileNames:(NSMutableArray *)fileNames</Declaration>
- <Parameters>
- <Parameter>
- <Name>files</Name>
- <Abstract type="html">Returns a list of the files now in the app&apos;s iCloud documents directory - each file in the array contains information such as file version, url, localized name, date, etc.</Abstract>
- </Parameter><Parameter>
- <Name>fileNames</Name>
- <Abstract type="html">Returns a list of the file names now in the app&apos;s iCloud documents directory</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/fileListChangedWithFiles:andFileNames:</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentWasDeleted</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document was successfully deleted. (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in deleteDocumentWithName:completion: instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentWasDeleted</Declaration>
-
-
- <Anchor>//api/name/documentWasDeleted</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentWasSaved</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document was successfully saved (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in saveDocumentWithName:withContent:completion: instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentWasSaved</Declaration>
-
-
- <Anchor>//api/name/documentWasSaved</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentsFinishedUploading</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document finished uploading (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in uploadLocalOfflineDocumentsWithDelegate:repeatingHandler:completion: instead.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentsFinishedUploading</Declaration>
-
-
- <Anchor>//api/name/documentsFinishedUploading</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentsStartedUploading</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document started uploading (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentsStartedUploading</Declaration>
-
-
- <Anchor>//api/name/documentsStartedUploading</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentsStartedDownloading</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document started downloading (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentsStartedDownloading</Declaration>
-
-
- <Anchor>//api/name/documentsStartedDownloading</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDelegate/documentsFinishedDownloading</TokenIdentifier>
- <Abstract type="html">DEPRECATED. Tells the delegate that a document finished downloading (&lt;b class=&quot;deprecated&quot;&gt;Deprecated:&lt;/b&gt;&lt;span class=&quot;deprecated&quot;&gt; Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.&lt;/span&gt;)</Abstract>
- <DeclaredIn>iCloud.h</DeclaredIn>
-
- <Declaration>- (void)documentsFinishedDownloading</Declaration>
-
-
- <Anchor>//api/name/documentsFinishedDownloading</Anchor>
- <NodeRef refid="3"/>
- </Token>
-
- </File>
-</Tokens>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens4.xml b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens4.xml
deleted file mode 100644
index 0f93baca..00000000
--- a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/Tokens4.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Tokens version="1.0">
- <File path="Protocols/iCloudDocumentDelegate.html">
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intf/iCloudDocumentDelegate</TokenIdentifier>
- <Abstract type="html">The iCloudDocumentDelegate protocol defines the methods used to receive error notifications and allow for deeper control of document handling and management.</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <NodeRef refid="4"/>
- </Token>
-
-
- <Token>
- <TokenIdentifier>//apple_ref/occ/intfm/iCloudDocumentDelegate/iCloudDocumentErrorOccured:</TokenIdentifier>
- <Abstract type="html">Delegate method fired when an error occurs during an attempt to read, save, or revert a document.</Abstract>
- <DeclaredIn>iCloudDocument.h</DeclaredIn>
-
- <Declaration>- (void)iCloudDocumentErrorOccured:(NSError *)error</Declaration>
- <Parameters>
- <Parameter>
- <Name>error</Name>
- <Abstract type="html">The error that occured during an attempt to read, save, or revert a document.</Abstract>
- </Parameter>
- </Parameters>
-
- <Anchor>//api/name/iCloudDocumentErrorOccured:</Anchor>
- <NodeRef refid="4"/>
- </Token>
-
- </File>
-</Tokens>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx
deleted file mode 100644
index bdc459ed..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-shm b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-shm
deleted file mode 100644
index 8ec0cae5..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-shm and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-wal b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-wal
deleted file mode 100644
index 0a831957..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.dsidx-wal and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.mom b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.mom
deleted file mode 100644
index ae975020..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.mom and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.skidx b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.skidx
deleted file mode 100644
index e7028761..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.skidx and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.toc b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.toc
deleted file mode 100644
index 9c3430ab..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.toc and /dev/null differ
diff --git a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.tokencache b/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.tokencache
deleted file mode 100644
index a7f2cfff..00000000
Binary files a/iCloudSync/Documentation/com.iRareMedia.iCloud-Framework.docset/Contents/Resources/docSet.tokencache and /dev/null differ
diff --git a/iCloudSync/Documentation/html/Classes/iCloud.html b/iCloudSync/Documentation/html/Classes/iCloud.html
deleted file mode 100644
index c7ebb232..00000000
--- a/iCloudSync/Documentation/html/Classes/iCloud.html
+++ /dev/null
@@ -1,2608 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloud Class Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Class Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
- <option value="properties">Properties</option>
-
- <option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
-
- <option value="//api/name/fileList">&nbsp;&nbsp;&nbsp;&nbsp;fileList</option>
-
- <option value="//api/name/previousQueryResults">&nbsp;&nbsp;&nbsp;&nbsp;previousQueryResults</option>
-
- <option value="//api/name/query">&nbsp;&nbsp;&nbsp;&nbsp;query</option>
-
- <option value="//api/name/verboseAvailabilityLogging">&nbsp;&nbsp;&nbsp;&nbsp;verboseAvailabilityLogging</option>
-
- <option value="//api/name/verboseLogging">&nbsp;&nbsp;&nbsp;&nbsp;verboseLogging</option>
-
-
-
-
- <option value="class_methods">Class Methods</option>
-
- <option value="//api/name/sharedCloud">&nbsp;&nbsp;&nbsp;&nbsp;+ sharedCloud</option>
-
- <option value="//api/name/updateFilesWithDelegate:">&nbsp;&nbsp;&nbsp;&nbsp;+ updateFilesWithDelegate:</option>
-
- <option value="//api/name/uploadLocalOfflineDocumentsWithDelegate:">&nbsp;&nbsp;&nbsp;&nbsp;+ uploadLocalOfflineDocumentsWithDelegate:</option>
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/checkCloudAvailability">&nbsp;&nbsp;&nbsp;&nbsp;- checkCloudAvailability</option>
-
- <option value="//api/name/checkCloudUbiquityContainer">&nbsp;&nbsp;&nbsp;&nbsp;- checkCloudUbiquityContainer</option>
-
- <option value="//api/name/deleteDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- deleteDocumentWithName:completion:</option>
-
- <option value="//api/name/documentStateForFile:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- documentStateForFile:completion:</option>
-
- <option value="//api/name/doesFileExistInCloud:">&nbsp;&nbsp;&nbsp;&nbsp;- doesFileExistInCloud:</option>
-
- <option value="//api/name/duplicateOriginalDocument:withNewName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- duplicateOriginalDocument:withNewName:completion:</option>
-
- <option value="//api/name/evictCloudDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- evictCloudDocumentWithName:completion:</option>
-
- <option value="//api/name/fileCreatedDate:">&nbsp;&nbsp;&nbsp;&nbsp;- fileCreatedDate:</option>
-
- <option value="//api/name/fileModifiedDate:">&nbsp;&nbsp;&nbsp;&nbsp;- fileModifiedDate:</option>
-
- <option value="//api/name/fileSize:">&nbsp;&nbsp;&nbsp;&nbsp;- fileSize:</option>
-
- <option value="//api/name/findUnresolvedConflictingVersionsOfFile:">&nbsp;&nbsp;&nbsp;&nbsp;- findUnresolvedConflictingVersionsOfFile:</option>
-
- <option value="//api/name/getListOfCloudFiles">&nbsp;&nbsp;&nbsp;&nbsp;- getListOfCloudFiles</option>
-
- <option value="//api/name/listCloudFiles">&nbsp;&nbsp;&nbsp;&nbsp;- listCloudFiles</option>
-
- <option value="//api/name/monitorDocumentStateForFile:onTarget:withSelector:">&nbsp;&nbsp;&nbsp;&nbsp;- monitorDocumentStateForFile:onTarget:withSelector:</option>
-
- <option value="//api/name/renameOriginalDocument:withNewName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- renameOriginalDocument:withNewName:completion:</option>
-
- <option value="//api/name/resolveConflictForFile:withSelectedFileVersion:">&nbsp;&nbsp;&nbsp;&nbsp;- resolveConflictForFile:withSelectedFileVersion:</option>
-
- <option value="//api/name/retrieveCloudDocumentObjectWithName:">&nbsp;&nbsp;&nbsp;&nbsp;- retrieveCloudDocumentObjectWithName:</option>
-
- <option value="//api/name/retrieveCloudDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- retrieveCloudDocumentWithName:completion:</option>
-
- <option value="//api/name/saveAndCloseDocumentWithName:withContent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- saveAndCloseDocumentWithName:withContent:completion:</option>
-
- <option value="//api/name/saveChangesToDocumentWithName:withContent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- saveChangesToDocumentWithName:withContent:completion:</option>
-
- <option value="//api/name/shareDocumentWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- shareDocumentWithName:completion:</option>
-
- <option value="//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">&nbsp;&nbsp;&nbsp;&nbsp;- stopMonitoringDocumentStateChangesForFile:onTarget:</option>
-
- <option value="//api/name/ubiquitousContainerURL">&nbsp;&nbsp;&nbsp;&nbsp;- ubiquitousContainerURL</option>
-
- <option value="//api/name/ubiquitousDocumentsDirectoryURL">&nbsp;&nbsp;&nbsp;&nbsp;- ubiquitousDocumentsDirectoryURL</option>
-
- <option value="//api/name/updateFiles">&nbsp;&nbsp;&nbsp;&nbsp;- updateFiles</option>
-
- <option value="//api/name/uploadLocalDocumentToCloudWithName:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- uploadLocalDocumentToCloudWithName:completion:</option>
-
- <option value="//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">&nbsp;&nbsp;&nbsp;&nbsp;- uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Singleton">Singleton</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Delegate">Delegate</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Checking for iCloud">Checking for iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Syncing with iCloud">Syncing with iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Uploading to iCloud">Uploading to iCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Sharing iCloud Content">Sharing iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deleting iCloud Content">Deleting iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving iCloud Content and Info">Retrieving iCloud Content and Info</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Managing iCloud Content">Managing iCloud Content</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_iCloud Document State">iCloud Document State</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Resolving iCloud Conflicts">Resolving iCloud Conflicts</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deprecated Methods">Deprecated Methods</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileList">fileList</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/previousQueryResults">previousQueryResults</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/query">query</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/verboseAvailabilityLogging">verboseAvailabilityLogging</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/verboseLogging">verboseLogging</a></span></li>
-
-</ul></li>
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sharedCloud">sharedCloud</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/updateFilesWithDelegate:">updateFilesWithDelegate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalOfflineDocumentsWithDelegate:">uploadLocalOfflineDocumentsWithDelegate:</a></span></li>
-
-</ul></li>
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/checkCloudAvailability">checkCloudAvailability</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/checkCloudUbiquityContainer">checkCloudUbiquityContainer</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteDocumentWithName:completion:">deleteDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentStateForFile:completion:">documentStateForFile:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/duplicateOriginalDocument:withNewName:completion:">duplicateOriginalDocument:withNewName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/evictCloudDocumentWithName:completion:">evictCloudDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileCreatedDate:">fileCreatedDate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileModifiedDate:">fileModifiedDate:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileSize:">fileSize:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/findUnresolvedConflictingVersionsOfFile:">findUnresolvedConflictingVersionsOfFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getListOfCloudFiles">getListOfCloudFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/listCloudFiles">listCloudFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/monitorDocumentStateForFile:onTarget:withSelector:">monitorDocumentStateForFile:onTarget:withSelector:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/renameOriginalDocument:withNewName:completion:">renameOriginalDocument:withNewName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resolveConflictForFile:withSelectedFileVersion:">resolveConflictForFile:withSelectedFileVersion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/retrieveCloudDocumentObjectWithName:">retrieveCloudDocumentObjectWithName:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/retrieveCloudDocumentWithName:completion:">retrieveCloudDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/saveChangesToDocumentWithName:withContent:completion:">saveChangesToDocumentWithName:withContent:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareDocumentWithName:completion:">shareDocumentWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">stopMonitoringDocumentStateChangesForFile:onTarget:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/ubiquitousContainerURL">ubiquitousContainerURL</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/ubiquitousDocumentsDirectoryURL">ubiquitousDocumentsDirectoryURL</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/updateFiles">updateFiles</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalDocumentToCloudWithName:completion:">uploadLocalDocumentToCloudWithName:completion:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloud Class Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Class Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Inherits from</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloud.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>iCloud Document Sync makes it easy for developers to integrate the iCloud document storage APIs into iOS applications. This is how iCloud document-storage and management should&rsquo;ve been out of the box from Apple. Integrate iCloud into iOS (OS X coming soon) Objective-C document projects with one-line code methods. Sync, upload, manage, and remove documents to and from iCloud with only a few lines of code (compared to the hundreds of lines and hours that it usually takes). Get iCloud up and running in your iOS app in only a few minutes. Updates and more details on this project can be found on <a href="http://www.github.com/iRareMedia/iCloudDocumentSync">GitHub</a>. If you like the project, please star it on GitHub!</p>
-
-<p>The <code>iCloud</code> class provides methods to integrate iCloud into document projects.</p>
-
-<p>Adding iCloud Document Sync to your project is easy. Follow these steps below to get everything up and running.</p>
-
-<ol>
-<li>Drag the iCloud Framework into your project</li>
-<li>Add <code>#import &lt;iCloud/iCloud.h&gt;</code> to your header file(s) iCloud Document Sync</li>
-<li>Subscribe to the <a href="../Protocols/iCloudDelegate.html"><code>iCloudDelegate</code></a> <a href="#//api/name/delegate">delegate</a>.</li>
-<li><p>Call the following methods to setup iCloud when your app starts:</p>
-
-<p> [[iCloud sharedCloud] setDelegate:self]; // Set this if you plan to use the delegate
- [[iCloud sharedCloud] setVerboseLogging:YES]; // We want detailed feedback about what&rsquo;s going on with iCloud, this is OFF by default
- [[iCloud sharedCloud] updateFiles]; // Force iCloud Update: This is done automatically when changes are made, but we want to make sure the view is always updated when presented</p></li>
-</ol>
-<div class="warning"><p><strong>Warning:</strong> Only available on iOS 6.0 and later on apps with valid code signing and entitlements. Requires Xcode 5.0.1 and later. Check the online documentation for more information on setting up iCloud in your app.</p></div>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
- <a title="Singleton" name="task_Singleton"></a>
- <h3 class="subsubtitle task-title">Singleton</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/sharedCloud">+&nbsp;sharedCloud</a></code>
- <span class="tooltip"><p>iCloud shared instance object</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Delegate" name="task_Delegate"></a>
- <h3 class="subsubtitle task-title">Delegate</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
- <span class="tooltip"><p>iCloud Delegate helps call methods when document processes begin or end</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li>
- </ul>
-
-
- <a title="Properties" name="task_Properties"></a>
- <h3 class="subsubtitle task-title">Properties</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/query">&nbsp;&nbsp;query</a></code>
- <span class="tooltip"><p>The current NSMetadataQuery object</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileList">&nbsp;&nbsp;fileList</a></code>
- <span class="tooltip"><p>A list of iCloud files from the current <a href="#//api/name/query">query</a></p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/previousQueryResults">&nbsp;&nbsp;previousQueryResults</a></code>
- <span class="tooltip"><p>A list of iCloud files from the previous <a href="#//api/name/query">query</a></p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/verboseLogging">&nbsp;&nbsp;verboseLogging</a></code>
- <span class="tooltip"><p>Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/verboseAvailabilityLogging">&nbsp;&nbsp;verboseAvailabilityLogging</a></code>
- <span class="tooltip"><p>Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the <a href="#//api/name/verboseLogging">verboseLogging</a> property.</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li>
- </ul>
-
-
- <a title="Checking for iCloud" name="task_Checking for iCloud"></a>
- <h3 class="subsubtitle task-title">Checking for iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/checkCloudAvailability">&ndash;&nbsp;checkCloudAvailability</a></code>
- <span class="tooltip"><p>Check whether or not iCloud is available and that it can be accessed. Returns a boolean value.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/checkCloudUbiquityContainer">&ndash;&nbsp;checkCloudUbiquityContainer</a></code>
- <span class="tooltip"><p>Check that the current application&rsquo;s iCloud Ubiquity Container is available. Returns a boolean value.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/ubiquitousContainerURL">&ndash;&nbsp;ubiquitousContainerURL</a></code>
- <span class="tooltip"><p>Retrieve the current application&rsquo;s ubiquitous root URL</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/ubiquitousDocumentsDirectoryURL">&ndash;&nbsp;ubiquitousDocumentsDirectoryURL</a></code>
- <span class="tooltip"><p>Retrieve the current application&rsquo;s ubiquitous documents directory URL</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Syncing with iCloud" name="task_Syncing with iCloud"></a>
- <h3 class="subsubtitle task-title">Syncing with iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/updateFiles">&ndash;&nbsp;updateFiles</a></code>
- <span class="tooltip"><p>Check for and update the list of files stored in your app&rsquo;s iCloud Documents Folder. This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange:withNewFileNames: <a href="#//api/name/delegate">delegate</a> method is triggered by this method.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Uploading to iCloud" name="task_Uploading to iCloud"></a>
- <h3 class="subsubtitle task-title">Uploading to iCloud</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">&ndash;&nbsp;saveAndCloseDocumentWithName:withContent:completion:</a></code>
- <span class="tooltip"><p>Create, save, and close a document in iCloud.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:">&ndash;&nbsp;uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</a></code>
- <span class="tooltip"><p>Upload any local files that weren&rsquo;t created with iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalDocumentToCloudWithName:completion:">&ndash;&nbsp;uploadLocalDocumentToCloudWithName:completion:</a></code>
- <span class="tooltip"><p>Upload a local file to iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Sharing iCloud Content" name="task_Sharing iCloud Content"></a>
- <h3 class="subsubtitle task-title">Sharing iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/shareDocumentWithName:completion:">&ndash;&nbsp;shareDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Share an iCloud document by uploading it to a public URL.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deleting iCloud Content" name="task_Deleting iCloud Content"></a>
- <h3 class="subsubtitle task-title">Deleting iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/deleteDocumentWithName:completion:">&ndash;&nbsp;deleteDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Delete a document from iCloud.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/evictCloudDocumentWithName:completion:">&ndash;&nbsp;evictCloudDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Evict a document from iCloud, move it from iCloud to the current application&rsquo;s local documents directory.</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Retrieving iCloud Content and Info" name="task_Retrieving iCloud Content and Info"></a>
- <h3 class="subsubtitle task-title">Retrieving iCloud Content and Info</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/retrieveCloudDocumentWithName:completion:">&ndash;&nbsp;retrieveCloudDocumentWithName:completion:</a></code>
- <span class="tooltip"><p>Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the <a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a> method to check if a file exists before calling this method.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/retrieveCloudDocumentObjectWithName:">&ndash;&nbsp;retrieveCloudDocumentObjectWithName:</a></code>
- <span class="tooltip"><p>Get the relevant <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object for the specified file</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/doesFileExistInCloud:">&ndash;&nbsp;doesFileExistInCloud:</a></code>
- <span class="tooltip"><p>Check if a file exists in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileSize:">&ndash;&nbsp;fileSize:</a></code>
- <span class="tooltip"><p>Get the size of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileModifiedDate:">&ndash;&nbsp;fileModifiedDate:</a></code>
- <span class="tooltip"><p>Get the last modified date of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileCreatedDate:">&ndash;&nbsp;fileCreatedDate:</a></code>
- <span class="tooltip"><p>Get the creation date of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/listCloudFiles">&ndash;&nbsp;listCloudFiles</a></code>
- <span class="tooltip"><p>Get a list of files stored in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Managing iCloud Content" name="task_Managing iCloud Content"></a>
- <h3 class="subsubtitle task-title">Managing iCloud Content</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/renameOriginalDocument:withNewName:completion:">&ndash;&nbsp;renameOriginalDocument:withNewName:completion:</a></code>
- <span class="tooltip"><p>Rename a document in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/duplicateOriginalDocument:withNewName:completion:">&ndash;&nbsp;duplicateOriginalDocument:withNewName:completion:</a></code>
- <span class="tooltip"><p>Duplicate a document in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="iCloud Document State" name="task_iCloud Document State"></a>
- <h3 class="subsubtitle task-title">iCloud Document State</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/documentStateForFile:completion:">&ndash;&nbsp;documentStateForFile:completion:</a></code>
- <span class="tooltip"><p>Get the current document state of a file stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/monitorDocumentStateForFile:onTarget:withSelector:">&ndash;&nbsp;monitorDocumentStateForFile:onTarget:withSelector:</a></code>
- <span class="tooltip"><p>Monitor changes in the state of a document stored in iCloud</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:">&ndash;&nbsp;stopMonitoringDocumentStateChangesForFile:onTarget:</a></code>
- <span class="tooltip"><p>Stop monitoring changes to the state of a document stored in iCloud</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Resolving iCloud Conflicts" name="task_Resolving iCloud Conflicts"></a>
- <h3 class="subsubtitle task-title">Resolving iCloud Conflicts</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/findUnresolvedConflictingVersionsOfFile:">&ndash;&nbsp;findUnresolvedConflictingVersionsOfFile:</a></code>
- <span class="tooltip"><p>Find all the conflicting versions of a specified document</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/resolveConflictForFile:withSelectedFileVersion:">&ndash;&nbsp;resolveConflictForFile:withSelectedFileVersion:</a></code>
- <span class="tooltip"><p>Your application can follow one of three strategies for resolving document-version conflicts:</p>
-
-<ul>
-<li>Merge the changes from the conflicting versions.</li>
-<li>Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.</li>
-<li>Enable the user to view conflicting versions of a document and select the one to use.</li>
-</ul>
-</span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deprecated Methods" name="task_Deprecated Methods"></a>
- <h3 class="subsubtitle task-title">Deprecated Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/getListOfCloudFiles">&ndash;&nbsp;getListOfCloudFiles</a></code>
- <span class="tooltip"><p>DEPRECATED. Use <a href="#//api/name/listCloudFiles">listCloudFiles</a> instead. Get a list of files stored in iCloud (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.3. Use listCloudFiles instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/saveChangesToDocumentWithName:withContent:completion:">&ndash;&nbsp;saveChangesToDocumentWithName:withContent:completion:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use <a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a> instead. Record changes made to a document in iCloud. Changes are saved when the document is closed. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated beginning in version 7.1. Use saveAndCloseDocumentWithName:withContent:completion: instead. This method may become unavailable in a future version.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/uploadLocalOfflineDocumentsWithDelegate:">+&nbsp;uploadLocalOfflineDocumentsWithDelegate:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use uploadLocalOfflineDocuments instead, like so: [[iCloud sharedCloud] uploadLocalOfflineDocuments]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use uploadLocalOfflineDocuments instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/updateFilesWithDelegate:">+&nbsp;updateFilesWithDelegate:</a></code>
- <span class="tooltip"><p>DEPRECATED. Use updateFiles instead, like so: [[iCloud sharedCloud] updateFiles]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use updateFiles instead.</span>)</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Properties" name="properties"></a>
- <h2 class="subtitle subtitle-methods">Properties</h2>
-
- <div class="section-method">
- <a name="//api/name/delegate" title="delegate"></a>
- <h3 class="subsubtitle method-title">delegate</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>iCloud Delegate helps call methods when document processes begin or end</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (weak, nonatomic) id&lt;iCloudDelegate&gt; delegate</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileList" title="fileList"></a>
- <h3 class="subsubtitle method-title">fileList</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>A list of iCloud files from the current <a href="#//api/name/query">query</a></p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMutableArray *fileList</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/previousQueryResults" title="previousQueryResults"></a>
- <h3 class="subsubtitle method-title">previousQueryResults</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>A list of iCloud files from the previous <a href="#//api/name/query">query</a></p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMutableArray *previousQueryResults</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/query" title="query"></a>
- <h3 class="subsubtitle method-title">query</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>The current NSMetadataQuery object</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (strong) NSMetadataQuery *query</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/verboseAvailabilityLogging" title="verboseAvailabilityLogging"></a>
- <h3 class="subsubtitle method-title">verboseAvailabilityLogging</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the <a href="#//api/name/verboseLogging">verboseLogging</a> property.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property BOOL verboseAvailabilityLogging</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/verboseLogging" title="verboseLogging"></a>
- <h3 class="subsubtitle method-title">verboseLogging</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property BOOL verboseLogging</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
- <div class="section section-methods">
- <a title="Class Methods" name="class_methods"></a>
- <h2 class="subtitle subtitle-methods">Class Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/sharedCloud" title="sharedCloud"></a>
- <h3 class="subsubtitle method-title">sharedCloud</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>iCloud shared instance object</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (instancetype)sharedCloud</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The shared instance of iCloud</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/updateFilesWithDelegate:" title="updateFilesWithDelegate:"></a>
- <h3 class="subsubtitle method-title">updateFilesWithDelegate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use updateFiles instead, like so: [[iCloud sharedCloud] updateFiles]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use updateFiles instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (void)updateFilesWithDelegate:(id&lt;iCloudDelegate&gt;)<em>delegate</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>delegate</em></dt>
- <dd><p>The <a href="../Protocols/iCloudDelegate.html">iCloudDelegate</a> object to be used for <a href="#//api/name/delegate">delegate</a> notifications</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalOfflineDocumentsWithDelegate:" title="uploadLocalOfflineDocumentsWithDelegate:"></a>
- <h3 class="subsubtitle method-title">uploadLocalOfflineDocumentsWithDelegate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use uploadLocalOfflineDocuments instead, like so: [[iCloud sharedCloud] uploadLocalOfflineDocuments]; (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use uploadLocalOfflineDocuments instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>+ (void)uploadLocalOfflineDocumentsWithDelegate:(id&lt;iCloudDelegate&gt;)<em>delegate</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>delegate</em></dt>
- <dd><p>The <a href="../Protocols/iCloudDelegate.html">iCloudDelegate</a> object to be used for <a href="#//api/name/delegate">delegate</a> notifications</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/checkCloudAvailability" title="checkCloudAvailability"></a>
- <h3 class="subsubtitle method-title">checkCloudAvailability</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check whether or not iCloud is available and that it can be accessed. Returns a boolean value.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)checkCloudAvailability</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if iCloud is available. NO if iCloud is not available.</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>You should always check if iCloud is available before performing any iCloud operations (every method checks to make sure iCloud is available before continuing). Additionally, you may want to check if your users want to opt-in to iCloud on a per-app basis (according to Apple&rsquo;s documentation, you should only ask the user once to opt-in to iCloud). The Return value could be <strong>NO</strong> (iCloud Unavailable) for one or more of the following reasons:</p>
-
-<ul>
-<li> iCloud is turned off by the user</li>
-<li> The entitlements profile, code signing identity, and/or provisioning profile is invalid</li>
-</ul>
-
-
-<p>This method uses the ubiquityIdentityToken to check if iCloud is available. The <a href="#//api/name/delegate">delegate</a> method iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer: can be used to automatically detect changes in the availability of iCloud. A ubiquity token is passed in that method which lets you know if the iCloud account has changed.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/checkCloudUbiquityContainer" title="checkCloudUbiquityContainer"></a>
- <h3 class="subsubtitle method-title">checkCloudUbiquityContainer</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check that the current application&rsquo;s iCloud Ubiquity Container is available. Returns a boolean value.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)checkCloudUbiquityContainer</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the iCloud ubiquity container is available. NO if the ubiquity container is not available.</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method may not return immediately, depending on a number of factors. It is not necessary to call this method directly, although it may become useful in certain situations.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/deleteDocumentWithName:completion:" title="deleteDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">deleteDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Delete a document from iCloud.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)deleteDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document to delete from iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when a file is successfully deleted from iCloud. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Permanently delete a document stored in iCloud. This will only affect copies of the specified file stored in iCloud, if there is a copy stored locally it will not be affected.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentStateForFile:completion:" title="documentStateForFile:completion:"></a>
- <h3 class="subsubtitle method-title">documentStateForFile:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the current document state of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentStateForFile:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( UIDocumentState *documentState , NSString *userReadableDocumentState , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Completion handler that passes three parameters, an NSError, NSString and a UIDocumentState. The documentState parameter represents the document state that the specified file is currently in (may be nil if the file does not exist). The userReadableDocumentState parameter is an NSString which succinctly describes the current document state; if the file does not exist, a non-scary error will be displayed. The NSError parameter will contain a 404 error if the file does not exist.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/doesFileExistInCloud:" title="doesFileExistInCloud:"></a>
- <h3 class="subsubtitle method-title">doesFileExistInCloud:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check if a file exists in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)doesFileExistInCloud:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the UIDocument in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>BOOL value, YES if the file does exist in iCloud, NO if it does not. May return NO if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/duplicateOriginalDocument:withNewName:completion:" title="duplicateOriginalDocument:withNewName:completion:"></a>
- <h3 class="subsubtitle method-title">duplicateOriginalDocument:withNewName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Duplicate a document in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)duplicateOriginalDocument:(NSString *)<em>documentName</em> withNewName:(NSString *)<em>newName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being duplicated in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>newName</em></dt>
- <dd><p>The new name which the document should be duplicated to (usually the same name with the word &ldquo;copy&rdquo; appended to the end). The file specified should not exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document duplication has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/evictCloudDocumentWithName:completion:" title="evictCloudDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">evictCloudDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Evict a document from iCloud, move it from iCloud to the current application&rsquo;s local documents directory.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)evictCloudDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the iCloud document being downloaded from iCloud to the local documents directory. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called after the file has been uploaded to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Remove a document from iCloud storage and move it into the local document&rsquo;s directory. This method may call the iCloudFileConflictBetweenCloudFile:andLocalFile: iCloud Delegate method if there is a file conflict.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileCreatedDate:" title="fileCreatedDate:"></a>
- <h3 class="subsubtitle method-title">fileCreatedDate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the creation date of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSDate *)fileCreatedDate:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The date that the file was created. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileModifiedDate:" title="fileModifiedDate:"></a>
- <h3 class="subsubtitle method-title">fileModifiedDate:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the last modified date of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSDate *)fileModifiedDate:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The date that the file was last modified. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileSize:" title="fileSize:"></a>
- <h3 class="subsubtitle method-title">fileSize:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the size of a file stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSNumber *)fileSize:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The number of bytes in an unsigned long long. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/findUnresolvedConflictingVersionsOfFile:" title="findUnresolvedConflictingVersionsOfFile:"></a>
- <h3 class="subsubtitle method-title">findUnresolvedConflictingVersionsOfFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Find all the conflicting versions of a specified document</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)findUnresolvedConflictingVersionsOfFile:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An array of NSFileVersion objects, or nil if no such version object exists.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/getListOfCloudFiles" title="getListOfCloudFiles"></a>
- <h3 class="subsubtitle method-title">getListOfCloudFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use <a href="#//api/name/listCloudFiles">listCloudFiles</a> instead. Get a list of files stored in iCloud (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.3. Use listCloudFiles instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)getListOfCloudFiles</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>NSArray with a list of all the files currently stored in your app&rsquo;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/listCloudFiles" title="listCloudFiles"></a>
- <h3 class="subsubtitle method-title">listCloudFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get a list of files stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSArray *)listCloudFiles</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>NSArray with a list of all the files currently stored in your app&rsquo;s iCloud Documents directory. May return a nil value if iCloud is unavailable.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/monitorDocumentStateForFile:onTarget:withSelector:" title="monitorDocumentStateForFile:onTarget:withSelector:"></a>
- <h3 class="subsubtitle method-title">monitorDocumentStateForFile:onTarget:withSelector:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Monitor changes in the state of a document stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)monitorDocumentStateForFile:(NSString *)<em>documentName</em> onTarget:(id)<em>sender</em> withSelector:(SEL)<em>selector</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>sender</em></dt>
- <dd><p>Object registering as an observer. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>selector</em></dt>
- <dd><p>Selector to be called when the document state changes. Must only have one argument, an instance of NSNotifcation whose object is an <a href="../Classes/iCloudDocument.html">iCloudDocument</a> (UIDocument subclass). This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/renameOriginalDocument:withNewName:completion:" title="renameOriginalDocument:withNewName:completion:"></a>
- <h3 class="subsubtitle method-title">renameOriginalDocument:withNewName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Rename a document in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)renameOriginalDocument:(NSString *)<em>documentName</em> withNewName:(NSString *)<em>newName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being renamed in iCloud. The file specified should exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>newName</em></dt>
- <dd><p>The new name which the document should be renamed with. The file specified should not exist, otherwise an error will occur. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document renaming has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/resolveConflictForFile:withSelectedFileVersion:" title="resolveConflictForFile:withSelectedFileVersion:"></a>
- <h3 class="subsubtitle method-title">resolveConflictForFile:withSelectedFileVersion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Your application can follow one of three strategies for resolving document-version conflicts:</p>
-
-<ul>
-<li>Merge the changes from the conflicting versions.</li>
-<li>Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.</li>
-<li>Enable the user to view conflicting versions of a document and select the one to use.</li>
-</ul>
-
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)resolveConflictForFile:(NSString *)<em>documentName</em> withSelectedFileVersion:(NSFileVersion *)<em>documentVersion</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentVersion</em></dt>
- <dd><p>The version of the document which should be kept and saved. All other conflicting versions will be removed.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/retrieveCloudDocumentObjectWithName:" title="retrieveCloudDocumentObjectWithName:"></a>
- <h3 class="subsubtitle method-title">retrieveCloudDocumentObjectWithName:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Get the relevant <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object for the specified file</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (iCloudDocument *)retrieveCloudDocumentObjectWithName:(NSString *)<em>documentName</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the UIDocument stored in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An <a href="../Classes/iCloudDocument.html">iCloudDocument</a> (UIDocument subclass) object. May return nil if iCloud is unavailable or if an error occurred</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method serves a very different purpose from the <a href="#//api/name/retrieveCloudDocumentWithName:completion:">retrieveCloudDocumentWithName:completion:</a> method. Understand the differences between both methods and ensure that you are using the correct one. This method does not open, create, or save any UIDocuments - it simply returns the <a href="../Classes/iCloudDocument.html">iCloudDocument</a> object which you can then use for various purposes.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/retrieveCloudDocumentWithName:completion:" title="retrieveCloudDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">retrieveCloudDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the <a href="#//api/name/doesFileExistInCloud:">doesFileExistInCloud:</a> method to check if a file exists before calling this method.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)retrieveCloudDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully retrieved (opened or downloaded). The completion block passes UIDocument and NSData objects containing the opened document and it&rsquo;s contents in the form of NSData. If there is an error, the NSError object will have an error message (may be nil if there is no error). This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This method will attempt to open the specified document. If the file does not exist, a blank one will be created. The completion handler is called when the file is opened or created (either successfully or not). The completion handler contains a UIDocument, NSData, and NSError all of which contain information about the opened document.</p>
-
-<pre><code>[[iCloud sharedCloud] retrieveCloudDocumentWithName:@"docName.ext" completion:^(UIDocument *cloudDocument, NSData *documentData, NSError *error) {
- if (error == nil) {
- NSString *documentName = [cloudDocument.fileURL lastPathComponent];
- NSData *fileData = documentData;
- }
- }];
-</code></pre>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/saveAndCloseDocumentWithName:withContent:completion:" title="saveAndCloseDocumentWithName:withContent:completion:"></a>
- <h3 class="subsubtitle method-title">saveAndCloseDocumentWithName:withContent:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Create, save, and close a document in iCloud.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)saveAndCloseDocumentWithName:(NSString *)<em>documentName</em> withContent:(NSData *)<em>content</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being written to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>content</em></dt>
- <dd><p>The data to write to the document</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully saved. The completion block passes UIDocument and NSData objects containing the saved document and it&rsquo;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>First, iCloud Document Sync checks if the specified document exists. If the document exists it is saved and closed. If the document does not exist, it is created then closed.</p>
-
-<p>iCloud Document Sync uses UIDocument and NSData to store and manage files. All of the heavy lifting with NSData and UIDocument is handled for you. There&rsquo;s no need to actually create or manage any files, just give iCloud Document Sync your data, and the rest is done for you.</p>
-
-<p>To create a new document or save an existing one (close the document), use this method. Below is a code example of how to use it.</p>
-
-<pre><code>[[iCloud sharedCloud] saveAndCloseDocumentWithName:@"Name.ext" withContent:[NSData data] completion:^(UIDocument *cloudDocument, NSData *documentData, NSError *error) {
- if (error == nil) {
- // Code here to use the UIDocument or NSData objects which have been passed with the completion handler
- }
-}];
-</code></pre>
-
-<p>Documents can be created even if the user is not connected to the internet. The only case in which a document will not be created is when the user has disabled iCloud or if the current application is not setup for iCloud.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/saveChangesToDocumentWithName:withContent:completion:" title="saveChangesToDocumentWithName:withContent:completion:"></a>
- <h3 class="subsubtitle method-title">saveChangesToDocumentWithName:withContent:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Use <a href="#//api/name/saveAndCloseDocumentWithName:withContent:completion:">saveAndCloseDocumentWithName:withContent:completion:</a> instead. Record changes made to a document in iCloud. Changes are saved when the document is closed. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated beginning in version 7.1. Use saveAndCloseDocumentWithName:withContent:completion: instead. This method may become unavailable in a future version.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)saveChangesToDocumentWithName:(NSString *)<em>documentName</em> withContent:(NSData *)<em>content</em> completion:(void ( ^ ) ( UIDocument *cloudDocument , NSData *documentData , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the document being written to iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>content</em></dt>
- <dd><p>The data to write to the document</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document changes are recorded. The completion block passes UIDocument and NSData objects containing the saved document and it&rsquo;s contents in the form of NSData. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/shareDocumentWithName:completion:" title="shareDocumentWithName:completion:"></a>
- <h3 class="subsubtitle method-title">shareDocumentWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Share an iCloud document by uploading it to a public URL.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)shareDocumentWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSURL *sharedURL , NSDate *expirationDate , NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the iCloud file being uploaded to a public URL. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called when the document is successfully uploaded. The completion block passes NSURL, NSDate, and NSError objects. The NSURL object is the public URL where the file is available at, could be nil. The NSDate object is the date that the URL expires on, could be nil. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>The public URL where the file is available</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Upload a document stored in iCloud to a public location on the internet for a limited amount of time.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/stopMonitoringDocumentStateChangesForFile:onTarget:" title="stopMonitoringDocumentStateChangesForFile:onTarget:"></a>
- <h3 class="subsubtitle method-title">stopMonitoringDocumentStateChangesForFile:onTarget:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Stop monitoring changes to the state of a document stored in iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (BOOL)stopMonitoringDocumentStateChangesForFile:(NSString *)<em>documentName</em> onTarget:(id)<em>sender</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the file in iCloud. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>sender</em></dt>
- <dd><p>Object registered as an observer that will no longer receive document state updates. This value must not be nil.</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>YES if the monitoring was successfully setup, NO if there was an issue setting up the monitoring.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/ubiquitousContainerURL" title="ubiquitousContainerURL"></a>
- <h3 class="subsubtitle method-title">ubiquitousContainerURL</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the current application&rsquo;s ubiquitous root URL</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)ubiquitousContainerURL</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSURL with the root iCloud Ubiquitous URL for the current app. May return nil if iCloud is not properly setup or available.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/ubiquitousDocumentsDirectoryURL" title="ubiquitousDocumentsDirectoryURL"></a>
- <h3 class="subsubtitle method-title">ubiquitousDocumentsDirectoryURL</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the current application&rsquo;s ubiquitous documents directory URL</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSURL *)ubiquitousDocumentsDirectoryURL</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSURL with the iCloud ubiquitous documents directory URL for the current app. May return nil if iCloud is not properly setup or available.</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/updateFiles" title="updateFiles"></a>
- <h3 class="subsubtitle method-title">updateFiles</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Check for and update the list of files stored in your app&rsquo;s iCloud Documents Folder. This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange:withNewFileNames: <a href="#//api/name/delegate">delegate</a> method is triggered by this method.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)updateFiles</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalDocumentToCloudWithName:completion:" title="uploadLocalDocumentToCloudWithName:completion:"></a>
- <h3 class="subsubtitle method-title">uploadLocalDocumentToCloudWithName:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Upload a local file to iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)uploadLocalDocumentToCloudWithName:(NSString *)<em>documentName</em> completion:(void ( ^ ) ( NSError *error ))<em>handler</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>documentName</em></dt>
- <dd><p>The name of the local file stored in the application&rsquo;s documents directory. This value must not be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>handler</em></dt>
- <dd><p>Code block called after the file has been uploaded to iCloud</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/uploadLocalOfflineDocumentsWithRepeatingHandler:completion:" title="uploadLocalOfflineDocumentsWithRepeatingHandler:completion:"></a>
- <h3 class="subsubtitle method-title">uploadLocalOfflineDocumentsWithRepeatingHandler:completion:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Upload any local files that weren&rsquo;t created with iCloud</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)uploadLocalOfflineDocumentsWithRepeatingHandler:(void ( ^ ) ( NSString *documentName , NSError *error ))<em>repeatingHandler</em> completion:(void ( ^ ) ( void ))<em>completion</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>repeatingHandler</em></dt>
- <dd><p>Code block called after each file is uploaded to iCloud. This block is called every-time a local file is uploaded, therefore it may be called multiple times. The NSError object contains any error information if an error occurred, otherwise it will be nil.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>completion</em></dt>
- <dd><p>Code block called after all files have been uploaded to iCloud. This block is only called once at the end of the method, regardless of any successes or failures that may have occurred during the upload(s).</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>Files in the local documents directory that do not already exist in iCloud will be <strong>moved</strong> into iCloud one by one. This process involves lots of file manipulation and as a result it may take a long time. This process will be performed on the background thread to avoid any lag or memory problems. When the upload processes end, the completion block is called on the main thread.</p>
-
-<pre><code>[[iCloud sharedCloud] uploadLocalOfflineDocumentsWithRepeatingHandler:^(NSString *documentName, NSError *error) {
- if (error == nil) {
- // This code block is called repeatedly until all files have been uploaded (or an upload has at least been attempted).
- // Code here to use the NSString (the name of the uploaded file) which have been passed with the repeating handler
- }
- } completion:^{
- // Completion handler could be used to tell the user that the upload has completed
- }];
-</code></pre>
-
-<p>This method may call the iCloudFileConflictBetweenCloudFile:andLocalFile: iCloud Delegate method if there is a file conflict.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/Classes/iCloudDocument.html b/iCloudSync/Documentation/html/Classes/iCloudDocument.html
deleted file mode 100644
index 0e295e58..00000000
--- a/iCloudSync/Documentation/html/Classes/iCloudDocument.html
+++ /dev/null
@@ -1,555 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDocument Class Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDocument Class Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
- <option value="properties">Properties</option>
-
- <option value="//api/name/contents">&nbsp;&nbsp;&nbsp;&nbsp;contents</option>
-
- <option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/initWithFileURL:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithFileURL:</option>
-
- <option value="//api/name/localizedName">&nbsp;&nbsp;&nbsp;&nbsp;- localizedName</option>
-
- <option value="//api/name/stateDescription">&nbsp;&nbsp;&nbsp;&nbsp;- stateDescription</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Methods">Methods</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Delegate">Delegate</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/contents">contents</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
-
-</ul></li>
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithFileURL:">initWithFileURL:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/localizedName">localizedName</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/stateDescription">stateDescription</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDocument Class Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDocument Class Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Inherits from</td>
- <td class="specification-value">UIDocument</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloudDocument.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>Use the iCloudDocument class (a subclass of UIDocument) to read and write documents managed by the <a href="../Classes/iCloud.html">iCloud</a> class. You should rarely interact directly with iCloudDocument. The <a href="../Classes/iCloud.html">iCloud</a> class manages all interactions with iCloudDocument. You can however retieve an iCloudDocument object by specifying its URL in the <a href="../Classes/iCloud.html">iCloud</a> class.</p>
-
-<p>iCloudDocument can read and write any files with the following exceptions:</p>
-
-<ul>
-<li>Bundles</li>
-<li>Packages</li>
-<li>Aliases</li>
-</ul>
-
-
-<p>If you&rsquo;d like support for the above faux files then please consider <a href="https://github.com/iRareMedia/iCloudDocumentSync/issues/new">filing an Issue on GitHub</a> or <a href="https://github.com/iRareMedia/iCloudDocumentSync/pulls">submitting a Pull Request</a> if you&rsquo;ve figured out how. This can be done using an NSFileWrapper.</p>
-
-<p>You may want to consider subclassing iCloudDocument for custom implementations of many features.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
- <a title="Methods" name="task_Methods"></a>
- <h3 class="subsubtitle task-title">Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/initWithFileURL:">&ndash;&nbsp;initWithFileURL:</a></code>
- <span class="tooltip"><p>Initialize a new UIDocument with the specified file path</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Delegate" name="task_Delegate"></a>
- <h3 class="subsubtitle task-title">Delegate</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
- <span class="tooltip"><p><a href="../Classes/iCloud.html">iCloud</a> Delegate helps call methods when document processes begin or end</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/contents">&nbsp;&nbsp;contents</a></code>
- <span class="tooltip"><p>The data to read or write to a UIDocument</p></span>
- </span>
- <span class="task-item-suffix">property</span>
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/localizedName">&ndash;&nbsp;localizedName</a></code>
- <span class="tooltip"><p>Retrieve the localized name of the current document</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/stateDescription">&ndash;&nbsp;stateDescription</a></code>
- <span class="tooltip"><p>Retrieve a user-readable form of the document state</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Properties" name="properties"></a>
- <h2 class="subtitle subtitle-methods">Properties</h2>
-
- <div class="section-method">
- <a name="//api/name/contents" title="contents"></a>
- <h3 class="subsubtitle method-title">contents</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>The data to read or write to a UIDocument</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (copy) NSData *contents</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/delegate" title="delegate"></a>
- <h3 class="subsubtitle method-title">delegate</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p><a href="../Classes/iCloud.html">iCloud</a> Delegate helps call methods when document processes begin or end</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>@property (weak, nonatomic) id&lt;iCloudDocumentDelegate&gt; delegate</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/initWithFileURL:" title="initWithFileURL:"></a>
- <h3 class="subsubtitle method-title">initWithFileURL:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Initialize a new UIDocument with the specified file path</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (instancetype)initWithFileURL:(NSURL *)<em>url</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>url</em></dt>
- <dd><p>The path to the UIDocument file</p></dd>
- </dl>
-
- </div>
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>UIDocument object at the specified URL</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/localizedName" title="localizedName"></a>
- <h3 class="subsubtitle method-title">localizedName</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve the localized name of the current document</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)localizedName</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>Name of document including file extension, as an NSString</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/stateDescription" title="stateDescription"></a>
- <h3 class="subsubtitle method-title">stateDescription</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Retrieve a user-readable form of the document state</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)stateDescription</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>Current state of the document as a user-readable NSString</p>
- </div>
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/Protocols/iCloudDelegate.html b/iCloudSync/Documentation/html/Protocols/iCloudDelegate.html
deleted file mode 100644
index 35d8c787..00000000
--- a/iCloudSync/Documentation/html/Protocols/iCloudDelegate.html
+++ /dev/null
@@ -1,1210 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDelegate Protocol Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDelegate Protocol Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/cloudError:">&nbsp;&nbsp;&nbsp;&nbsp;- cloudError:</option>
-
- <option value="//api/name/documentWasDeleted">&nbsp;&nbsp;&nbsp;&nbsp;- documentWasDeleted</option>
-
- <option value="//api/name/documentWasSaved">&nbsp;&nbsp;&nbsp;&nbsp;- documentWasSaved</option>
-
- <option value="//api/name/documentsFinishedDownloading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsFinishedDownloading</option>
-
- <option value="//api/name/documentsFinishedUploading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsFinishedUploading</option>
-
- <option value="//api/name/documentsStartedDownloading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsStartedDownloading</option>
-
- <option value="//api/name/documentsStartedUploading">&nbsp;&nbsp;&nbsp;&nbsp;- documentsStartedUploading</option>
-
- <option value="//api/name/fileListChangedWithFiles:andFileNames:">&nbsp;&nbsp;&nbsp;&nbsp;- fileListChangedWithFiles:andFileNames:</option>
-
- <option value="//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</option>
-
- <option value="//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</option>
-
- <option value="//api/name/iCloudError:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudError:</option>
-
- <option value="//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileConflictBetweenCloudFile:andLocalFile:</option>
-
- <option value="//api/name/iCloudFileUpdateDidBegin">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUpdateDidBegin</option>
-
- <option value="//api/name/iCloudFileUpdateDidEnd">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUpdateDidEnd</option>
-
- <option value="//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFileUploadConflictWithCloudFile:andLocalFile:</option>
-
- <option value="//api/name/iCloudFilesDidChange:withNewFileNames:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudFilesDidChange:withNewFileNames:</option>
-
- <option value="//api/name/iCloudQueryLimitedToFileExtension">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudQueryLimitedToFileExtension</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Deprecated Delegate Methods">Deprecated Delegate Methods</a></span></li>
-
-</ul></li>
-
-
-
-
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/cloudError:">cloudError:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentWasDeleted">documentWasDeleted</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentWasSaved">documentWasSaved</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsFinishedDownloading">documentsFinishedDownloading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsFinishedUploading">documentsFinishedUploading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsStartedDownloading">documentsStartedDownloading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/documentsStartedUploading">documentsStartedUploading</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fileListChangedWithFiles:andFileNames:">fileListChangedWithFiles:andFileNames:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudError:">iCloudError:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">iCloudFileConflictBetweenCloudFile:andLocalFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUpdateDidBegin">iCloudFileUpdateDidBegin</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUpdateDidEnd">iCloudFileUpdateDidEnd</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">iCloudFileUploadConflictWithCloudFile:andLocalFile:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudFilesDidChange:withNewFileNames:">iCloudFilesDidChange:withNewFileNames:</a></span></li>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudQueryLimitedToFileExtension">iCloudQueryLimitedToFileExtension</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDelegate Protocol Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDelegate Protocol Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Conforms to</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloud.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>The iCloudDelegate protocol defines the methods used to receive event notifications and allow for deeper control of the <a href="../Classes/iCloud.html">iCloud</a> Class.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
-
- <h3 class="subsubtitle task-title">Other Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:">&ndash;&nbsp;iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</a></code>
- <span class="tooltip"><p>Called when the availability of <a href="../Classes/iCloud.html">iCloud</a> changes</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:">&ndash;&nbsp;iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</a></code>
- <span class="tooltip"><p>Called when the <a href="../Classes/iCloud.html">iCloud</a> initiaization process is finished and the <a href="../Classes/iCloud.html">iCloud</a> is available</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudQueryLimitedToFileExtension">&ndash;&nbsp;iCloudQueryLimitedToFileExtension</a></code>
- <span class="tooltip"><p>Called before creating an <a href="../Classes/iCloud.html">iCloud</a> Query filter. Specify the type of file to be queried.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUpdateDidBegin">&ndash;&nbsp;iCloudFileUpdateDidBegin</a></code>
- <span class="tooltip"><p>Called before an <a href="../Classes/iCloud.html">iCloud</a> Query begins.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUpdateDidEnd">&ndash;&nbsp;iCloudFileUpdateDidEnd</a></code>
- <span class="tooltip"><p>Called when an <a href="../Classes/iCloud.html">iCloud</a> Query ends.</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFilesDidChange:withNewFileNames:">&ndash;&nbsp;iCloudFilesDidChange:withNewFileNames:</a></code>
- <span class="tooltip"><p>Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:">&ndash;&nbsp;iCloudFileConflictBetweenCloudFile:andLocalFile:</a></code>
- <span class="tooltip"><p>Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload or download</p></span>
- </span>
-
-
-</li>
- </ul>
-
-
- <a title="Deprecated Delegate Methods" name="task_Deprecated Delegate Methods"></a>
- <h3 class="subsubtitle task-title">Deprecated Delegate Methods</h3>
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:">&ndash;&nbsp;iCloudFileUploadConflictWithCloudFile:andLocalFile:</a></code>
- <span class="tooltip"><p>DEPRECATED. Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use iCloudFileConflictBetweenCloudFile:andLocalFile: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudError:">&ndash;&nbsp;iCloudError:</a></code>
- <span class="tooltip"><p>DEPRECATED. Called when there is an error while performing an <a href="../Classes/iCloud.html">iCloud</a> process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.1. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/cloudError:">&ndash;&nbsp;cloudError:</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that there was an error while performing a process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/fileListChangedWithFiles:andFileNames:">&ndash;&nbsp;fileListChangedWithFiles:andFileNames:</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use iCloudFilesDidChange:withNewFileNames: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentWasDeleted">&ndash;&nbsp;documentWasDeleted</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document was successfully deleted. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in deleteDocumentWithName:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentWasSaved">&ndash;&nbsp;documentWasSaved</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document was successfully saved (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in saveDocumentWithName:withContent:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsFinishedUploading">&ndash;&nbsp;documentsFinishedUploading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document finished uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in uploadLocalOfflineDocumentsWithDelegate:repeatingHandler:completion: instead.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsStartedUploading">&ndash;&nbsp;documentsStartedUploading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document started uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsStartedDownloading">&ndash;&nbsp;documentsStartedDownloading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document started downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li><li>
- <span class="tooltip">
- <code><a href="#//api/name/documentsFinishedDownloading">&ndash;&nbsp;documentsFinishedDownloading</a></code>
- <span class="tooltip"><p>DEPRECATED. Tells the delegate that a document finished downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p></span>
- </span>
-
-
-</li>
- </ul>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/cloudError:" title="cloudError:"></a>
- <h3 class="subsubtitle method-title">cloudError:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that there was an error while performing a process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)cloudError:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>Returns the NSError that occurred</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentWasDeleted" title="documentWasDeleted"></a>
- <h3 class="subsubtitle method-title">documentWasDeleted</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document was successfully deleted. (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in deleteDocumentWithName:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentWasDeleted</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentWasSaved" title="documentWasSaved"></a>
- <h3 class="subsubtitle method-title">documentWasSaved</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document was successfully saved (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in saveDocumentWithName:withContent:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentWasSaved</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsFinishedDownloading" title="documentsFinishedDownloading"></a>
- <h3 class="subsubtitle method-title">documentsFinishedDownloading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document finished downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsFinishedDownloading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsFinishedUploading" title="documentsFinishedUploading"></a>
- <h3 class="subsubtitle method-title">documentsFinishedUploading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document finished uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Use the completion handlers in uploadLocalOfflineDocumentsWithDelegate:repeatingHandler:completion: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsFinishedUploading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsStartedDownloading" title="documentsStartedDownloading"></a>
- <h3 class="subsubtitle method-title">documentsStartedDownloading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document started downloading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsStartedDownloading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/documentsStartedUploading" title="documentsStartedUploading"></a>
- <h3 class="subsubtitle method-title">documentsStartedUploading</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that a document started uploading (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. To be removed in version 8.0. Delegate methods are no longer used to report method-specfic conditions and so this method is never called. Completion blocks are now used.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)documentsStartedUploading</code></div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/fileListChangedWithFiles:andFileNames:" title="fileListChangedWithFiles:andFileNames:"></a>
- <h3 class="subsubtitle method-title">fileListChangedWithFiles:andFileNames:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.0. Use iCloudFilesDidChange:withNewFileNames: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)fileListChangedWithFiles:(NSMutableArray *)<em>files</em> andFileNames:(NSMutableArray *)<em>fileNames</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>files</em></dt>
- <dd><p>Returns a list of the files now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory - each file in the array contains information such as file version, url, localized name, date, etc.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>fileNames</em></dt>
- <dd><p>Returns a list of the file names now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:" title="iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:"></a>
- <h3 class="subsubtitle method-title">iCloudAvailabilityDidChangeToState:withUbiquityToken:withUbiquityContainer:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when the availability of <a href="../Classes/iCloud.html">iCloud</a> changes</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudAvailabilityDidChangeToState:(BOOL)<em>cloudIsAvailable</em> withUbiquityToken:(id)<em>ubiquityToken</em> withUbiquityContainer:(NSURL *)<em>ubiquityContainer</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudIsAvailable</em></dt>
- <dd><p>Boolean value that is YES if <a href="../Classes/iCloud.html">iCloud</a> is available and NO if <a href="../Classes/iCloud.html">iCloud</a> is not available</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityToken</em></dt>
- <dd><p>An <a href="../Classes/iCloud.html">iCloud</a> ubiquity token that represents the current <a href="../Classes/iCloud.html">iCloud</a> identity. Can be used to determine if <a href="../Classes/iCloud.html">iCloud</a> is available and if the <a href="../Classes/iCloud.html">iCloud</a> account has been changed (ex. if the user logged out and then logged in with a different <a href="../Classes/iCloud.html">iCloud</a> account). This object may be nil if <a href="../Classes/iCloud.html">iCloud</a> is not available for any reason.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityContainer</em></dt>
- <dd><p>The root URL path to the current application&rsquo;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:" title="iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:"></a>
- <h3 class="subsubtitle method-title">iCloudDidFinishInitializingWitUbiquityToken:withUbiquityContainer:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when the <a href="../Classes/iCloud.html">iCloud</a> initiaization process is finished and the <a href="../Classes/iCloud.html">iCloud</a> is available</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudDidFinishInitializingWitUbiquityToken:(id)<em>cloudToken</em> withUbiquityContainer:(NSURL *)<em>ubiquityContainer</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudToken</em></dt>
- <dd><p>An <a href="../Classes/iCloud.html">iCloud</a> ubiquity token that represents the current <a href="../Classes/iCloud.html">iCloud</a> identity. Can be used to determine if <a href="../Classes/iCloud.html">iCloud</a> is available and if the <a href="../Classes/iCloud.html">iCloud</a> account has been changed (ex. if the user logged out and then logged in with a different <a href="../Classes/iCloud.html">iCloud</a> account). This object may be nil if <a href="../Classes/iCloud.html">iCloud</a> is not available for any reason.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>ubiquityContainer</em></dt>
- <dd><p>The root URL path to the current application&rsquo;s ubiquity container. This URL may be nil until the ubiquity container is initialized.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudError:" title="iCloudError:"></a>
- <h3 class="subsubtitle method-title">iCloudError:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Called when there is an error while performing an <a href="../Classes/iCloud.html">iCloud</a> process (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 6.1. Use the NSError parameter available in corresponding methods' completion handlers.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudError:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>An NSError with a message, error code, and information</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileConflictBetweenCloudFile:andLocalFile:" title="iCloudFileConflictBetweenCloudFile:andLocalFile:"></a>
- <h3 class="subsubtitle method-title">iCloudFileConflictBetweenCloudFile:andLocalFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload or download</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileConflictBetweenCloudFile:(NSDictionary *)<em>cloudFile</em> andLocalFile:(NSDictionary *)<em>localFile</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudFile</em></dt>
- <dd><p>An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>localFile</em></dt>
- <dd><p>An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>When both files have the same modification date and file content, <a href="../Classes/iCloud.html">iCloud</a> Document Sync will not be able to automatically determine how to handle the conflict. As a result, this delegate method is called to pass the file information to the delegate which should be able to appropriately handle and resolve the conflict. The delegate should, if needed, present the user with a conflict resolution interface. <a href="../Classes/iCloud.html">iCloud</a> Document Sync does not need to know the result of the attempted resolution, it will continue to upload all files which are not conflicting.</p>
-
-<p>It is important to note that <strong>this method may be called more than once in a very short period of time</strong> - be prepared to handle the data appropriately.</p>
-
-<p>The delegate is only notified about conflicts during upload and download procedures with <a href="../Classes/iCloud.html">iCloud</a>. This method does not monitor for document conflicts between documents which already exist in <a href="../Classes/iCloud.html">iCloud</a>. There are other methods provided to you to detect document state and state changes / conflicts.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUpdateDidBegin" title="iCloudFileUpdateDidBegin"></a>
- <h3 class="subsubtitle method-title">iCloudFileUpdateDidBegin</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called before an <a href="../Classes/iCloud.html">iCloud</a> Query begins.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUpdateDidBegin</code></div>
-
-
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This may be useful to display interface updates.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUpdateDidEnd" title="iCloudFileUpdateDidEnd"></a>
- <h3 class="subsubtitle method-title">iCloudFileUpdateDidEnd</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called when an <a href="../Classes/iCloud.html">iCloud</a> Query ends.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUpdateDidEnd</code></div>
-
-
-
-
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>This may be useful to display interface updates.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFileUploadConflictWithCloudFile:andLocalFile:" title="iCloudFileUploadConflictWithCloudFile:andLocalFile:"></a>
- <h3 class="subsubtitle method-title">iCloudFileUploadConflictWithCloudFile:andLocalFile:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>DEPRECATED. Sent to the delegate where there is a conflict between a local file and an <a href="../Classes/iCloud.html">iCloud</a> file during an upload (<b class="deprecated">Deprecated:</b><span class="deprecated"> Deprecated in version 7.0. Use iCloudFileConflictBetweenCloudFile:andLocalFile: instead.</span>)</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFileUploadConflictWithCloudFile:(NSDictionary *)<em>cloudFile</em> andLocalFile:(NSDictionary *)<em>localFile</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>cloudFile</em></dt>
- <dd><p>An NSDictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>localFile</em></dt>
- <dd><p>An NSDictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudFilesDidChange:withNewFileNames:" title="iCloudFilesDidChange:withNewFileNames:"></a>
- <h3 class="subsubtitle method-title">iCloudFilesDidChange:withNewFileNames:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Tells the delegate that the files in <a href="../Classes/iCloud.html">iCloud</a> have been modified</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudFilesDidChange:(NSMutableArray *)<em>files</em> withNewFileNames:(NSMutableArray *)<em>fileNames</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>files</em></dt>
- <dd><p>A list of the files now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory - each NSMetadataItem in the array contains information such as file version, url, localized name, date, etc.</p></dd>
- </dl>
-
- <dl class="argument-def parameter-def">
- <dt><em>fileNames</em></dt>
- <dd><p>A list of the file names (NSString) now in the app&rsquo;s <a href="../Classes/iCloud.html">iCloud</a> documents directory</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- <div class="section-method">
- <a name="//api/name/iCloudQueryLimitedToFileExtension" title="iCloudQueryLimitedToFileExtension"></a>
- <h3 class="subsubtitle method-title">iCloudQueryLimitedToFileExtension</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Called before creating an <a href="../Classes/iCloud.html">iCloud</a> Query filter. Specify the type of file to be queried.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (NSString *)iCloudQueryLimitedToFileExtension</code></div>
-
-
-
-
-
- <div class="method-subsection return">
- <h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>An NSString with one file extension formatted like this: @&ldquo;txt&rdquo;</p>
- </div>
-
-
-
-
-
- <div class="method-subsection discussion-section">
- <h4 class="method-subtitle">Discussion</h4>
- <p>If this delegate is not implemented or returns nil, all files stored in the documents directory will be queried.</p>
- </div>
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloud.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/Protocols/iCloudDocumentDelegate.html b/iCloudSync/Documentation/html/Protocols/iCloudDocumentDelegate.html
deleted file mode 100644
index 9c3a523c..00000000
--- a/iCloudSync/Documentation/html/Protocols/iCloudDocumentDelegate.html
+++ /dev/null
@@ -1,314 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
- <title>iCloudDocumentDelegate Protocol Reference</title>
- <meta id="xcode-display" name="xcode-display" content="render"/>
- <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="../index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloudDocumentDelegate Protocol Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar">
- <li id="toc_button">
- <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
- </li>
- <li id="jumpto_button" role="navigation">
- <select id="jumpTo">
- <option value="top">Jump To&#133;</option>
-
- <option value="overview">Overview</option>
-
-
-
-
- <option value="tasks">Tasks</option>
-
-
-
-
-
-
-
-
-
- <option value="instance_methods">Instance Methods</option>
-
- <option value="//api/name/iCloudDocumentErrorOccured:">&nbsp;&nbsp;&nbsp;&nbsp;- iCloudDocumentErrorOccured:</option>
-
-
-
-</select>
- </li>
- </ul>
- </header>
- <nav id="tocContainer" class="isShowingTOC">
- <ul id="toc" role="tree">
-
-<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
-
-
-
-
-<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
-
-</ul></li>
-
-
-
-
-
-
-
-
-
-<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
-
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/iCloudDocumentErrorOccured:">iCloudDocumentErrorOccured:</a></span></li>
-
-</ul></li>
-
-
- </ul>
- </nav>
- <article>
- <div id="contents" class="isShowingTOC" role="main">
- <a title="iCloudDocumentDelegate Protocol Reference" name="top"></a>
- <div class="main-navigation navigation-top">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloudDocumentDelegate Protocol Reference</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="section section-specification"><table cellspacing="0"><tbody>
- <tr>
- <td class="specification-title">Conforms to</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Declared in</td>
- <td class="specification-value">iCloudDocument.h</td>
-</tr>
- </tbody></table></div>
-
-
-
-
- <div class="section section-overview">
- <a title="Overview" name="overview"></a>
- <h2 class="subtitle subtitle-overview">Overview</h2>
- <p>The iCloudDocumentDelegate protocol defines the methods used to receive error notifications and allow for deeper control of document handling and management.</p>
- </div>
-
-
-
-
-
- <div class="section section-tasks">
- <a title="Tasks" name="tasks"></a>
- <h2 class="subtitle subtitle-tasks">Tasks</h2>
-
-
-
-
-
- <ul class="task-list">
- <li>
- <span class="tooltip">
- <code><a href="#//api/name/iCloudDocumentErrorOccured:">&ndash;&nbsp;iCloudDocumentErrorOccured:</a></code>
- <span class="tooltip"><p>Delegate method fired when an error occurs during an attempt to read, save, or revert a document.</p></span>
- </span>
-
- <span class="task-item-suffix">required method</span>
-</li>
- </ul>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="section section-methods">
- <a title="Instance Methods" name="instance_methods"></a>
- <h2 class="subtitle subtitle-methods">Instance Methods</h2>
-
- <div class="section-method">
- <a name="//api/name/iCloudDocumentErrorOccured:" title="iCloudDocumentErrorOccured:"></a>
- <h3 class="subsubtitle method-title">iCloudDocumentErrorOccured:</h3>
-
-
-
- <div class="method-subsection brief-description">
- <p>Delegate method fired when an error occurs during an attempt to read, save, or revert a document.</p>
- </div>
-
-
-
- <div class="method-subsection method-declaration"><code>- (void)iCloudDocumentErrorOccured:(NSError *)<em>error</em></code></div>
-
-
-
- <div class="method-subsection arguments-section parameters">
- <h4 class="method-subtitle parameter-title">Parameters</h4>
-
- <dl class="argument-def parameter-def">
- <dt><em>error</em></dt>
- <dd><p>The error that occured during an attempt to read, save, or revert a document.</p></dd>
- </dl>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="method-subsection declared-in-section">
- <h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">iCloudDocument.h</code><br />
- </div>
-
-
-</div>
-
- </div>
-
-
- </div>
- <div class="main-navigation navigation-bottom">
- <ul>
- <li><a href="../index.html">Index</a></li>
- <li><a href="../hierarchy.html">Hierarchy</a></li>
-</ul>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
- </div>
- </div>
- </div>
- </article>
- <script type="text/javascript">
- function jumpToChange()
- {
- window.location.hash = this.options[this.selectedIndex].value;
- }
-
- function toggleTOC()
- {
- var contents = document.getElementById('contents');
- var tocContainer = document.getElementById('tocContainer');
-
- if (this.getAttribute('class') == 'open')
- {
- this.setAttribute('class', '');
- contents.setAttribute('class', '');
- tocContainer.setAttribute('class', '');
-
- window.name = "hideTOC";
- }
- else
- {
- this.setAttribute('class', 'open');
- contents.setAttribute('class', 'isShowingTOC');
- tocContainer.setAttribute('class', 'isShowingTOC');
-
- window.name = "";
- }
- return false;
- }
-
- function toggleTOCEntryChildren(e)
- {
- e.stopPropagation();
- var currentClass = this.getAttribute('class');
- if (currentClass == 'children') {
- this.setAttribute('class', 'children open');
- }
- else if (currentClass == 'children open') {
- this.setAttribute('class', 'children');
- }
- return false;
- }
-
- function tocEntryClick(e)
- {
- e.stopPropagation();
- return true;
- }
-
- function init()
- {
- var selectElement = document.getElementById('jumpTo');
- selectElement.addEventListener('change', jumpToChange, false);
-
- var tocButton = document.getElementById('table_of_contents');
- tocButton.addEventListener('click', toggleTOC, false);
-
- var taskTreeItem = document.getElementById('task_treeitem');
- if (taskTreeItem.getElementsByTagName('li').length > 0)
- {
- taskTreeItem.setAttribute('class', 'children');
- taskTreeItem.firstChild.setAttribute('class', 'disclosure');
- }
-
- var tocList = document.getElementById('toc');
-
- var tocEntries = tocList.getElementsByTagName('li');
- for (var i = 0; i < tocEntries.length; i++) {
- tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
- }
-
- var tocLinks = tocList.getElementsByTagName('a');
- for (var i = 0; i < tocLinks.length; i++) {
- tocLinks[i].addEventListener('click', tocEntryClick, false);
- }
-
- if (window.name == "hideTOC") {
- toggleTOC.call(tocButton);
- }
- }
-
- window.onload = init;
-
- // If showing in Xcode, hide the TOC and Header
- if (navigator.userAgent.match(/xcode/i)) {
- document.getElementById("contents").className = "hideInXcode"
- document.getElementById("tocContainer").className = "hideInXcode"
- document.getElementById("top_header").className = "hideInXcode"
- }
-
- </script>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/css/styles.css b/iCloudSync/Documentation/html/css/styles.css
deleted file mode 100644
index 1ad26185..00000000
--- a/iCloudSync/Documentation/html/css/styles.css
+++ /dev/null
@@ -1,588 +0,0 @@
-body {
- font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
- font-size: 13px;
-}
-
-code {
- font-family: Courier, Consolas, monospace;
- font-size: 13px;
- color: #666;
-}
-
-pre {
- font-family: Courier, Consolas, monospace;
- font-size: 13px;
- line-height: 18px;
- tab-interval: 0.5em;
- border: 1px solid #C7CFD5;
- background-color: #F1F5F9;
- color: #666;
- padding: 0.3em 1em;
-}
-
-ul {
- list-style-type: square;
-}
-
-li {
- margin-bottom: 10px;
-}
-
-a, a code {
- text-decoration: none;
- color: #36C;
-}
-
-a:hover, a:hover code {
- text-decoration: underline;
- color: #36C;
-}
-
-h2 {
- border-bottom: 1px solid #8391A8;
- color: #3C4C6C;
- font-size: 187%;
- font-weight: normal;
- margin-top: 1.75em;
- padding-bottom: 2px;
-}
-
-table {
- margin-bottom: 4em;
- border-collapse:collapse;
- vertical-align: middle;
-}
-
-td {
- border: 1px solid #9BB3CD;
- padding: .667em;
- font-size: 100%;
-}
-
-th {
- border: 1px solid #9BB3CD;
- padding: .3em .667em .3em .667em;
- background: #93A5BB;
- font-size: 103%;
- font-weight: bold;
- color: white;
- text-align: left;
-}
-
-/* @group Common page elements */
-
-#top_header {
- height: 91px;
- left: 0;
- min-width: 598px;
- position: absolute;
- right: 0;
- top: 0;
- z-index: 900;
-}
-
-#footer {
- clear: both;
- padding-top: 20px;
- text-align: center;
-}
-
-#contents, #overview_contents {
- -webkit-overflow-scrolling: touch;
- border-top: 1px solid #2B334F;
- position: absolute;
- top: 91px;
- left: 0;
- right: 0;
- bottom: 0;
- overflow-x: hidden;
- overflow-y: auto;
- padding-left: 2em;
- padding-right: 2em;
- padding-top: 1em;
- min-width: 550px;
-}
-
-#contents.isShowingTOC {
- left: 230px;
- min-width: 320px;
-}
-
-.copyright {
- font-size: 12px;
-}
-
-.generator {
- font-size: 11px;
-}
-
-.main-navigation ul li {
- display: inline;
- margin-left: 15px;
- list-style: none;
-}
-
-.navigation-top {
- clear: both;
- float: right;
-}
-
-.navigation-bottom {
- clear: both;
- float: right;
- margin-top: 20px;
- margin-bottom: -10px;
-}
-
-.open > .disclosure {
- background-image: url("../img/disclosure_open.png");
-}
-
-.disclosure {
- background: url("../img/disclosure.png") no-repeat scroll 0 0;
-}
-
-.disclosure, .nodisclosure {
- display: inline-block;
- height: 8px;
- margin-right: 5px;
- position: relative;
- width: 9px;
-}
-
-/* @end */
-
-/* @group Header */
-
-#top_header #library {
- background: url("../img/library_background.png") repeat-x 0 0 #485E78;
- background-color: #ccc;
- height: 35px;
- font-size: 115%;
-}
-
-#top_header #library #libraryTitle {
- color: #FFFFFF;
- margin-left: 15px;
- text-shadow: 0 -1px 0 #485E78;
- top: 8px;
- position: absolute;
-}
-
-#libraryTitle {
- left: 0;
-}
-
-#top_header #library #developerHome {
- color: #92979E;
- right: 15px;
- top: 8px;
- position: absolute;
-}
-
-#top_header #library a:hover {
- text-decoration: none;
-}
-
-#top_header #title {
- background: url("../img/title_background.png") repeat-x 0 0 #8A98A9;
- border-bottom: 1px solid #B6B6B6;
- height: 25px;
- overflow: hidden;
-}
-
-#top_header h1 {
- font-size: 115%;
- font-weight: normal;
- margin: 0;
- padding: 3px 0 2px;
- text-align: center;
- text-shadow: 0 1px 0 #D5D5D5;
- white-space: nowrap;
-}
-
-#headerButtons {
- background-color: #D8D8D8;
- background-image: url("../img/button_bar_background.png");
- border-bottom: 1px solid #EDEDED;
- border-top: 1px solid #2B334F;
- font-size: 8pt;
- height: 28px;
- left: 0;
- list-style: none outside none;
- margin: 0;
- overflow: hidden;
- padding: 0;
- position: absolute;
- right: 0;
- top: 61px;
-}
-
-#headerButtons li {
- background-repeat: no-repeat;
- display: inline;
- margin-top: 0;
- margin-bottom: 0;
- padding: 0;
-}
-
-#toc_button button {
- border-color: #ACACAC;
- border-style: none solid none none;
- border-width: 0 1px 0 0;
- height: 28px;
- margin: 0;
- padding-left: 30px;
- text-align: left;
- width: 230px;
-}
-
-li#jumpto_button {
- left: 230px;
- margin-left: 0;
- position: absolute;
-}
-
-li#jumpto_button select {
- height: 22px;
- margin: 5px 2px 0 10px;
- max-width: 300px;
-}
-
-/* @end */
-
-/* @group Table of contents */
-
-#tocContainer.isShowingTOC {
- border-right: 1px solid #ACACAC;
- display: block;
- overflow-x: hidden;
- overflow-y: auto;
- padding: 0;
-}
-
-#tocContainer {
- background-color: #E4EBF7;
- border-top: 1px solid #2B334F;
- bottom: 0;
- display: none;
- left: 0;
- overflow: hidden;
- position: absolute;
- top: 91px;
- width: 229px;
-}
-
-#tocContainer > ul#toc {
- font-size: 11px;
- margin: 0;
- padding: 12px 0 18px;
- width: 209px;
- -moz-user-select: none;
- -webkit-user-select: none;
- user-select: none;
-}
-
-#tocContainer > ul#toc > li {
- margin: 0;
- padding: 0 0 7px 30px;
- text-indent: -15px;
-}
-
-#tocContainer > ul#toc > li > .sectionName a {
- color: #000000;
- font-weight: bold;
-}
-
-#tocContainer > ul#toc > li > .sectionName a:hover {
- text-decoration: none;
-}
-
-#tocContainer > ul#toc li.children > ul {
- display: none;
- height: 0;
-}
-
-#tocContainer > ul#toc > li > ul {
- margin: 0;
- padding: 0;
-}
-
-#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
- margin-left: 0;
- margin-bottom: 0;
- padding-left: 15px;
-}
-
-#tocContainer > ul#toc > li ul {
- list-style: none;
- margin-right: 0;
- padding-right: 0;
-}
-
-#tocContainer > ul#toc li.children.open > ul {
- display: block;
- height: auto;
- margin-left: -15px;
- padding-left: 0;
-}
-
-#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li {
- margin-left: 0;
- padding-left: 15px;
-}
-
-#tocContainer li ul li {
- margin-top: 0.583em;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-#tocContainer li ul li span.sectionName {
- white-space: normal;
-}
-
-#tocContainer > ul#toc > li > ul > li > .sectionName a {
- font-weight: bold;
-}
-
-#tocContainer > ul#toc > li > ul a {
- color: #4F4F4F;
-}
-
-/* @end */
-
-/* @group Index formatting */
-
-.index-title {
- font-size: 13px;
- font-weight: normal;
-}
-
-.index-column {
- float: left;
- width: 30%;
- min-width: 200px;
- font-size: 11px;
-}
-
-.index-column ul {
- margin: 8px 0 0 0;
- padding: 0;
- list-style: none;
-}
-
-.index-column ul li {
- margin: 0 0 3px 0;
- padding: 0;
-}
-
-.hierarchy-column {
- min-width: 400px;
-}
-
-.hierarchy-column ul {
- margin: 3px 0 0 15px;
-}
-
-.hierarchy-column ul li {
- list-style-type: square;
-}
-
-/* @end */
-
-/* @group Common formatting elements */
-
-.title {
- font-weight: normal;
- font-size: 215%;
- margin-top:0;
-}
-
-.subtitle {
- font-weight: normal;
- font-size: 180%;
- color: #3C4C6C;
- border-bottom: 1px solid #5088C5;
-}
-
-.subsubtitle {
- font-weight: normal;
- font-size: 145%;
- height: 0.7em;
-}
-
-.note {
- border: 1px solid #5088C5;
- background-color: white;
- margin: 1.667em 0 1.75em 0;
- padding: 0 .667em .083em .750em;
-}
-
-.warning {
- border: 1px solid #5088C5;
- background-color: #F0F3F7;
- margin-bottom: 0.5em;
- padding: 0.3em 0.8em;
-}
-
-.bug {
- border: 1px solid #000;
- background-color: #ffffcc;
- margin-bottom: 0.5em;
- padding: 0.3em 0.8em;
-}
-
-.deprecated {
- color: #F60425;
-}
-
-/* @end */
-
-/* @group Common layout */
-
-.section {
- margin-top: 3em;
-}
-
-/* @end */
-
-/* @group Object specification section */
-
-.section-specification {
- margin-left: 2.5em;
- margin-right: 2.5em;
- font-size: 12px;
-}
-
-.section-specification table {
- margin-bottom: 0em;
- border-top: 1px solid #d6e0e5;
-}
-
-.section-specification td {
- vertical-align: top;
- border-bottom: 1px solid #d6e0e5;
- border-left-width: 0px;
- border-right-width: 0px;
- border-top-width: 0px;
- padding: .6em;
-}
-
-.section-specification .specification-title {
- font-weight: bold;
-}
-
-/* @end */
-
-/* @group Tasks section */
-
-.task-list {
- list-style-type: none;
- padding-left: 0px;
-}
-
-.task-list li {
- margin-bottom: 3px;
-}
-
-.task-item-suffix {
- color: #996;
- font-size: 12px;
- font-style: italic;
- margin-left: 0.5em;
-}
-
-span.tooltip span.tooltip {
- font-size: 1.0em;
- display: none;
- padding: 0.3em;
- border: 1px solid #aaa;
- background-color: #fdfec8;
- color: #000;
- text-align: left;
-}
-
-span.tooltip:hover span.tooltip {
- display: block;
- position: absolute;
- margin-left: 2em;
-}
-
-/* @end */
-
-/* @group Method section */
-
-.section-method {
- margin-top: 2.3em;
-}
-
-.method-title {
- margin-bottom: 1.5em;
-}
-
-.method-subtitle {
- margin-top: 0.7em;
- margin-bottom: 0.2em;
-}
-
-.method-subsection p {
- margin-top: 0.4em;
- margin-bottom: 0.8em;
-}
-
-.method-declaration {
- margin-top:1.182em;
- margin-bottom:.909em;
-}
-
-.method-declaration code {
- font:14px Courier, Consolas, monospace;
- color:#000;
-}
-
-.declaration {
- color: #000;
-}
-
-.argument-def {
- margin-top: 0.3em;
- margin-bottom: 0.3em;
-}
-
-.argument-def dd {
- margin-left: 1.25em;
-}
-
-.see-also-section ul {
- list-style-type: none;
- padding-left: 0px;
- margin-top: 0;
-}
-
-.see-also-section li {
- margin-bottom: 3px;
-}
-
-.declared-in-ref {
- color: #666;
-}
-
-#tocContainer.hideInXcode {
- display: none;
- border: 0px solid black;
-}
-
-#top_header.hideInXcode {
- display: none;
-}
-
-#contents.hideInXcode {
- border: 0px solid black;
- top: 0px;
- left: 0px;
-}
-
-/* @end */
-
diff --git a/iCloudSync/Documentation/html/css/stylesPrint.css b/iCloudSync/Documentation/html/css/stylesPrint.css
deleted file mode 100644
index dc54cd2f..00000000
--- a/iCloudSync/Documentation/html/css/stylesPrint.css
+++ /dev/null
@@ -1,22 +0,0 @@
-
-header {
- display: none;
-}
-
-div.main-navigation, div.navigation-top {
- display: none;
-}
-
-div#overview_contents, div#contents.isShowingTOC, div#contents {
- overflow: visible;
- position: relative;
- top: 0px;
- border: none;
- left: 0;
-}
-#tocContainer.isShowingTOC {
- display: none;
-}
-nav {
- display: none;
-}
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/hierarchy.html b/iCloudSync/Documentation/html/hierarchy.html
deleted file mode 100644
index c7ebb9e1..00000000
--- a/iCloudSync/Documentation/html/hierarchy.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>iCloud Framework Hierarchy</title>
- <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Framework Hierarchy</h1>
- </div>
- <ul id="headerButtons" role="toolbar"></ul>
- </header>
- <article>
- <div id="overview_contents" role="main">
- <div class="main-navigation navigation-top">
- <a href="index.html">Previous</a>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Framework Hierarchy</h1>
- </div>
- </div>
- <div id="container">
-
- <div class="index-column hierarchy-column">
- <h2 class="index-title">Class Hierarchy</h2>
-
- <ul>
-
- <li>NSObject
- <ul>
-
- <li><a href="Classes/iCloud.html">iCloud</a></li>
-
- </ul>
-</li>
-
- <li>UIDocument
- <ul>
-
- <li><a href="Classes/iCloudDocument.html">iCloudDocument</a></li>
-
- </ul>
-</li>
-
- </ul>
-
- </div>
-
-
-
- <div class="index-column">
-
- <h2 class="index-title">Protocol References</h2>
- <ul>
-
- <li><a href="Protocols/iCloudDelegate.html">iCloudDelegate</a></li>
-
- <li><a href="Protocols/iCloudDocumentDelegate.html">iCloudDocumentDelegate</a></li>
-
- </ul>
-
-
- </div>
-
- </div>
- <div class="main-navigation navigation-bottom">
- <a href="index.html">Previous</a>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
-
- </div>
- </div>
- </div>
- </article>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/html/img/button_bar_background.png b/iCloudSync/Documentation/html/img/button_bar_background.png
deleted file mode 100644
index abea7178..00000000
Binary files a/iCloudSync/Documentation/html/img/button_bar_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/html/img/disclosure.png b/iCloudSync/Documentation/html/img/disclosure.png
deleted file mode 100644
index 4c5cbf44..00000000
Binary files a/iCloudSync/Documentation/html/img/disclosure.png and /dev/null differ
diff --git a/iCloudSync/Documentation/html/img/disclosure_open.png b/iCloudSync/Documentation/html/img/disclosure_open.png
deleted file mode 100644
index 82396fed..00000000
Binary files a/iCloudSync/Documentation/html/img/disclosure_open.png and /dev/null differ
diff --git a/iCloudSync/Documentation/html/img/library_background.png b/iCloudSync/Documentation/html/img/library_background.png
deleted file mode 100644
index 7b3486bd..00000000
Binary files a/iCloudSync/Documentation/html/img/library_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/html/img/title_background.png b/iCloudSync/Documentation/html/img/title_background.png
deleted file mode 100644
index 3bf0bb17..00000000
Binary files a/iCloudSync/Documentation/html/img/title_background.png and /dev/null differ
diff --git a/iCloudSync/Documentation/html/index.html b/iCloudSync/Documentation/html/index.html
deleted file mode 100644
index f6a0fc93..00000000
--- a/iCloudSync/Documentation/html/index.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>iCloud Framework Reference</title>
- <link rel="stylesheet" type="text/css" href="css/styles.css" media="all" />
- <link rel="stylesheet" type="text/css" media="print" href="css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.2 (build 963)" />
- </head>
- <body>
- <header id="top_header">
- <div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="index.html">iCloud Framework </a></h1>
- <a id="developerHome" href="index.html">iRare Media</a>
- </div>
-
- <div id="title" role="banner">
- <h1 class="hideInXcode">iCloud Framework Reference</h1>
- </div>
- <ul id="headerButtons" role="toolbar"></ul>
- </header>
- <article>
- <div id="overview_contents" role="main">
- <div class="main-navigation navigation-top">
- <a href="hierarchy.html">Next</a>
- </div>
- <div id="header">
- <div class="section-header">
- <h1 class="title title-header">iCloud Framework Reference</h1>
- </div>
- </div>
- <div id="container">
-
-
-
-
-
- <div class="index-column">
- <h2 class="index-title">Class References</h2>
- <ul>
-
- <li><a href="Classes/iCloud.html">iCloud</a></li>
-
- <li><a href="Classes/iCloudDocument.html">iCloudDocument</a></li>
-
- </ul>
- </div>
-
-
-
- <div class="index-column">
-
- <h2 class="index-title">Protocol References</h2>
- <ul>
-
- <li><a href="Protocols/iCloudDelegate.html">iCloudDelegate</a></li>
-
- <li><a href="Protocols/iCloudDocumentDelegate.html">iCloudDocumentDelegate</a></li>
-
- </ul>
-
-
- </div>
-
- </div>
- <div class="main-navigation navigation-bottom">
- <a href="hierarchy.html">Next</a>
- </div>
- <div id="footer">
- <hr />
- <div class="footer-copyright">
- <p><span class="copyright">&copy; 2014 iRare Media. All rights reserved. (Last updated: 2014-08-03)</span><br />
-
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
-
-
- </div>
- </div>
- </div>
- </article>
- </body>
-</html>
\ No newline at end of file
diff --git a/iCloudSync/Documentation/publish/com.iRareMedia.iCloud-Framework-7.2.xar b/iCloudSync/Documentation/publish/com.iRareMedia.iCloud-Framework-7.2.xar
deleted file mode 100644
index 9e49ee2e..00000000
Binary files a/iCloudSync/Documentation/publish/com.iRareMedia.iCloud-Framework-7.2.xar and /dev/null differ
diff --git a/iCloudSync/Documentation/publish/iRareMedia.atom b/iCloudSync/Documentation/publish/iRareMedia.atom
deleted file mode 100644
index 1b8aad2d..00000000
--- a/iCloudSync/Documentation/publish/iRareMedia.atom
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<feed xmlns="http://www.w3.org/2005/Atom" xmlns:docset="http://developer.apple.com/rss/docset_extensions" xml:lang="en">
- <id>https://github.com/iRareMedia/iCloudDocumentSync/tree/master/Documentation//publish/iRareMedia.atom/20140803194612</id>
- <title type="text">iCloud Framework Documentation</title>
- <rights>Copyright © 2014 iRare Media. All rights reserved.</rights>
- <link rel="self" href="https://github.com/iRareMedia/iCloudDocumentSync/tree/master/Documentation//publish/iRareMedia.atom"></link>
- <docset:publisherName>iRare Media</docset:publisherName>
- <docset:publisherID>com.iRareMedia.documentation</docset:publisherID>
- <updated>2014-08-03T19:46:12-04:00</updated>
- <entry>
- <id>tag:github.com,2014-08-03:com.iRareMedia.iCloud-Framework/7.2.0</id>
- <title type="text">iCloud Framework Documentation</title>
- <updated>2014-08-03T19:46:12-04:00</updated>
- <content type="text">iCloud Framework Documentation (v7.2.0)</content>
- <link rel="enclosure" type="application/octet-stream" href="https:/github.com/iRareMedia/iCloudDocumentSync/tree/master/Documentation/com.iRareMedia.iCloud-Framework-7.2.xar" length="110797"></link>
- <docset:identifier>com.iRareMedia.iCloud-Framework</docset:identifier>
- <docset:version>7.2.0</docset:version>
- <docset:minimumXcodeVersion>3.0.0</docset:minimumXcodeVersion>
- </entry>
-</feed>
\ No newline at end of file
diff --git a/iCloudSync/LICENSE.md b/iCloudSync/LICENSE.md
deleted file mode 100755
index 4b07fd1e..00000000
--- a/iCloudSync/LICENSE.md
+++ /dev/null
@@ -1,18 +0,0 @@
-## License
-It is also appreciated if you let the original developers know if you're using this in a commercial project. Please tweet @iRareMedia, or send us an email (contact[at]iraremedia.com).
-
-The MIT License (MIT)
-
-Copyright (c) 2015 iRare Media
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
diff --git a/iCloudSync/README.md b/iCloudSync/README.md
deleted file mode 100644
index 14cf898b..00000000
--- a/iCloudSync/README.md
+++ /dev/null
@@ -1,254 +0,0 @@
-![Banner](https://github.com/oskarirauta/iCloudSync/raw/master/Documentation/CloudBanner.png)
-
-# iCloudSync
-
-A complete rewrite in Swift, including some fixes from iRareMedia's iCloud Document Sync fork.
-Documentation is still partially out-of-date, but it's pretty straight forward if you ever have used iCloud Document Sync.
-
-iCloudSync makes it easy for developers to integrate the iCloud document storage APIs into iOS applications. This is how iCloud document-storage and management should've been out of the box from Apple. Integrate iCloud into iOS Swift document projects with one-line code methods. Sync, upload, manage, and remove documents to and from iCloud with only a few lines of code. Get iCloud up and running in your iOS app in no time.
-
-If you like the project, please [star it](https://github.com/oskarirauta/iCloudSync) on GitHub!
-
-## Project Features
-iCloudSync is a great way to use iCloud document storage in your iOS app. Below are a few key project features and highlights.
-* Sync, Upload, Read, Write, Share, Save, Remove, and Edit any iCloud document in only one line of code.
-* Just drag and drop the iCloudSync Framework (`iCloudSync.framework`) into your project and you can begin using iCloud - no complicated setup
-* Access in-depth documentation with docsets, code comments, and verbose logging
-* Useful delegate methods and properties let you access and manage advanced iCloud features
-* Manage any kind of file with iCloud through use of Data
-* iOS Sample-app to illustrate how easy it is to use iCloudSync
-
-### Table of Contents
-
-* [**Project Information**](#project-information)
- * [Requirements](#requirements)
- * [License](#license)
- * [Contributions](#contributions)
- * [Sample App](#sample-app)
-* [**Installation**](#installation)
- * [CocoaPods](#cocoapods-setup)
- * [Framework](#frameworks-setup)
- * [Traditional](#traditional-setup)
-* [**Setup**](#setup)
-* [**Documentation**]
- * [Methods](#methods)
- * [Delegate](#delegate)
-
-## Project Information
-Learn more about the project requirements, licensing, and contributions.
-
-### Requirements
-Lowest minimum requirements are untested, but framework is designed with Xcode 10.1 and iOS 11.4 is set as a minimum deployment target, code should run on lower targets as well, but is not tested.
-
-### License
-This project is licensed under MIT License accordingly to it's successor, iCloud Document Sync. See the [full license here](https://github.com/oskarirauta/iCloudSync/block/master/LICENSE.md).
-
-Attribution is not required, but it's appreciated. iRare Media and I have spend a lot of time, energy and resource on this proejct, so a little *Thanks!* would be great. If you use iCloudSync or iCloud Document Sync in your app, send email to [email protected] or send a tweet at @iRareMedia.
-
-### Contributions
-Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.
-
-### Sample App
-The iOS Sample App included with this project demonstrates how to use many of the features in iCloudSync. You can refer to the sample app for an understanding of how to use and setup iCloudSync. The app should work with iCloud as-is (you may need to provide your own Bundle ID though).
-
-## Installation
-There are multiple ways to add iCloudSync to your project and it is easy. Choose the process below which best suits your needs. Follow the steps to get everything up and running in no time.
-
-### CocoaPods Setup
-The easiest way to install iCloud Document Sync is to use CocoaPods. To do so, simply add the following line to your Podfile:
-
- pod 'iCloudSync'
-
-### Framework Setup
-Clone the project to your computer and build the *Framework* target. The `iCloudSync.framework` file will be copied to the project directory. Drag and drop the `.framework` file into your project.
-
-### Traditional Setup
-Drag and drop the *iCloudSync* folder into your Xcode project. When you do so, check the "Copy items into destination group's folder" box.
-
-## Setup
-After installing iCloudSync, it only takes a few lines of code to get it up an running.
- 1. Import iCloudSync (see relevant install instructions above) to your header file(s).
- 2. Subscribe to the `iCloudDelegate` delegate.
- 3. Set the delegate and optionally enable verbose logging:
-
- iCloud.shared.delegate = self // Set this if you plan to use the delegate
- iCloud.shared.verboseLogging = true // We want detailed feedback on what's going on with iCloud, false by default
-
- 4. Setup iCloud when your app starts. It is crucial that you call this method before doing any document handling operations. You can either pass a specific Ubiquity Container ID (see your entitlements file) or `nil` to use the first Ubiquity Container ID in your entitlements.
-
- iCloud.shared.setupiCloud(nil)
-
- 5. It is recommended that the first call to `iCloud` after setup, is setting delegate. This way all subsequent operations and method calls can interact with the delegate and provide appropriate information.
-
-## Methods
-There are many methods available on iCloudSync. The most important / highlight methods are documented below. All other methods are documented with in-code comments.
-
-### Checking for iCloud Availability
-iCloudSync checks for iCloud availability before performing any iCloud-related operations. Any method may return prematurely and without a warning if iCloud is unavailable. Therefore, you should always check if iCloud is available before performing any iCloud operations.
-
- let cloudIsAvailable: Bool = iCloud.shared.cloudAvailable
- if cloudIsAvailable {
- // true
- }
-
-This checks if iCloud is available by looking for the application's ubiquity token. It returns a boolean value; true if iCloud is available, and false if not. Check the log / documentation for details on why it may not be available. You can also check for the availability of the iCloud ubiquity *container* by calling the following method:
-
- let cloudContainerIsAvailable: Bool = iCloud.shared.ubiquityContainerAvailable
-
-The `cloudAvailable` getter will call the `iCloudAvailabilityDidChange(to isAvailable: Bool, token ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?)` delegate method.
-
-### Syncing Documents
-To get iCloudSync to initialize for the first time, and continue to update when there are changes you'll need to initialize iCloud. By initializing iCloud, it will start syncing with iCloud for the first time and in the future.
-
- let _ = iCloud.shared
-
-You can manually fetch changes from iCloud too:
-
- iCloud.shared.updateFiles()
-
-iCloudSync will automatically detect changes in iCloud documents. When something changes the delegate method below is fired and will pass an array of all the files (NSMetadata Items) and their names (NSStrings) stored in iCloud.
-
- - iCloudFilesDidChange(_ files: [NSMetadataItem], with filenames: [String])
-
-### Uploading Documents
-iCloudSync uses UIDocument and Data to store and manage files. All of the heavy lifting with Data and UIDocument is handled for you. There's no need to actually create or manage any files, just give iCloudSync your data, and the rest is done for you.
-
-To create a new document or save and close an existing one, use the method below.
-
- iCloud.shared.saveAndCloseDocument("Name.ext", with: *content as data*, completion: {
- document, data, error in
- if error == nil {
- // Code here to use the UIDocument or Data objects which have been passed with the completion handler
- }
- })
-
-The completion handler will be called when a document is saved or created. The completion handler has a UIDocument and Data parameter that contain the document and it's contents. The third parameter is an Error that will contain an error if one occurs, otherwise it will be `nil`.
-
-You can also upload any documents created while offline, or locally. Files in the local documents directory that do not already exist in iCloud will be **moved** into iCloud one by one. This process involves lots of file manipulation and as a result it may take a long time. This process will be performed on the background thread to avoid any lag or memory problems. When the upload processes end, the completion block is called on the main thread.
-
- iCloud.shared.uploadLocalOfflineDocuments(repeatingHandler: {
- name, error in
- if error == nil {
- // This code block is called repeatedly until all files have been uploaded (or an upload has at least been attempted). Code here to use the NSString (the name of the uploaded file) which have been passed with the repeating handler
- }
- }, completion: {
- // Completion handler could be used to tell the user that the upload has completed
- })
-
-Note the `repeatingHandler` block. This block is called every-time a local file is uploaded, therefore it may be called multiple times in a short period. The Error object contains any error information if an error occurred, otherwise it will be nil.
-
-### Removing Documents
-You can delete documents from iCloud by using the method below. The completion block is called when the file is successfully deleted.
-
- iCloud.shared.deleteDocument("docName.ext", completion: {
- error in
- // Completion handler could be used to update your UI and tell the user that the document was deleted
- })
-
-### Retrieving Documents and Data
-You can open and retrieve a document stored in your iCloud documents directory with the method below. This method will attempt to open the specified document. If the file does not exist, a blank one will be created. The completion handler is called when the file is opened or created (either successfully or not). The completion handler contains a UIDocument, Data, and Error all of which contain information about the opened document.
-
- iCloud.shared.retrieveCloudDocument("docName.ext", completion: {
- document, data, error in
- if
- (!error),
- let filename: String = document.fileURL.lastPathComponent,
- let filedata: Data = data {
- // You have retrieved document's filename and contents as data, proceed..
- }
- }
- })
-
-First check if there was an error retrieving or creating the file, if there wasn't you can proceed to get the file's contents and metadata.
-
-You can also check whether or not a file actually exists in iCloud or not by using the method below.
-
- let fileExists: Bool = iCloud.shared.fileExistInCloud("docName.ext")
- if fileExists {
- // File Exists in iCloud
- }
-
-### Sharing Documents
-You can upload an iCloud document to a public URL by using the method below. The completion block is called when the public URL is created.
-
- iCloud.shared.shareDocument("docName.ext", completion: {
- sharedURL, expirationDate, error in
- // Completion handler that passes the public URL created, the expiration date of the URL, and any errors. Could be used to update your UI and tell the user that the document was uploaded
- })
-
-### Renaming and Duplicating Documents
-Rename a document stored in iCloud
-
- iCloud.shared.renameDocument("oldName.ext", with: "newName.ext", completion: {
- error in
- // Called when renaming is complete
- })
-
-### Duplicating a document stored in iCloud
-Duplicate a document stored in iCloud
-
- iCloud.shared.duplicateDocument("docName.ext", with: "docNameCopy.ext", completion: {
- error in
- // Called when duplication is complete
- })
-
-### Observing Document State
-iCloud tracks the state of a document when stored in iCloud. Document states include: Normal / Open, Closed, In Conflict, Saving Error, and Editing Disabled (learn more about [UIDocumentState](https://developer.apple.com/library/ios/documentation/uikit/reference/UIDocument_Class/UIDocument/UIDocument.html#//apple_ref/doc/c_ref/UIDocumentState)). Get the current document state of a file stored in iCloud with this method:
-
- iCloud.shared.documentState("docName.ext", completion: {
- state, description, error in
- // Completion handler that passes two parameters, an NSError and a UIDocumentState. The documentState parameter represents the document state that the specified file is currently in (may be nil if the file does not exist). The NSError parameter will contain a 404 error if the file does not exist.
- })
-
-Observe changes in a document's state by subscribing a specific target / selector / method.
-
- let success: Bool = iCloud.shared.observeDocumentState("docName.ext", observer: self, selector: #selector(self.methodName(_:)))
-
-Stop observing changes in a document's state by removing notifications for a specific target.
-
- let success: Bool = iCloud.shared.removeDocumentStateObserver("docName.ext", observer: self)
-
-### File Conflict Handling
-When a document's state changes to *in conflict*, your application should take the appropriate action by resolving the conflict or letting the user resolve the conflict. You can monitor for document state changes with the `iCloud.shared.observeDocumentState(name: String, observer: Any, selector: #Selector)` method. iCloudSync provides two methods that help handle a conflict with a document stored in iCloud. The first method lets you find all conflicting versions of a file:
-
- if let documentVersions: [NSFileVersion] = iCloud.shared.findUnresolvedConflictingVersionsOfFile("docName.ext") {
- // Handle conflicts..
- }
-
-The array returned contains a list of NSFileVersion objects for the specified file. You can then use this list of file versions to either automatically merge changes or have the user select the correct version. Use the following method to resolve the conflict by submitting the "correct" version of the file.
-
- iCloud.shared.resolveConflictForFile("docName.ext", with: NSFileVersion)
-
-
-## Delegate
-iCloudSync delegate methods notify you of the status of iCloud and your documents stored in iCloud. To use the iCloud delegate, subscribe to the `iCloudDelegate` protocol and then set the `delegate` property. To use the iCloudDocument delegate, subscribe to the `iCloudDocumentDelegate` protocol and then set the `delegate` property.
-
-### iCloud Availability Changed // Documentation updated until this section
-Called (automatically by iOS) when the availability of iCloud changes. The first parameter, `cloudIsAvailable`, is a boolean value that is YES if iCloud is available and NO if iCloud is not available. The second parameter, `ubiquityToken`, is an iCloud ubiquity token that represents the current iCloud identity. Can be used to determine if iCloud is available and if the iCloud account has been changed (ex. if the user logged out and then logged in with a different iCloud account). This object may be nil if iCloud is not available for any reason. The third parameter, `ubiquityContainer`, is the root URL path to the current application's ubiquity container. This URL may be nil until the ubiquity container is initialized.
-
- - (void)iCloudAvailabilityDidChangeToState:(BOOL)cloudIsAvailable withUbiquityToken:(id)ubiquityToken withUbiquityContainer:(NSURL *)ubiquityContainer
-
-### iCloud Files Changed
-When the files stored in your app's iCloud Document's directory change, this delegate method is called. The first parameter, `files`, contains an array of NSMetadataItems which can be used to gather information about a file (ex. URL, Name, Dates, etc). The second parameter, `fileNames`, contains an array of the name of each file as NSStrings.
-
- - (void)iCloudFilesDidChange:(NSMutableArray *)files withNewFileNames:(NSMutableArray *)fileNames
-
-### iCloud File Conflict
-When uploading multiple files to iCloud there is a possibility that files may exist both locally and in iCloud - causing a conflict. iCloudSync can handle most conflict cases and will report the action taken in the log. When iCloudSync can't figure out how to resolve the file conflict (this happens when both the modified date and contents are the same), it will pass the files and relevant information to you using this delegate method. The delegate method contains two NSDictionaries, one which contains information about the iCloud file, and the other about the local file. Both dictionaries contain the same keys with the same types of objects stored at each key:
-* `fileContent` contains the NSData of the file.
-* `fileURL` contains the NSURL pointing to the file. This could possibly be used to gather more information about the file.
-* `modifiedDate` contains the NSDate representing the last modified date of the file.
-
-Below is the delegate method to be used
-
- - (void)iCloudFileConflictBetweenCloudFile:(NSDictionary *)cloudFile andLocalFile:(NSDictionary *)localFile;
-
-### iCloud Query Parameter
-Called before creating an iCloud Query filter. Specify the type of file to be queried. If this delegate method is not implemented or returns nil, all files stored in the documents directory will be queried. Should return a single file extension formatted (as an NSString) like this: `@"txt"`
-
- - (NSString *)iCloudQueryLimitedToFileExtension
-
-### iCloud Document Error
-Delegate method fired when an error occurs during an attempt to read, save, or revert a document. This delegate method is only available on the `iCloudDocumentDelegate` with the `iCloudDocument` class. If you implement the iCloudDocument delegate, then you *must* implement this method - it is required.
-
- - (void)iCloudDocumentErrorOccured:(NSError *)error
diff --git a/iCloudSync/iCloud Example/iCloud Example.xcodeproj/project.pbxproj b/iCloudSync/iCloud Example/iCloud Example.xcodeproj/project.pbxproj
deleted file mode 100644
index 59650970..00000000
--- a/iCloudSync/iCloud Example/iCloud Example.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,380 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 50;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6E1A7DA221D31D280028C11E /* DocumentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E1A7DA121D31D280028C11E /* DocumentViewController.swift */; };
- 6E1A7DA421D3A9B80028C11E /* iCloudSync.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 6EAFF3D021D2E11A00785973 /* iCloudSync.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 6E1A7DA721D3BA500028C11E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6E1A7DA621D3BA500028C11E /* LaunchScreen.storyboard */; };
- 6E812C4921D3BBBB0087222C /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E812C4821D3BBBB0087222C /* ShareViewController.swift */; };
- 6E812C4D21D3D6480087222C /* ConflictViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E812C4C21D3D6480087222C /* ConflictViewController.swift */; };
- 6E812C4F21D3DB290087222C /* FileCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E812C4E21D3DB290087222C /* FileCell.swift */; };
- 6EAFF3AC21D1940900785973 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3AB21D1940900785973 /* AppDelegate.swift */; };
- 6EAFF3B321D1940A00785973 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6EAFF3B221D1940A00785973 /* Assets.xcassets */; };
- 6EAFF3D121D2E11A00785973 /* iCloudSync.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EAFF3D021D2E11A00785973 /* iCloudSync.framework */; };
- 6EAFF3E221D2E56D00785973 /* ListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3E121D2E56D00785973 /* ListViewController.swift */; };
- 6EAFF3E521D2F17A00785973 /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3E421D2F17A00785973 /* WelcomeViewController.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 6E1A7DA521D3A9B90028C11E /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 6E1A7DA421D3A9B80028C11E /* iCloudSync.framework in Embed Frameworks */,
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 6E1A7DA121D31D280028C11E /* DocumentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DocumentViewController.swift; sourceTree = "<group>"; };
- 6E1A7DA621D3BA500028C11E /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
- 6E812C4821D3BBBB0087222C /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = "<group>"; };
- 6E812C4C21D3D6480087222C /* ConflictViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConflictViewController.swift; sourceTree = "<group>"; };
- 6E812C4E21D3DB290087222C /* FileCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileCell.swift; sourceTree = "<group>"; };
- 6EAFF3A821D1940900785973 /* iCloud Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iCloud Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6EAFF3AB21D1940900785973 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
- 6EAFF3B221D1940A00785973 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
- 6EAFF3B721D1940A00785973 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
- 6EAFF3C621D194B000785973 /* iCloud.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = iCloud.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 6EAFF3D021D2E11A00785973 /* iCloudSync.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = iCloudSync.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 6EAFF3E121D2E56D00785973 /* ListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListViewController.swift; sourceTree = "<group>"; };
- 6EAFF3E321D2EEAB00785973 /* iCloud Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "iCloud Example.entitlements"; sourceTree = "<group>"; };
- 6EAFF3E421D2F17A00785973 /* WelcomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 6EAFF3A521D1940900785973 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6EAFF3D121D2E11A00785973 /* iCloudSync.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 6EAFF39F21D1940900785973 = {
- isa = PBXGroup;
- children = (
- 6EAFF3AA21D1940900785973 /* iCloud Example */,
- 6EAFF3A921D1940900785973 /* Products */,
- 6EAFF3C521D194B000785973 /* Frameworks */,
- );
- sourceTree = "<group>";
- };
- 6EAFF3A921D1940900785973 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6EAFF3A821D1940900785973 /* iCloud Example.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6EAFF3AA21D1940900785973 /* iCloud Example */ = {
- isa = PBXGroup;
- children = (
- 6EAFF3E321D2EEAB00785973 /* iCloud Example.entitlements */,
- 6EAFF3AB21D1940900785973 /* AppDelegate.swift */,
- 6EAFF3E121D2E56D00785973 /* ListViewController.swift */,
- 6EAFF3E421D2F17A00785973 /* WelcomeViewController.swift */,
- 6E1A7DA121D31D280028C11E /* DocumentViewController.swift */,
- 6E812C4821D3BBBB0087222C /* ShareViewController.swift */,
- 6E812C4C21D3D6480087222C /* ConflictViewController.swift */,
- 6E812C4E21D3DB290087222C /* FileCell.swift */,
- 6E1A7DA621D3BA500028C11E /* LaunchScreen.storyboard */,
- 6EAFF3B221D1940A00785973 /* Assets.xcassets */,
- 6EAFF3B721D1940A00785973 /* Info.plist */,
- );
- path = "iCloud Example";
- sourceTree = "<group>";
- };
- 6EAFF3C521D194B000785973 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6EAFF3D021D2E11A00785973 /* iCloudSync.framework */,
- 6EAFF3C621D194B000785973 /* iCloud.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 6EAFF3A721D1940900785973 /* iCloud Example */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6EAFF3BA21D1940A00785973 /* Build configuration list for PBXNativeTarget "iCloud Example" */;
- buildPhases = (
- 6EAFF3A421D1940900785973 /* Sources */,
- 6EAFF3A521D1940900785973 /* Frameworks */,
- 6EAFF3A621D1940900785973 /* Resources */,
- 6E1A7DA521D3A9B90028C11E /* Embed Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "iCloud Example";
- productName = "iCloud Example";
- productReference = 6EAFF3A821D1940900785973 /* iCloud Example.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 6EAFF3A021D1940900785973 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastSwiftUpdateCheck = 1010;
- LastUpgradeCheck = 1010;
- ORGANIZATIONNAME = "Oskari Rauta";
- TargetAttributes = {
- 6EAFF3A721D1940900785973 = {
- CreatedOnToolsVersion = 10.1;
- LastSwiftMigration = 1020;
- SystemCapabilities = {
- com.apple.iCloud = {
- enabled = 1;
- };
- };
- };
- };
- };
- buildConfigurationList = 6EAFF3A321D1940900785973 /* Build configuration list for PBXProject "iCloud Example" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 6EAFF39F21D1940900785973;
- productRefGroup = 6EAFF3A921D1940900785973 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 6EAFF3A721D1940900785973 /* iCloud Example */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 6EAFF3A621D1940900785973 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6E1A7DA721D3BA500028C11E /* LaunchScreen.storyboard in Resources */,
- 6EAFF3B321D1940A00785973 /* Assets.xcassets in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 6EAFF3A421D1940900785973 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6E812C4D21D3D6480087222C /* ConflictViewController.swift in Sources */,
- 6EAFF3E521D2F17A00785973 /* WelcomeViewController.swift in Sources */,
- 6E812C4F21D3DB290087222C /* FileCell.swift in Sources */,
- 6E1A7DA221D31D280028C11E /* DocumentViewController.swift in Sources */,
- 6E812C4921D3BBBB0087222C /* ShareViewController.swift in Sources */,
- 6EAFF3AC21D1940900785973 /* AppDelegate.swift in Sources */,
- 6EAFF3E221D2E56D00785973 /* ListViewController.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 6EAFF3B821D1940A00785973 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
- MTL_FAST_MATH = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- };
- name = Debug;
- };
- 6EAFF3B921D1940A00785973 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- MTL_ENABLE_DEBUG_INFO = NO;
- MTL_FAST_MATH = YES;
- SDKROOT = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 6EAFF3BB21D1940A00785973 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_ENTITLEMENTS = "iCloud Example/iCloud Example.entitlements";
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = LBFBZP3Z4J;
- INFOPLIST_FILE = "iCloud Example/Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = "com.oskarirauta.iCloud-Example";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 6EAFF3BC21D1940A00785973 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CODE_SIGN_ENTITLEMENTS = "iCloud Example/iCloud Example.entitlements";
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = LBFBZP3Z4J;
- INFOPLIST_FILE = "iCloud Example/Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = "com.oskarirauta.iCloud-Example";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6EAFF3A321D1940900785973 /* Build configuration list for PBXProject "iCloud Example" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6EAFF3B821D1940A00785973 /* Debug */,
- 6EAFF3B921D1940A00785973 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 6EAFF3BA21D1940A00785973 /* Build configuration list for PBXNativeTarget "iCloud Example" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6EAFF3BB21D1940A00785973 /* Debug */,
- 6EAFF3BC21D1940A00785973 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 6EAFF3A021D1940900785973 /* Project object */;
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/AppDelegate.swift b/iCloudSync/iCloud Example/iCloud Example/AppDelegate.swift
deleted file mode 100644
index 228bee01..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/AppDelegate.swift
+++ /dev/null
@@ -1,54 +0,0 @@
-//
-// AppDelegate.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-import iCloudSync
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate {
-
- lazy var window: UIWindow? = {
- var _window: UIWindow = UIWindow(frame: UIScreen.main.bounds)
- _window.rootViewController = UINavigationController(rootViewController: ListViewController())
- _window.backgroundColor = UIColor.white
- _window.makeKeyAndVisible()
- return _window
- }()
-
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- // Override point for customization after application launch.
- let _ = self.window
-
- return true
- }
-
- func applicationWillResignActive(_ application: UIApplication) {
- // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
- }
-
- func applicationDidEnterBackground(_ application: UIApplication) {
- // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
- }
-
- func applicationWillEnterForeground(_ application: UIApplication) {
- // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
- }
-
- func applicationDidBecomeActive(_ application: UIApplication) {
- // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
- }
-
- func applicationWillTerminate(_ application: UIApplication) {
- // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
- }
-
-
-}
-
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon1024.png b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon1024.png
deleted file mode 100644
index fffe8cc0..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon1024.png and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon29x29.png b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon29x29.png
deleted file mode 100644
index 4fc6d24d..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon29x29.png and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 5a589397..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 97de2ee5..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon40x40.png b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon40x40.png
deleted file mode 100644
index 04a1adfd..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon40x40.png and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 83665d35..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 9047ea9d..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 850d2e81..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon76x76.png b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon76x76.png
deleted file mode 100644
index acc231d0..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/AppIcon76x76.png and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index c449b7a6..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 262b51b6..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/Contents.json b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index c343c99d..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "3x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "3x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "3x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "3x"
- },
- {
- "idiom" : "ipad",
- "size" : "20x20",
- "scale" : "1x"
- },
- {
- "idiom" : "ipad",
- "size" : "20x20",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "AppIcon29x29.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "AppIcon40x40.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "AppIcon76x76.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "[email protected]",
- "scale" : "2x"
- },
- {
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "AppIcon1024.png",
- "scale" : "1x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Banner.png b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Banner.png
deleted file mode 100644
index 5b669e4f..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/Banner.png and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/[email protected] b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/[email protected]
deleted file mode 100644
index c64fe8a8..00000000
Binary files a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Banner.imageset/[email protected] and /dev/null differ
diff --git a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Contents.json b/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Contents.json
deleted file mode 100644
index da4a164c..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/Assets.xcassets/Contents.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/iCloudSync/iCloud Example/iCloud Example/ConflictViewController.swift b/iCloudSync/iCloud Example/iCloud Example/ConflictViewController.swift
deleted file mode 100644
index 037eddf3..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/ConflictViewController.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// ConflictViewController.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-import iCloudSync
-
-class ConflictViewController: UITableViewController {
-
- var filename: String? = nil
- var versions: [NSFileVersion] = []
-
- override func viewDidLoad() {
- super.viewDidLoad()
- self.title = "Conflict Resolver"
- self.tableView = UITableView(frame: .zero, style: .grouped)
- self.tableView.register(FileCell.self, forCellReuseIdentifier: "fileCell")
- self.tableView.dataSource = self
- self.tableView.delegate = self
- }
-
- override func numberOfSections(in tableView: UITableView) -> Int {
- return 1
- }
-
- override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- guard let name: String = self.filename else { return 0 }
- self.versions = iCloud.shared.findUnresolvedConflictingVersionsOfFile(name) ?? []
- return self.versions.count
- }
-
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-
- let cell: FileCell = tableView.dequeueReusableCell(withIdentifier: "fileCell") as! FileCell
- let version: NSFileVersion = self.versions[indexPath.row]
- let filesize: NSNumber = iCloud.shared.fileSize(self.filename!) ?? NSNumber(value: 0)
- let updated: Date = iCloud.shared.fileModified(self.filename!) ?? Date(timeIntervalSinceReferenceDate: 0)
- cell.title = self.filename
- cell.detail = filesize.description + " bytes, updated: " + updated.description + "\n" + version.description
- return cell
- }
-
- override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
- iCloud.shared.resolveConflictForFile(self.filename!, with: self.versions[indexPath.row])
- iCloud.shared.updateFiles()
- self.navigationController?.popViewController(animated: true)
- }
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/DocumentViewController.swift b/iCloudSync/iCloud Example/iCloud Example/DocumentViewController.swift
deleted file mode 100644
index 64eb08a3..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/DocumentViewController.swift
+++ /dev/null
@@ -1,130 +0,0 @@
-//
-// DocumentViewController.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-import iCloudSync
-
-class DocumentViewController: UIViewController {
-
- lazy var textView: UITextView = {
- var _textView: UITextView = UITextView()
- _textView.translatesAutoresizingMaskIntoConstraints = false
- return _textView
- }()
-
- var filename: String? = nil
- var text: String! {
- get { return self.textView.text }
- set { self.textView.text = newValue }
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- self.title = "iCloud Document"
-
- self.view.addSubview(self.textView)
- self.textView.topAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.topAnchor).isActive = true
- self.textView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
- self.textView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
- self.textView.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor).isActive = true
-
- self.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .action, target: self, action: #selector(self.shareDocument(_:)))
- }
-
- override func viewWillAppear(_ animated: Bool) {
- super.viewWillAppear(animated)
-
- guard
- let filename: String = self.filename,
- !filename.isEmpty
- else {
- self.filename = self.generateFilename(with: "txt")
- self.title = self.filename
- return
- }
-
- self.title = self.filename
- }
-
- override func viewWillDisappear(_ animated: Bool) {
- super.viewWillDisappear(animated)
-
- guard let filedata: Data = (self.text.isEmpty ? "Empty file" : self.text)?.data(using: .utf8) else {
- NSLog("File saving cancelled. Cannot cast content data.")
- return
- }
-
- if self.title == "iCloud Document" ||
- self.filename == nil || (self.filename ?? "").isEmpty {
- self.filename = self.generateFilename(with: "txt")
- }
-
- let filename: String = self.filename!
-
- iCloud.shared.saveAndCloseDocument(filename, with: filedata, completion: {
- document, data, error in
-
- if let err: Error = error {
- NSLog("iCloud Document save error: " + err.localizedDescription)
- } else {
- NSLog("iCloud Document, " + document!.fileURL.lastPathComponent + ", saved with text: " + String(data: data!, encoding: .utf8)!)
- }
-
- })
-
- }
-
- func generateFilename(with extension: String) -> String {
- let formatter: DateFormatter = DateFormatter()
- formatter.dateFormat = "dd-MM-yyyy-hh-mm-ss"
- return formatter.string(from: Date()) + "." + `extension`
- }
-
- @objc func shareDocument(_ sender: Any) {
-
- guard let filedata: Data = (self.text.isEmpty ? "Empty file" : self.text)?.data(using: .utf8) else {
- NSLog("File saving cancelled. Cannot cast content data.")
- return
- }
-
- if self.title == "iCloud Document" ||
- self.filename == nil || (self.filename ?? "").isEmpty {
- self.filename = self.generateFilename(with: "txt")
- }
-
- let filename: String = self.filename!
-
- iCloud.shared.saveAndCloseDocument(filename, with: filedata, completion: {
- document, data, error in
-
- if let err: Error = error {
- NSLog("iCloud Document save error: " + err.localizedDescription)
- } else {
- NSLog("iCloud Document, " + document!.fileURL.lastPathComponent + ", saved with text: " + String(data: data!, encoding: .utf8)!)
-
- iCloud.shared.shareDocument(filename, completion: {
- sharedUrl, expirationDate, shareError in
-
- if let err: Error = shareError {
- NSLog("iCloud Document share error: " + err.localizedDescription)
- } else {
-
- NSLog("iCloud Document, " + filename + ", shared to public URL: " + sharedUrl!.absoluteString + " until expiration date: " + expirationDate!.description)
-
- let vc: ShareViewController = ShareViewController()
- vc.link = sharedUrl?.absoluteString
- vc.date = expirationDate
- self.present(vc, animated: true, completion: nil)
- }
- })
- }
- })
- }
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/FileCell.swift b/iCloudSync/iCloud Example/iCloud Example/FileCell.swift
deleted file mode 100644
index c2e9dc9f..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/FileCell.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// FileCell.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-
-class FileCell: UITableViewCell {
-
- var title: String? {
- get { return self.titleLabel.text }
- set { self.titleLabel.text = newValue }
- }
-
- var detail: String? {
- get { return self.detailLabel.text }
- set { self.detailLabel.text = newValue }
- }
-
- var titleLabel: UILabel = {
- var _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.font = UIFont.boldSystemFont(ofSize: 13.0)
- _label.textColor = UIColor.black
- _label.textAlignment = .left
- _label.allowsDefaultTighteningForTruncation = true
- _label.lineBreakMode = .byTruncatingTail
- _label.text = nil
- return _label
- }()
-
- var detailLabel: UILabel = {
- var _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.font = UIFont.systemFont(ofSize: 11.0)
- _label.textColor = UIColor.black
- _label.textAlignment = .left
- _label.allowsDefaultTighteningForTruncation = true
- _label.lineBreakMode = .byTruncatingTail
- _label.numberOfLines = 2
- _label.text = nil
- return _label
- }()
-
- override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
- super.init(style: style, reuseIdentifier: reuseIdentifier)
-
- self.contentView.addSubview(self.titleLabel)
- self.contentView.addSubview(self.detailLabel)
-
- self.titleLabel.topAnchor.constraint(equalTo: self.contentView.topAnchor, constant: 6.0).isActive = true
- self.titleLabel.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 6.0).isActive = true
- self.titleLabel.trailingAnchor.constraint(lessThanOrEqualTo: self.contentView.trailingAnchor, constant: -4.0).isActive = true
-
- self.detailLabel.topAnchor.constraint(equalTo: self.titleLabel.bottomAnchor, constant: 2.0).isActive = true
- self.detailLabel.leadingAnchor.constraint(equalTo: self.contentView.leadingAnchor, constant: 6.5).isActive = true
- self.detailLabel.trailingAnchor.constraint(lessThanOrEqualTo: self.contentView.trailingAnchor, constant: -4.0).isActive = true
- self.detailLabel.bottomAnchor.constraint(equalTo: self.contentView.bottomAnchor, constant: -4.0).isActive = true
- }
-
- required init?(coder aDecoder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/Info.plist b/iCloudSync/iCloud Example/iCloud Example/Info.plist
deleted file mode 100644
index 75a94e22..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/Info.plist
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>$(DEVELOPMENT_LANGUAGE)</string>
- <key>CFBundleDocumentTypes</key>
- <array>
- <dict>
- <key>CFBundleTypeIconFiles</key>
- <array/>
- <key>CFBundleTypeName</key>
- <string>Text file</string>
- <key>CFBundleTypeRole</key>
- <string>Viewer</string>
- <key>LSHandlerRank</key>
- <string>Owner</string>
- <key>LSItemContentTypes</key>
- <array>
- <string>com.oskarirauta.iCloud-Example.txt</string>
- <string>public.data</string>
- <string>public.plain-text</string>
- </array>
- </dict>
- </array>
- <key>CFBundleExecutable</key>
- <string>$(EXECUTABLE_NAME)</string>
- <key>CFBundleIdentifier</key>
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>$(PRODUCT_NAME)</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0.3</string>
- <key>CFBundleVersion</key>
- <string>2</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>LSSupportsOpeningDocumentsInPlace</key>
- <true/>
- <key>NSUbiquitousContainers</key>
- <dict>
- <key>iCloud.oskarirauta.iCloudExample</key>
- <dict>
- <key>NSUbiquitousContainerIsDocumentScopePublic</key>
- <true/>
- <key>NSUbiquitousContainerName</key>
- <string>iCloud Example</string>
- <key>NSUbiquitousContainerSupportedFolderLevels</key>
- <string>Any</string>
- </dict>
- </dict>
- <key>UILaunchStoryboardName</key>
- <string>LaunchScreen</string>
- <key>UIRequiredDeviceCapabilities</key>
- <array>
- <string>armv7</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UTExportedTypeDeclarations</key>
- <array>
- <dict>
- <key>UTTypeConformsTo</key>
- <array>
- <string>public.data</string>
- <string>public.plain-text</string>
- </array>
- <key>UTTypeDescription</key>
- <string>Text file</string>
- <key>UTTypeIconFiles</key>
- <array/>
- <key>UTTypeIdentifier</key>
- <string>com.oskarirauta.iCloud-Example.txt</string>
- <key>UTTypeTagSpecification</key>
- <dict>
- <key>public.filename-extension</key>
- <string>txt</string>
- <key>public.mime-type</key>
- <string>public.plain-text</string>
- </dict>
- </dict>
- </array>
-</dict>
-</plist>
diff --git a/iCloudSync/iCloud Example/iCloud Example/LaunchScreen.storyboard b/iCloudSync/iCloud Example/iCloud Example/LaunchScreen.storyboard
deleted file mode 100644
index 7acb6f6c..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/LaunchScreen.storyboard
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
- <dependencies>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
- <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
- </dependencies>
- <scenes>
- <!--View Controller-->
- <scene sceneID="EHf-IW-A2E">
- <objects>
- <viewController id="01J-lp-oVM" sceneMemberID="viewController">
- <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
- <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Copyright © 2018 Oskari Rauta. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
- <rect key="frame" x="0.0" y="626.5" width="375" height="20.5"/>
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
- <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- <nil key="highlightedColor"/>
- </label>
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="iCloud Example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
- <rect key="frame" x="0.0" y="202" width="375" height="43"/>
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
- <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- <nil key="highlightedColor"/>
- </label>
- </subviews>
- <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- <constraints>
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
- <constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
- <constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
- </constraints>
- <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
- </view>
- </viewController>
- <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
- </objects>
- <point key="canvasLocation" x="53" y="375"/>
- </scene>
- </scenes>
-</document>
diff --git a/iCloudSync/iCloud Example/iCloud Example/ListViewController.swift b/iCloudSync/iCloud Example/iCloud Example/ListViewController.swift
deleted file mode 100644
index eedd7b60..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/ListViewController.swift
+++ /dev/null
@@ -1,247 +0,0 @@
-//
-// ListViewController.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-import iCloudSync
-
-class ListViewController: UITableViewController, iCloudDelegate {
-
- var fileNameList: [String] = []
- var fileObjectList: [NSMetadataItem] = []
-
- var fileText: String = ""
- var fileTitle: String = ""
-
- var alert: UIAlertController? = nil
-
- var appIsRunningForFirstTime: Bool {
- get {
- if UserDefaults.standard.bool(forKey: "HasLaunchedOnce") {
- return false
- }
- UserDefaults.standard.set(true, forKey: "HasLaunchedOnce")
- UserDefaults.standard.synchronize()
- return true
- }
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- self.title = "iCloud files"
-
- // Setup iCloud
- iCloud.shared.verboseLogging = true // Enable detailed feedback
- iCloud.shared.setupiCloud() // This method must be called before performing any document operations
- iCloud.shared.delegate = self // Set this if you plan to use the delegate
-
- self.tableView = UITableView(frame: .zero, style: .grouped)
- self.tableView.register(FileCell.self, forCellReuseIdentifier: "fileCell")
- self.tableView.dataSource = self
- self.tableView.delegate = self
-
- // Display add button in the navigation bar for this view controller
- self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(self.addDocument(_:)))
-
- // Display an Edit button in the navigation bar for this view controller.
- self.navigationItem.rightBarButtonItem = self.editButtonItem
-
- // Create refresh control
- self.refreshControl = UIRefreshControl()
-
- self.refreshControl?.addTarget(self, action: #selector(self.refreshCloudList), for: UIControl.Event.valueChanged)
-
- // Subscribe to iCloud Ready Notifications
- NotificationCenter.default.addObserver(self, selector: #selector(self.refreshCloudListAfterSetup), name: NSNotification.Name(rawValue: "iCloud Ready"), object: nil)
- }
-
- override func viewWillAppear(_ animated: Bool) {
- super.viewWillAppear(animated)
-
- // Present Welcome Screen
- if self.appIsRunningForFirstTime || !iCloud.shared.cloudAvailable || UserDefaults.standard.bool(forKey: "userCloudPref") == false {
- self.showWelcome()
- }
-
- /* --- Force iCloud Update ---
- This is done automatically when changes are made, but we want to make sure the view is always updated when presented */
- iCloud.shared.updateFiles()
- }
-
- // MARK: - Table view data source
-
- override func numberOfSections(in tableView: UITableView) -> Int {
- return 1
- }
-
- override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return self.fileNameList.count
- }
-
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-
- let cell: FileCell = tableView.dequeueReusableCell(withIdentifier: "fileCell") as! FileCell
- let filename: String = fileNameList[indexPath.row]
- let filesize: NSNumber = iCloud.shared.fileSize(filename) ?? NSNumber(value: 0)
- let updated: Date = iCloud.shared.fileModified(filename) ?? Date(timeIntervalSinceReferenceDate: 0)
- var documentState: String = ""
- iCloud.shared.documentState(filename, completion: {
- state, desc, error in
- if error == nil, desc != nil { documentState = desc! }
- })
-
- cell.title = filename
- cell.detail = filesize.description + " bytes, updated: " + updated.description + "\n" + documentState
- cell.detailLabel.textColor = documentState.uppercased() == "DOCUMENT IS IN CONFLICT" ? UIColor.red : UIColor.black
-
- return cell
- }
-
- override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
-
- var fileText: String? = nil
- var fileTitle: String? = nil
-
- iCloud.shared.retrieveCloudDocument(self.fileNameList[indexPath.row], completion: {
- document, data, error in
-
- if error == nil {
- fileText = String(data: data!, encoding: .utf8)
- fileTitle = document!.fileURL.lastPathComponent
-
- iCloud.shared.documentState(fileTitle!, completion: {
- state, desc, err in
- if err != nil {
- NSLog("Error retrieveing document state: " + err!.localizedDescription);
- return
- } else if err == nil, state! == .inConflict {
- print("File is in a conflict..")
- return
- } else {
- let vc: DocumentViewController = DocumentViewController()
- vc.filename = fileTitle
- vc.text = fileText
- self.navigationController?.pushViewController(vc, animated: true)
- return
- }
- })
- } else if error != nil {
- NSLog("Error retrieving document: " + error!.localizedDescription)
- }
- })
- }
-
- override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
- return true
- }
-
- override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
-
- guard editingStyle == .delete else { return }
-
- iCloud.shared.deleteDocument(self.fileNameList[indexPath.row], completion: {
- error in
- if error != nil {
- NSLog("Error deleting document: " + error!.localizedDescription)
- } else {
- self.fileObjectList.remove(at: indexPath.row)
- self.fileNameList.remove(at: indexPath.row)
- tableView.deleteRows(at: [indexPath], with: .top)
- DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: {
- iCloud.shared.updateFiles()
- })
- }
- })
- }
-
- override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
- return UITableView.automaticDimension
- }
-
- func showWelcome() {
-
- if self.alert?.isBeingPresented ?? false {
- return
- } else {
- let vc: WelcomeViewController = WelcomeViewController()
- vc.modalPresentationStyle = .currentContext
- self.present(vc, animated: true, completion: nil)
- }
- }
-
- @objc func addDocument(_ sender: Any) {
- let vc: DocumentViewController = DocumentViewController()
- vc.filename = nil
- vc.text = "Document text"
- self.navigationController?.pushViewController(vc, animated: true)
- }
-
- @objc func refreshCloudList() {
- iCloud.shared.updateFiles()
- }
-
- @objc func refreshCloudListAfterSetup() {
- // Reclaim delegate and then update files
- iCloud.shared.delegate = self
- iCloud.shared.updateFiles()
- }
-
- // MARK: - iCloudSync delegate
-
- func iCloudDidFinishInitializing(with ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) {
- NSLog("Ubiquity container initialized. You may proceed to perform document operations.")
- }
-
- func iCloudAvailabilityDidChange(to isAvailable: Bool, token ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) {
-
- if !isAvailable {
-
- self.alert = UIAlertController(title: "iCloud unavailable", message: "iCloud is no longer available. Make sure that you are signed into a valid iCloud account.", preferredStyle: .alert)
-
- self.alert?.addAction(UIAlertAction(title: "OK", style: .default, handler: {
- _ in
- self.alert?.dismiss(animated: true, completion: nil)
- DispatchQueue.main.async {
- self.showWelcome()
- }
- }))
-
- self.present(self.alert!, animated: true, completion: nil)
- }
- }
-
- func iCloudFilesDidChange(_ files: [NSMetadataItem], with filenames: [String]) {
- // Get the query results
-
- guard filenames != self.fileNameList, files != self.fileObjectList else {
- if self.refreshControl?.isRefreshing ?? false {
- self.refreshControl?.endRefreshing()
- }
- return
- }
-
- if !filenames.isEmpty {
- NSLog("Files: " + filenames.joined(separator: ","))
- }
-
- self.fileNameList = filenames
- self.fileObjectList = files
-
- if self.refreshControl?.isRefreshing ?? false {
- self.refreshControl?.endRefreshing()
- }
- if self.tableView.contentOffset.y == -self.tableView.adjustedContentInset.top {
- self.tableView.contentOffset = CGPoint(x: 0, y: self.tableView.contentOffset.y + 1.0)
- }
- self.tableView.setContentOffset(CGPoint(x: 0, y:-self.tableView.adjustedContentInset.top), animated: true)
- self.tableView.reloadData()
- }
-
-
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/ShareViewController.swift b/iCloudSync/iCloud Example/iCloud Example/ShareViewController.swift
deleted file mode 100644
index fef60028..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/ShareViewController.swift
+++ /dev/null
@@ -1,154 +0,0 @@
-//
-// ShareViewController.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-
-class ShareViewController: UIViewController {
-
- var link: String? {
- get { return self.linkLabel.text }
- set { self.linkLabel.text = newValue }
- }
-
- var date: Date? = nil {
- didSet {
- guard let date: Date = self.date else {
- self.dateLabel.text = "---"
- return
- }
- let formatter: DateFormatter = DateFormatter()
- formatter.dateFormat = "E d MMM YYYY"
- self.dateLabel.text = "Document available until\n" + formatter.string(from: date)
- }
- }
-
- lazy var innerView: UIView = {
- let _view: UIView = UIView()
- _view.translatesAutoresizingMaskIntoConstraints = false
- _view.backgroundColor = UIColor(red: 0, green: 164.0 / 255.0, blue: 1.0, alpha: 1.0)
- return _view
- }()
-
- lazy var titleLabel: UILabel = {
- let _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.numberOfLines = 2
- _label.textAlignment = .center
- _label.font = UIFont(name: "HelveticaNeue-Light", size: 19.0)
- _label.textColor = UIColor.white
- _label.allowsDefaultTighteningForTruncation = false
- _label.lineBreakMode = .byTruncatingTail
- _label.text = "Document successfully\npublished to iCloud"
- return _label
- }()
-
- lazy var linkLabel: UILabel = {
- var _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.numberOfLines = 2
- _label.textAlignment = .center
- _label.font = UIFont.boldSystemFont(ofSize: 10.5)
- _label.textColor = UIColor(red: 240.0/255.0, green: 240.0/255.0, blue: 240.0/255.0, alpha: 1.0)
- _label.allowsDefaultTighteningForTruncation = true
- _label.minimumScaleFactor = 0.4
- _label.adjustsFontSizeToFitWidth = true
- _label.lineBreakMode = .byTruncatingTail
- _label.text = "https://www.icloud.com/download/documents/?p=01&t=c1BADRReSHO0CQB-PkMY5MnC0-SsYP6dS0lbeII"
- return _label
- }()
-
- lazy var dateLabel: UILabel = {
- let _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.numberOfLines = 2
- _label.textAlignment = .center
- _label.font = UIFont.systemFont(ofSize: 13.0)
- _label.textColor = UIColor.white
- _label.allowsDefaultTighteningForTruncation = false
- _label.lineBreakMode = .byTruncatingTail
- _label.text = "Document available until\nDecember 20, 2013"
- return _label
- }()
-
- lazy var shareButton: UIButton = {
- let _button: UIButton = UIButton()
- _button.translatesAutoresizingMaskIntoConstraints = false
- _button.titleLabel?.font = UIFont.systemFont(ofSize: 15.0)
- _button.setTitleColor(UIColor.white, for: UIControl.State())
- _button.backgroundColor = UIColor(red: 51.0/255.0, green: 74.0/255.0, blue: 109.0/255.0, alpha: 1.0)
- _button.titleLabel?.textAlignment = .center
- _button.setTitle("Share Link", for: UIControl.State())
- _button.addTarget(self, action: #selector(self.shareAction(_:)), for: .touchUpInside)
- return _button
- }()
-
- lazy var dismissButton: UIButton = {
- let _button: UIButton = UIButton()
- _button.translatesAutoresizingMaskIntoConstraints = false
- _button.titleLabel?.font = UIFont.systemFont(ofSize: 15.0)
- _button.setTitleColor(UIColor.white, for: UIControl.State())
- _button.backgroundColor = UIColor(red: 51.0/255.0, green: 74.0/255.0, blue: 109.0/255.0, alpha: 1.0)
- _button.titleLabel?.textAlignment = .center
- _button.setTitle("X", for: UIControl.State())
- _button.addTarget(self, action: #selector(self.dismissAction(_:)), for: .touchUpInside)
- return _button
- }()
-
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- self.modalPresentationStyle = .overCurrentContext
- self.view.backgroundColor = UIColor(red: 0.07, green: 0.07, blue: 0.07, alpha: 0.9)
-
- self.view.addSubview(self.innerView)
-
- self.innerView.addSubview(self.titleLabel)
- self.innerView.addSubview(self.dateLabel)
- self.innerView.addSubview(self.linkLabel)
-
- self.innerView.addSubview(self.dismissButton)
- self.innerView.addSubview(self.shareButton)
-
- self.innerView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
- self.innerView.centerYAnchor.constraint(equalTo: self.view.centerYAnchor, constant: -40.0).isActive = true
-
- self.innerView.heightAnchor.constraint(equalToConstant: 250.0).isActive = true
- self.innerView.widthAnchor.constraint(equalToConstant: 230.0).isActive = true
-
- self.titleLabel.leadingAnchor.constraint(equalTo: self.innerView.leadingAnchor, constant: 4.0).isActive = true
- self.titleLabel.trailingAnchor.constraint(equalTo: self.innerView.trailingAnchor, constant: -4.0).isActive = true
- self.titleLabel.topAnchor.constraint(equalTo: self.innerView.topAnchor, constant: 40.0).isActive = true
-
- self.dateLabel.leadingAnchor.constraint(equalTo: self.innerView.leadingAnchor, constant: 4.0).isActive = true
- self.dateLabel.trailingAnchor.constraint(equalTo: self.innerView.trailingAnchor, constant: -4.0).isActive = true
- self.dateLabel.topAnchor.constraint(equalTo: self.innerView.topAnchor, constant: 100.0).isActive = true
-
- self.linkLabel.leadingAnchor.constraint(equalTo: self.innerView.leadingAnchor, constant: 5.0).isActive = true
- self.linkLabel.trailingAnchor.constraint(equalTo: self.innerView.trailingAnchor, constant: -5.0).isActive = true
- self.linkLabel.bottomAnchor.constraint(equalTo: self.innerView.bottomAnchor, constant: -16.0).isActive = true
-
- self.shareButton.leadingAnchor.constraint(equalTo: self.innerView.leadingAnchor).isActive = true
- self.shareButton.trailingAnchor.constraint(equalTo: self.innerView.trailingAnchor).isActive = true
- self.shareButton.bottomAnchor.constraint(equalTo: self.linkLabel.topAnchor, constant: -12.0).isActive = true
-
- self.dismissButton.leadingAnchor.constraint(equalTo: self.innerView.leadingAnchor).isActive = true
- self.dismissButton.topAnchor.constraint(equalTo: self.innerView.topAnchor).isActive = true
- }
-
- @objc func shareAction(_ sender: Any) {
- if let link: String = self.link {
- self.present(UIActivityViewController(activityItems: [link], applicationActivities: nil), animated: true, completion: nil)
- }
- }
-
- @objc func dismissAction(_ sender: Any) {
- self.dismiss(animated: true, completion: nil)
- }
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/WelcomeViewController.swift b/iCloudSync/iCloud Example/iCloud Example/WelcomeViewController.swift
deleted file mode 100644
index fc10f179..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/WelcomeViewController.swift
+++ /dev/null
@@ -1,177 +0,0 @@
-//
-// WelcomeViewController.swift
-// iCloud Example
-//
-// Created by Oskari Rauta on 26/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import UIKit
-import iCloudSync
-
-class WelcomeViewController: UIViewController, iCloudDelegate {
-
- lazy var image: UIImageView = {
- var _image: UIImageView = UIImageView(image: UIImage(named: "Banner"))
- _image.translatesAutoresizingMaskIntoConstraints = false
- return _image
- }()
-
- lazy var header: UILabel = {
- var _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.font = UIFont.boldSystemFont(ofSize: 14.0)
- _label.textColor = UIColor.darkText
- _label.textAlignment = .center
- _label.text = "Welcome to iCloud"
- return _label
- }()
-
- lazy var text: UILabel = {
- var _label: UILabel = UILabel()
- _label.translatesAutoresizingMaskIntoConstraints = false
- _label.font = UIFont.systemFont(ofSize: 12.0)
- _label.textColor = UIColor.darkText
- _label.textAlignment = .left
- _label.numberOfLines = 0
- _label.text = """
-This iCloud demo app demonstrates how to use many features of iCloud with the iCloudSync project available on GitHub.
-
-To properly use this project please do the following:
-• Make sure this demo app's entitlements are valid
-• Sign into an iCloud account on the current device
-• Turn ON iCloud in the Settings app
-"""
- return _label
- }()
-
- lazy var startButton: UIButton = {
- var _button: UIButton = UIButton()
- _button.translatesAutoresizingMaskIntoConstraints = false
- _button.setTitleColor(UIColor.white, for: UIControl.State())
- _button.backgroundColor = UIColor(red: 0, green: 164.0 / 255.0, blue: 1.0, alpha: 1.0)
- _button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 15.0)
- _button.setTitle("Start Using iCloud", for: UIControl.State())
- _button.isHidden = true
- _button.addTarget(self, action: #selector(self.startCloud(_:)), for: .touchUpInside)
- return _button
- }()
-
- lazy var setupButton: UIButton = {
- var _button: UIButton = UIButton()
- _button.translatesAutoresizingMaskIntoConstraints = false
- _button.setTitleColor(UIColor.white, for: UIControl.State())
- _button.backgroundColor = UIColor(red: 0, green: 164.0 / 255.0, blue: 1.0, alpha: 1.0)
- _button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 15.0)
- _button.setTitle("Setup iCloud Before Continuing", for: UIControl.State())
- _button.isHidden = true
- _button.addTarget(self, action: #selector(self.setupCloud(_:)), for: .touchUpInside)
- return _button
- }()
-
- override func viewDidLoad() {
- super.viewDidLoad()
- self.title = "Welcome"
- self.view.backgroundColor = UIColor.white
-
- self.view.addSubview(self.image)
- self.view.addSubview(self.header)
- self.view.addSubview(self.text)
- self.view.addSubview(self.setupButton)
- self.view.addSubview(self.startButton)
-
- self.image.topAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.topAnchor, constant: 12.0).isActive = true
- self.image.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
- self.image.leadingAnchor.constraint(greaterThanOrEqualTo: self.view.leadingAnchor, constant: 25.0).isActive = true
- self.image.trailingAnchor.constraint(lessThanOrEqualTo: self.view.trailingAnchor, constant: -25.0).isActive = true
- self.image.heightAnchor.constraint(lessThanOrEqualToConstant: 180.0).isActive = true
-
- self.header.topAnchor.constraint(equalTo: self.image.bottomAnchor, constant: 2.0).isActive = true
- self.header.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
-
- self.text.topAnchor.constraint(equalTo: self.header.bottomAnchor, constant: 4.0).isActive = true
- self.text.leadingAnchor.constraint(equalTo: self.view.leadingAnchor, constant: 6.0).isActive = true
- self.text.trailingAnchor.constraint(equalTo: self.view.trailingAnchor, constant: -6.0).isActive = true
-
-
- self.startButton.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
- self.startButton.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
- self.startButton.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor, constant: -30.0).isActive = true
-
- self.setupButton.leadingAnchor.constraint(equalTo: self.view.leadingAnchor).isActive = true
- self.setupButton.trailingAnchor.constraint(equalTo: self.view.trailingAnchor).isActive = true
- self.setupButton.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor, constant: -30.0).isActive = true
-
- iCloud.shared.delegate = self
- }
-
- override func viewWillAppear(_ animated: Bool) {
- super.viewWillAppear(animated)
- self.setupButton.isHidden = true
- self.startButton.isHidden = true
-
- if iCloud.shared.cloudAvailable && UserDefaults.standard.bool(forKey: "userCloudPref") {
- self.startButton.isHidden = false
- } else {
- self.setupButton.isHidden = false
- }
- }
-
- @objc func startCloud(_ sender: Any) {
-
- self.dismiss(animated: true, completion: {
- NotificationCenter.default.post(name: NSNotification.Name(rawValue: "iCloud Ready"), object: self)
- })
-
- }
-
- @objc func setupCloud(_ sender: Any) {
- if UserDefaults.standard.bool(forKey: "userCloudPref") == false {
- let alert: UIAlertController = UIAlertController(title: "iCloud Disabled", message: "You have disabled iCloud for this app. Would you like to turn it on again?", preferredStyle: .alert)
-
- alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
-
- alert.addAction(UIAlertAction(title: "Turn on", style: .default, handler: {
- _ in
- UserDefaults.standard.set(true, forKey: "userCloudPref")
- UserDefaults.standard.synchronize()
-
- if iCloud.shared.cloudAvailable, UserDefaults.standard.bool(forKey: "userCloudPref") == true {
- UIView.animate(withDuration: 0.25, animations: {
- self.startButton.isHidden = false
- self.setupButton.isHidden = true
- })
- } else {
- self.setupButton.isHidden = false
- self.startButton.isHidden = true
- }
- }))
-
- self.present(alert, animated: true, completion: nil)
-
- } else {
-
- let alert: UIAlertController = UIAlertController(title: "Setup iCloud", message: "iCloud is not available. Sign into iCloud account on this device and check that app has valid entitlements.", preferredStyle: .alert)
-
- alert.addAction(UIAlertAction(title: "OK", style: .cancel, handler: nil))
-
- self.present(alert, animated: true, completion: nil)
- }
- }
-
- func iCloudAvailabilityDidChange(to isAvailable: Bool, token ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) {
-
- if isAvailable, UserDefaults.standard.bool(forKey: "userCloudPref") == true {
- UIView.animate(withDuration: 0.25, animations: {
- self.startButton.isHidden = false
- self.setupButton.isHidden = true
- })
- } else {
- UIView.animate(withDuration: 0.25, animations: {
- self.startButton.isHidden = true
- self.setupButton.isHidden = false
- })
- }
- }
-
-}
diff --git a/iCloudSync/iCloud Example/iCloud Example/iCloud Example.entitlements b/iCloudSync/iCloud Example/iCloud Example/iCloud Example.entitlements
deleted file mode 100644
index 7e2a520d..00000000
--- a/iCloudSync/iCloud Example/iCloud Example/iCloud Example.entitlements
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>com.apple.developer.icloud-container-identifiers</key>
- <array>
- <string>iCloud.oskarirauta.iCloudExample</string>
- </array>
- <key>com.apple.developer.icloud-services</key>
- <array>
- <string>CloudDocuments</string>
- </array>
- <key>com.apple.developer.ubiquity-container-identifiers</key>
- <array>
- <string>iCloud.oskarirauta.iCloudExample</string>
- </array>
- <key>com.apple.developer.ubiquity-kvstore-identifier</key>
- <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
-</dict>
-</plist>
diff --git a/iCloudSync/iCloudSync.podspec b/iCloudSync/iCloudSync.podspec
deleted file mode 100644
index ad8ee5d7..00000000
--- a/iCloudSync/iCloudSync.podspec
+++ /dev/null
@@ -1,31 +0,0 @@
-Pod::Spec.new do |s|
- s.name = 'iCloudSync'
- s.version = '8.0.21'
- s.license = { :type => 'MIT' }
- s.summary = 'Sync and Manage iCloud Documents. A fork, complete rewrite, of iCloud Document Sync written in pure Swift.'
-
- s.description = <<-DESC
-iCloudSync is a fork of iCloud Document Sync Framework by iRare Media. Original
-framework was done under MIT license, so this one follows MIT licensing.
-
-iCloudSync makes it incredibly simple to integrate iCloud document storage
-APIs into iOS applications. This is how iCloud document-storage and
-management should've been out of the box from Apple. Integrate iCloud
-into iOS Swift document projects with one-line code methods.
-Sync, upload, manage, and remove documents to and from iCloud with
-only a few lines of code (compared to the hundreds of lines and hours
-that it usually takes). Get iCloud up and running in your iOS app in
-only a few minutes.
- DESC
-
- s.homepage = 'https://github.com/oskarirauta/iCloudSync'
- s.author = { 'Oskari Rauta' => '[email protected]' }
- s.source = { :git => 'https://github.com/oskarirauta/iCloudSync.git', :tag => s.version.to_s }
-
- s.swift_version = '5.0'
- s.ios.deployment_target = '12.1'
- s.source_files = [
- 'iCloudSync/*.swift'
- ]
-
-end
diff --git a/iCloudSync/iCloudSync.xcodeproj/project.pbxproj b/iCloudSync/iCloudSync.xcodeproj/project.pbxproj
deleted file mode 100644
index 623a646f..00000000
--- a/iCloudSync/iCloudSync.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,366 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 50;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6EAFF39121D18E1B00785973 /* iCloudSync.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EAFF38F21D18E1B00785973 /* iCloudSync.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 6EAFF39A21D18EA000785973 /* iCloud.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF39921D18EA000785973 /* iCloud.swift */; };
- 6EAFF39C21D1905100785973 /* iCloudDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF39B21D1905100785973 /* iCloudDelegate.swift */; };
- 6EAFF39E21D1926700785973 /* iCloudCommon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF39D21D1926700785973 /* iCloudCommon.swift */; };
- 6EAFF3C921D1BA5D00785973 /* iCloudDocument.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3C821D1BA5D00785973 /* iCloudDocument.swift */; };
- 6EAFF3CD21D24E6400785973 /* iCloud+notifications.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3CC21D24E6400785973 /* iCloud+notifications.swift */; };
- 6EAFF3CF21D25DFE00785973 /* iCloudDocumentDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EAFF3CE21D25DFE00785973 /* iCloudDocumentDelegate.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 6EAFF38C21D18E1B00785973 /* iCloudSync.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = iCloudSync.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 6EAFF38F21D18E1B00785973 /* iCloudSync.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = iCloudSync.h; sourceTree = "<group>"; };
- 6EAFF39021D18E1B00785973 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
- 6EAFF39921D18EA000785973 /* iCloud.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloud.swift; sourceTree = "<group>"; };
- 6EAFF39B21D1905100785973 /* iCloudDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudDelegate.swift; sourceTree = "<group>"; };
- 6EAFF39D21D1926700785973 /* iCloudCommon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudCommon.swift; sourceTree = "<group>"; };
- 6EAFF3C821D1BA5D00785973 /* iCloudDocument.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudDocument.swift; sourceTree = "<group>"; };
- 6EAFF3CC21D24E6400785973 /* iCloud+notifications.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "iCloud+notifications.swift"; sourceTree = "<group>"; };
- 6EAFF3CE21D25DFE00785973 /* iCloudDocumentDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iCloudDocumentDelegate.swift; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 6EAFF38921D18E1B00785973 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 6EAFF38221D18E1B00785973 = {
- isa = PBXGroup;
- children = (
- 6EAFF38E21D18E1B00785973 /* iCloudSync */,
- 6EAFF38D21D18E1B00785973 /* Products */,
- );
- sourceTree = "<group>";
- };
- 6EAFF38D21D18E1B00785973 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6EAFF38C21D18E1B00785973 /* iCloudSync.framework */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6EAFF38E21D18E1B00785973 /* iCloudSync */ = {
- isa = PBXGroup;
- children = (
- 6EAFF39D21D1926700785973 /* iCloudCommon.swift */,
- 6EAFF39B21D1905100785973 /* iCloudDelegate.swift */,
- 6EAFF3CE21D25DFE00785973 /* iCloudDocumentDelegate.swift */,
- 6EAFF39921D18EA000785973 /* iCloud.swift */,
- 6EAFF3CC21D24E6400785973 /* iCloud+notifications.swift */,
- 6EAFF3C821D1BA5D00785973 /* iCloudDocument.swift */,
- 6EAFF38F21D18E1B00785973 /* iCloudSync.h */,
- 6EAFF39021D18E1B00785973 /* Info.plist */,
- );
- path = iCloudSync;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXHeadersBuildPhase section */
- 6EAFF38721D18E1B00785973 /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6EAFF39121D18E1B00785973 /* iCloudSync.h in Headers */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXHeadersBuildPhase section */
-
-/* Begin PBXNativeTarget section */
- 6EAFF38B21D18E1B00785973 /* iCloudSync */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6EAFF39421D18E1B00785973 /* Build configuration list for PBXNativeTarget "iCloudSync" */;
- buildPhases = (
- 6EAFF38721D18E1B00785973 /* Headers */,
- 6EAFF38821D18E1B00785973 /* Sources */,
- 6EAFF38921D18E1B00785973 /* Frameworks */,
- 6EAFF38A21D18E1B00785973 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = iCloudSync;
- productName = iCloud;
- productReference = 6EAFF38C21D18E1B00785973 /* iCloudSync.framework */;
- productType = "com.apple.product-type.framework";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 6EAFF38321D18E1B00785973 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1010;
- ORGANIZATIONNAME = "Oskari Rauta";
- TargetAttributes = {
- 6EAFF38B21D18E1B00785973 = {
- CreatedOnToolsVersion = 10.1;
- LastSwiftMigration = 1020;
- };
- };
- };
- buildConfigurationList = 6EAFF38621D18E1B00785973 /* Build configuration list for PBXProject "iCloudSync" */;
- compatibilityVersion = "Xcode 9.3";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 6EAFF38221D18E1B00785973;
- productRefGroup = 6EAFF38D21D18E1B00785973 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 6EAFF38B21D18E1B00785973 /* iCloudSync */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 6EAFF38A21D18E1B00785973 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 6EAFF38821D18E1B00785973 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6EAFF39C21D1905100785973 /* iCloudDelegate.swift in Sources */,
- 6EAFF39E21D1926700785973 /* iCloudCommon.swift in Sources */,
- 6EAFF3CD21D24E6400785973 /* iCloud+notifications.swift in Sources */,
- 6EAFF3C921D1BA5D00785973 /* iCloudDocument.swift in Sources */,
- 6EAFF39A21D18EA000785973 /* iCloud.swift in Sources */,
- 6EAFF3CF21D25DFE00785973 /* iCloudDocumentDelegate.swift in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 6EAFF39221D18E1B00785973 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 1;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
- MTL_FAST_MATH = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Debug;
- };
- 6EAFF39321D18E1B00785973 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_ENABLE_OBJC_WEAK = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 1;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu11;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- MTL_ENABLE_DEBUG_INFO = NO;
- MTL_FAST_MATH = YES;
- SDKROOT = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_OPTIMIZATION_LEVEL = "-O";
- VALIDATE_PRODUCT = YES;
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Release;
- };
- 6EAFF39521D18E1B00785973 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_IDENTITY = "";
- CODE_SIGN_STYLE = Automatic;
- DEFINES_MODULE = YES;
- DEVELOPMENT_TEAM = LBFBZP3Z4J;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- INFOPLIST_FILE = "$(SRCROOT)/iCloudSync/Info.plist";
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.oskarirauta.iCloudSync;
- PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
- SKIP_INSTALL = YES;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 6EAFF39621D18E1B00785973 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_IDENTITY = "";
- CODE_SIGN_STYLE = Automatic;
- DEFINES_MODULE = YES;
- DEVELOPMENT_TEAM = LBFBZP3Z4J;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- INFOPLIST_FILE = "$(SRCROOT)/iCloudSync/Info.plist";
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 12.1;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.oskarirauta.iCloudSync;
- PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
- SKIP_INSTALL = YES;
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6EAFF38621D18E1B00785973 /* Build configuration list for PBXProject "iCloudSync" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6EAFF39221D18E1B00785973 /* Debug */,
- 6EAFF39321D18E1B00785973 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 6EAFF39421D18E1B00785973 /* Build configuration list for PBXNativeTarget "iCloudSync" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6EAFF39521D18E1B00785973 /* Debug */,
- 6EAFF39621D18E1B00785973 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 6EAFF38321D18E1B00785973 /* Project object */;
-}
diff --git a/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 919434a6..00000000
--- a/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "self:">
- </FileRef>
-</Workspace>
diff --git a/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/iCloudSync/iCloudSync.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IDEDidComputeMac32BitWarning</key>
- <true/>
-</dict>
-</plist>
diff --git a/iCloudSync/iCloudSync.xcworkspace/contents.xcworkspacedata b/iCloudSync/iCloudSync.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 9b8a2179..00000000
--- a/iCloudSync/iCloudSync.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "group:iCloud Example/iCloud Example.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:iCloudSync.xcodeproj">
- </FileRef>
-</Workspace>
diff --git a/iCloudSync/iCloudSync.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/iCloudSync/iCloudSync.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d98100..00000000
--- a/iCloudSync/iCloudSync.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IDEDidComputeMac32BitWarning</key>
- <true/>
-</dict>
-</plist>
diff --git a/iCloudSync/iCloudSync/Info.plist b/iCloudSync/iCloudSync/Info.plist
deleted file mode 100644
index 9e96d96e..00000000
--- a/iCloudSync/iCloudSync/Info.plist
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>$(DEVELOPMENT_LANGUAGE)</string>
- <key>CFBundleExecutable</key>
- <string>$(EXECUTABLE_NAME)</string>
- <key>CFBundleIdentifier</key>
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>$(PRODUCT_NAME)</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleShortVersionString</key>
- <string>8.0.21</string>
- <key>CFBundleVersion</key>
- <string>$(CURRENT_PROJECT_VERSION)</string>
-</dict>
-</plist>
diff --git a/iCloudSync/iCloudSync/iCloud+notifications.swift b/iCloudSync/iCloudSync/iCloud+notifications.swift
deleted file mode 100644
index 7a2018f8..00000000
--- a/iCloudSync/iCloudSync/iCloud+notifications.swift
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// iCloud+notifications.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-extension iCloud {
-
- @objc open func startUpdate(_ notification: Notification) {
- // Log file update
- if self.verboseLogging { NSLog("[iCloud] Beginning file update with NSMetadataQuery") }
-
- // Notify delegate of the results
- DispatchQueue.main.async {
- self.delegate?.iCloudFileUpdateDidBegin()
- }
- }
-
- @objc open func receivedUpdate(_ notification: Notification) {
- // Log file update
- if self.verboseLogging { NSLog("[iCloud] An update has been pushed from iCloud with NSMetadataQuery") }
-
- // Get the updated files
- self.updateFiles()
- }
-
- @objc open func endUpdate(_ nofication: Notification) {
- // Get the updated files
- self.updateFiles()
-
- // Notify the delegate of the results on the main thread
- DispatchQueue.main.async { self.delegate?.iCloudFileUpdateDidEnd() }
-
- if self.verboseLogging { NSLog("[iCloud] Finished file update with NSMetadataQuery") }
- }
-
-}
diff --git a/iCloudSync/iCloudSync/iCloud.swift b/iCloudSync/iCloudSync/iCloud.swift
deleted file mode 100644
index 1e4b6b30..00000000
--- a/iCloudSync/iCloudSync/iCloud.swift
+++ /dev/null
@@ -1,1755 +0,0 @@
-//
-// iCloud.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-open class iCloud: NSObject {
-
- static public private(set) var DOCUMENT_DIRECTORY: String = "Documents"
-
- /**
- iCloud shared instance object
-
- - Returns: The shared instance of iCloud
- */
- static public internal(set) var `shared`: iCloud = iCloud()
-
- /**
- iCloud Delegate helps call methods when document processes begin or end
- */
- open var delegate: (NSObject & iCloudDelegate)? = nil
-
- /**
- The current NSMetadataQuery object
- */
- open internal(set) var query: NSMetadataQuery = NSMetadataQuery()
-
- /**
- File extension that queries are limited to, or "*"
- */
- open internal(set) var fileExtension: String = "*"
-
- /**
- A list of iCloud files from the previous query
- */
- open internal(set) var previousQueryResults: [UbiquitousMetaDataItem] = []
-
- /**
- Enable verbose logging for detailed feedback in the log. Turning this off only prints crucial log notes such as errors.
- */
- open var verboseLogging: Bool = false
-
- /**
- Enable verbose availability logging for repeated feedback about iCloud availability in the log. Turning this off will prevent availability-related messages from being printed in the log. This property does not relate to the verboseLogging property.
-
- - Returns: a boolean value.
- */
- open var verboseAvailabilityLogging: Bool = false
-
- lazy open internal(set) var fileManager: FileManager = FileManager.default
- lazy open internal(set) var notificationCenter: NotificationCenter = NotificationCenter.default
-
- /**
- Return application's ubiquitous root URL
-
- - Returns: URL with the app's root iCloud Ubiquitous URL. May return nil if iCloud is not properly setup or available.
- */
- open internal(set) var ubiquityContainer: URL? = nil
-
- deinit {
- self.notificationCenter.removeObserver(self)
- }
-
- /**
- Check if iCloud files are being updated right now
-
- - Returns: true if file updating is in progress at the moment.
- */
- open internal(set) var isUpdatingFiles: Bool = false
-
- /**
- Check if iCloud files should be updated.
-
- More than one file updating shouldn't be ongoing, so there's a queue system in place.
- This returns true when file updating is requested and false when updating has started.
- If update is requested during update, this get's set to true again, and after update
- has finished, it will restart updating.
-
- - Returns: true if file updating is requested and in queue.
- */
- open internal(set) var shouldUpdateFiles: Bool = false
-
- /**
- Setup iCloud Document Sync and begin the initial document syncing process.
-
- You \b must call this method before using iCloud Document Sync to avoid potential issues with syncing. This setup process ensures that all variables are initialized. A preliminary file sync will be performed when this method is called.
-
- - Parameter containerID: The fully-qualified container identifier for an iCloud container directory. The string you specify must not contain wildcards and must be of the form <TEAMID>.<CONTAINER>, where <TEAMID> is your development team ID and <CONTAINER> is the bundle identifier of the container you want to access. The container identifiers for your app must be declared in the com.apple.developer.ubiquity-container-identifiers array of the .entitlements property list file in your Xcode project. If you specify nil for this parameter, this method uses the first container listed in the com.apple.developer.ubiquity-container-identifiers entitlement array.
- */
- open func setupiCloud(_ containerID: String? = nil) {
-
- if self.verboseLogging { NSLog("[iCloud] Initializing Ubiquity Container") }
-
- self.ubiquityContainer = self.fileManager.url(forUbiquityContainerIdentifier: containerID)
-
- guard
- self.ubiquityContainer != nil,
- let token: UbiquityIdentityToken = self.fileManager.ubiquityIdentityToken
- else {
-
- NSLog("[iCloud] The system could not retrieve a valid iCloud container URL. iCloud is not available. iCloud may be unavailable for a number of reasons:\n• The device has not yet been configured with an iCloud account, or the Documents & Data option is disabled\n• Your app, does not have properly configured entitlements\n• Your app, has a provisioning profile which does not support iCloud.\nGo to http://bit.ly/18HkxPp for more information on setting up iCloud")
-
- DispatchQueue.main.async { self.delegate?.iCloudAvailabilityDidChange(to: false, token: nil, with: self.ubiquityContainer) }
-
- return
- }
-
- let _ = self.cloudDocumentsURL
-
- DispatchQueue.global().async {
-
- // Log document enumeration
- if self.verboseLogging { NSLog("[iCloud] Initializing Document Enumeration") }
- self.enumerateCloudDocuments()
-
- self.notificationCenter.addObserver(self, selector: #selector(getter: self.cloudAvailable), name: NSNotification.Name.NSUbiquityIdentityDidChange, object: nil)
-
- DispatchQueue.main.async { self.delegate?.iCloudDidFinishInitializing(with: token, with: self.ubiquityContainer) }
-
- // Log the setup
- NSLog("[iCloud] Ubiquity Container Created and Ready")
- }
-
- // Log the setup
- NSLog("[iCloud] Initialized")
- }
-
- open func enumerateCloudDocuments() {
-
- // Log document enumeration
- if self.verboseLogging { NSLog("[iCloud] Creating metadata query and notifications") }
-
- // Setup iCloud Metadata query and request file extension limitation from delegate
- self.query.searchScopes = [ NSMetadataQueryUbiquitousDocumentsScope ]
-
- if
- let _fileExtensions: [String] = self.delegate?.iCloudQueryLimitedToFileExtension,
- !_fileExtensions.isEmpty {
- self.fileExtension = _fileExtensions.joined(separator: ",")
- // Log file extension
- NSLog("[iCloud] Document query filter has been set to IN { " + self.fileExtension + " }")
- self.query.predicate = NSPredicate(format: "(%K.pathExtension IN { " + _fileExtensions.map { "'" + $0 + "'" }.joined(separator: ",") + " })", NSMetadataItemFSNameKey)
-
- } else {
- self.fileExtension = "*"
- self.query.predicate = NSPredicate(format: "(%K.pathExtension LIKE '" + self.fileExtension + "')", NSMetadataItemFSNameKey)
- }
-
- // Setup iCloud Metadata query sorting order
- self.query.sortDescriptors = [ NSSortDescriptor(key: NSMetadataItemFSNameKey, ascending: false) ]
-
- // Notify the responder that an update has begun
- self.notificationCenter.addObserver(self, selector: #selector(self.startUpdate(_:)), name: NSNotification.Name.NSMetadataQueryDidStartGathering, object: self.query)
-
- // Notify the responder that an update has been pushed
- self.notificationCenter.addObserver(self, selector: #selector(self.receivedUpdate(_:)), name: NSNotification.Name.NSMetadataQueryDidUpdate, object: self.query)
-
- // Notify the responder that the update has completed
- self.notificationCenter.addObserver(self, selector: #selector(self.endUpdate(_:)), name: NSNotification.Name.NSMetadataQueryDidFinishGathering, object: self.query)
-
- // Start query
- DispatchQueue.main.async {
- if !self.query.start() {
- NSLog("[iCloud] Failed to start query.")
- } else if self.verboseLogging {
- NSLog("[iCloud] Query initialized successfully")
- }
- }
- }
-
- /* Checking for iCloud. */
-
- /**
- Check whether or not iCloud is available and that it can be accessed.
-
- You should always check if iCloud is available before performing any iCloud operations (every method checks to make sure iCloud is available before continuing). Additionally, you may want to check if your users want to opt-in to iCloud on a per-app basis (according to Apple's documentation, you should only ask the user once to opt-in to iCloud). The Return value could be **NO** (iCloud Unavailable) for one or more of the following reasons:
- - iCloud is turned off by user
- - Entitlements profile, code signing identity, and/or provisioning profile are invalid
-
- This method uses the ubiquityIdentityToken to check if iCloud is available. The delegate method iCloudAvailabilityDidChange(isAvailable: Bool, with ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) can be used to automatically detect changes in the availability of iCloud. A ubiquity token is passed in that method which lets you know if the iCloud account has changed.
-
- - Returns: a boolean value.
- */
- @objc open var cloudAvailable: Bool {
- get {
- guard
- let token: UbiquityIdentityToken = self.fileManager.ubiquityIdentityToken,
- let ubiquityContainer: URL = self.ubiquityContainer
- else {
-
- NSLog(self.verboseAvailabilityLogging ? ( "[iCloud] iCloud is not available. iCloud may be unavailable for a number of reasons:\n• The device has not yet been configured with an iCloud account, or the Documents & Data option is disabled\n• Your app, " + (( Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ) ?? "") + ", does not have properly configured entitlements\nGo to http://bit.ly/18HkxPp for more information on setting up iCloud" ) : "[iCloud] iCloud unavailable" )
-
- DispatchQueue.main.async { self.delegate?.iCloudAvailabilityDidChange(to: false, token: nil, with: self.ubiquityContainer) }
-
- return false
- }
-
- if self.verboseAvailabilityLogging {
- NSLog("[iCloud] iCloud is available. Ubiquity URL: " + ubiquityContainer.path + "\nUbiquity Token: " + token.description)
- }
-
- DispatchQueue.main.async { self.delegate?.iCloudAvailabilityDidChange(to: true, token: token, with: ubiquityContainer) }
-
- return true
- }
- }
-
- /**
- Check that the current application's iCloud Ubiquity Container is available. Returns a boolean value.
-
- This method may not return immediately, depending on a number of factors. It is not necessary to call this method directly, although it may become useful in certain situations.
-
- - Returns: true if ubiquity container is available. Otherwise false.
- */
- open var ubiquityContainerAvailable: Bool {
- get { return self.ubiquityContainer != nil }
- }
-
- open var quickCloudCheck: Bool {
- get { return self.fileManager.ubiquityIdentityToken != nil }
- }
-
- /**
- Return application's local documents directory URL
-
- - Returns: URL with the local documents directory URL for the current app.
- */
-
- open var localDocumentsURL: URL? {
- get {
- if let url = self.fileManager.urls(for: .documentDirectory, in: .userDomainMask).first?.appendingPathComponent("Datas") {
- if !self.fileManager.fileExists(atPath: url.path) {
- try? self.fileManager.createDirectory(at: url, withIntermediateDirectories: true)
- }
- return url
- }
- return nil
- }
- }
-
- /**
- Return application's ubiquitous documents directory URL
-
- - Warning: If iCloud is not properly setup, this method will return the local (non-ubiquitous) documents directory. This may cause other document handling methods to return nil values. Ensure that iCloud is properly setup \b before calling any document handling methods.
-
- - Returns: URL with the iCloud ubiquitous documents directory URL for the current app. Returns the local documents directory if iCloud is not properly setup or available.
- */
- open var cloudDocumentsURL: URL? {
- get {
-
- guard
- let documentsURL: URL = (self.ubiquityContainer ?? FileManager.default.url(forUbiquityContainerIdentifier: nil))?.appendingPathComponent(iCloud.DOCUMENT_DIRECTORY)
- else {
-
- NSLog("[iCloud] iCloud is not available. iCloud may be unavailable for a number of reasons:\n• The device has not yet been configured with an iCloud account, or the Documents & Data option is disabled\n• Your app, does not have properly configured entitlements\nGo to http://bit.ly/18HkxPp for more information on setting up iCloud")
-
- NSLog("[iCloud] WARNING: Using local documents directory until iCloud is available.")
-
- DispatchQueue.main.async { self.delegate?.iCloudAvailabilityDidChange(to: false, token: nil, with: self.ubiquityContainer) }
-
- return self.localDocumentsURL
- }
-
- if
- var isDir: ObjCBool = ObjCBool(false) as ObjCBool?,
- self.fileManager.fileExists(atPath: documentsURL.path, isDirectory: &isDir) {
-
- guard !isDir.boolValue else { return documentsURL }
- try? self.fileManager.removeItem(at: documentsURL)
- }
-
- try? self.fileManager.createDirectory(at: documentsURL, withIntermediateDirectories: true, attributes: nil)
- return self.fileManager.fileExists(atPath: documentsURL.path) ? documentsURL : nil
- }
- }
-
- /* Syncing with iCloud */
-
- /**
- Check for and update the list of files stored in your app's iCloud Documents Folder.
-
- This method is automatically called by iOS when there are changes to files in the iCloud Directory. The iCloudFilesDidChange(files: [NSMetadataItem], with filenames: [String]) delegate method is triggered by this method.
- */
- open func updateFiles() {
-
- self.shouldUpdateFiles = true
- guard !self.isUpdatingFiles else { return }
-
- self.isUpdatingFiles = true
-
- // Log file update
- if self.verboseLogging { NSLog("[iCloud] Beginning file update with NSMetadataQuery") }
-
- func doUpdateFiles() {
-
- self.shouldUpdateFiles = false
- guard self.quickCloudCheck else { return }
-
- var discoveredFiles: [NSMetadataItem] = []
- var names: [String] = []
-
- let results: [UbiquitousMetaDataItem] = self.query.results.compactMap {
- UbiquitousMetaDataItem($0 as! NSMetadataItem)
- }
-
- results.forEach {
-
- if $0.status == .downloaded {
- // File will be updated soon
- } else if $0.status == .current {
- // Append metadata and filenames into arrays
- discoveredFiles.append($0.item)
- names.append($0.name)
- } else if $0.status == .notDownloaded {
-
- var downloading: Bool = true
- do {
- try FileManager.default.startDownloadingUbiquitousItem(at: $0.url)
- } catch {
- downloading = false
- NSLog("[iCloud] Ubiquitous item failed to start downloading with error: " + error.localizedDescription)
- }
-
- if self.verboseLogging { NSLog("[iCloud] " + $0.url.lastPathComponent + " started downloading locally, successfull? " + ( downloading ? "true" : "false")) }
- }
- }
-
- self.previousQueryResults = results
-
- // Notify delegate about results
- DispatchQueue.main.async { self.delegate?.iCloudFilesDidChange(discoveredFiles, with: names) }
-
- }
-
- DispatchQueue.global(qos: .background).async {
-
- while self.shouldUpdateFiles {
- doUpdateFiles()
- }
- self.isUpdatingFiles = false
- }
-
- }
-
- /* Uploading to iCloud */
-
- /**
- Create, save, and close a document in iCloud.
-
- First, iCloud Document Sync checks if the specified document exists. If the document exists it is saved and closed. If the document does not exist, it is created then closed.
-
- iCloud Document Sync uses UIDocument and NSData to store and manage files. All of the heavy lifting with NSData and UIDocument is handled for you. There's no need to actually create or manage any files, just give iCloud Document Sync your data, and the rest is done for you.
-
- To create a new document or save an existing one (close the document), use this method. Documents can be created even if the user is not connected to the internet. The only case in which a document will not be created is when the user has disabled iCloud or if the current application is not setup for iCloud.
-
- - Parameter name: Filename of document being written to iCloud.
- - Parameter content: Data containing file content.
- - Parameter completion: Code block which is called after succesful file saving. Error will be nil if no error was present.
- */
- open func saveAndCloseDocument(_ name: String, with content: Data, completion: ((UIDocument?, Data?, Error?) -> Void)? = nil) {
-
- if self.verboseLogging { NSLog("[iCloud] Beginning document save") }
-
- // Don't Check for iCloud... we need to save the file
- // regardless of being connected so that the saved file
- // can be pushed to the cloud later on.
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(nil, nil, NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- guard let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name) else {
- NSLog("[iCloud] Cannot create URL for file")
- completion?(nil, nil, NSError(domain: "Cannot create URL for file. Check iCloud's cloudDocumentsURL.", code: 001, userInfo: nil) as Error)
- return
- }
-
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
- document.contents = content
- document.updateChangeCount(.done)
-
- if self.fileManager.fileExists(atPath: fileURL.path) {
-
- if self.verboseLogging { NSLog("[iCloud] Document exists; overwriting, saving and closing") }
-
- // Save and create the new document, then close it
- document.save(to: document.fileURL, for: .forOverwriting, completionHandler: {
- success in
-
- if success {
- document.close(completionHandler: {
- closed in
- if closed {
- if self.verboseLogging { NSLog("[iCloud] Written, saved and closed document") }
- completion?(document, document.contents, nil)
- } else {
- NSLog("[iCloud] Error while saving document: @saveAndCloseDocument")
- completion?(document, document.contents, NSError(domain: "saveAndCloseDocument: error while saving document " + document.fileURL.path + " to iCloud", code: 110, userInfo: ["fileURL": fileURL]) as Error)
- }
- })
- } else {
- NSLog("[iCloud] Error while writing to the document: @saveAndCloseDocument")
- completion?(document, document.contents, NSError(domain: "saveAndCloseDocument: error while writing to the document " + document.fileURL.path + " at iCloud", code: 100, userInfo: ["fileURL": fileURL]) as Error)
- }
- })
- } else {
-
- if self.verboseLogging { NSLog("[iCloud] Document is new; creating, saving and then closing") }
-
- document.save(to: document.fileURL, for: .forCreating, completionHandler: {
- success in
- if success {
- document.close(completionHandler: {
- closed in
- if closed {
- // Log the save and close
- if self.verboseLogging { NSLog("[iCloud] New document created, saved and closed successfully") }
- completion?(document, document.contents, nil)
- } else {
- NSLog("[iCloud] Error while saving and closing document: @saveAndCloseDocument")
- completion?(document, document.contents, NSError(domain: "saveAndCloseDocument: error while saving document " + document.fileURL.path + " to iCloud", code: 110, userInfo: ["fileURL": fileURL]) as Error)
- }
- })
- } else {
- NSLog("[iCloud] Error while creating the document: @saveAndCloseDocument")
- completion?(document, document.contents, NSError(domain: "saveAndCloseDocument: error while creating the document " + document.fileURL.path + " in iCloud", code: 100, userInfo: ["fileURL": fileURL]) as Error)
- }
- })
- }
- }
-
- func isDirectory(at url: URL) -> Bool {
- var isDir: ObjCBool = false
- let exists = FileManager.default.fileExists(atPath: url.path, isDirectory: &isDir)
- return exists && isDir.boolValue
- }
-
- func getAllFileRelativePaths(documentUrl: URL, filePath: String) -> [String] {
- var results: [String] = []
- if let enumerator = FileManager.default.enumerator(at: documentUrl.appendingPathComponent(filePath), includingPropertiesForKeys: [.isRegularFileKey], options: [], errorHandler: nil) {
- for case let fileURL as URL in enumerator {
- let resourceValues = try? fileURL.resourceValues(forKeys: [.isRegularFileKey])
- if resourceValues?.isRegularFile == true {
- var path: String
- if documentUrl.path.starts(with: "/private") {
- path = fileURL.path.replacingOccurrences(of: documentUrl.path + "/", with: "")
- } else {
- path = fileURL.path.replacingOccurrences(of: "/private", with: "").replacingOccurrences(of: documentUrl.path + "/", with: "")
- }
- results.append(path)
- }
- }
- }
- return results
- }
-
- open func uploadLocalOfflineDocuments(repeatingHandler: ((String?, Error?) -> Void)? = nil, completion: (() -> Void)? = nil) {
-
- // Log upload
- if self.verboseLogging { NSLog("[iCloud] Beginning local file upload to iCloud. This process may take a long time.") }
-
- guard
- self.quickCloudCheck,
- let localDocuments: URL = self.localDocumentsURL,
- var localFiles: [String] = try? self.fileManager.contentsOfDirectory(atPath: localDocuments.path)
- else { return }
-
- var newLocalFiles = [String]()
- for localFile in localFiles {
- let localFileUrl = localDocuments.appendingPathComponent(localFile)
- if isDirectory(at: localFileUrl) {
- //文件夹
- newLocalFiles.append(contentsOf: getAllFileRelativePaths(documentUrl: localDocuments, filePath: localFile))
- } else {
- //文件
- newLocalFiles.append(localFile)
- }
- }
- localFiles = newLocalFiles
-
- DispatchQueue.global(qos: .background).async {
-
- if self.verboseLogging { NSLog("[iCloud] Files stored locally available for uploading: ", localFiles) }
-
- for item in localFiles {
-
- guard !item.hasPrefix(".") else {
- DispatchQueue.main.async {
- repeatingHandler?(item, NSError(domain: "File in directory is hidden and will not be uploaded to iCloud.", code: 520, userInfo: ["Filename": item]) as Error)
- }
- continue
- }
-
- let cloudURL: URL = self.cloudDocumentsURL!.appendingPathComponent(item)
- let localURL: URL = localDocuments.appendingPathComponent(item)
-
- guard (self.previousQueryResults.map{ $0.name }).contains(item) else {
- if self.verboseLogging { NSLog("[iCloud] Uploading " + item + " to iCloud") }
-
- // Move file to iCloud
- var err: Error? = nil
-
- do {
- let cloudParentUrl = cloudURL.deletingLastPathComponent()
- if !self.fileManager.fileExists(atPath: cloudParentUrl.path) {
- try self.fileManager.createDirectory(at: cloudParentUrl, withIntermediateDirectories: true)
- }
- try self.fileManager.setUbiquitous(true, itemAt: localURL, destinationURL: cloudURL)
- } catch {
- err = error
- NSLog("[iCloud] Error while uploading document from local directory: " + error.localizedDescription)
- }
-
- DispatchQueue.main.async {
- repeatingHandler?(item, err)
- }
- continue
- }
-
- // Log conflict
- if self.verboseLogging { NSLog("[iCloud] Conflict between local file and remote file, attempting to automatically resolve") }
-
- let document: iCloudDocument = iCloudDocument(fileURL: cloudURL)
-
- if
- let cloud_modDate: Date = document.fileModificationDate,
- let fileAttrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: localURL.path),
- let local_modDate: Date = fileAttrs[FileAttributeKey.modificationDate] as? Date,
- let local_fileData: Data = self.fileManager.contents(atPath: localURL.path) {
-
- if cloud_modDate.compare(local_modDate) == .orderedDescending {
-
- NSLog("[iCloud] The iCloud file was modified more recently than the local file. The local file will be deleted and the iCloud file will be preserved.")
-
- do {
- try self.fileManager.removeItem(at: localURL)
- } catch {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + error.localizedDescription);
- }
- } else if cloud_modDate.compare(local_modDate) == .orderedAscending {
-
- NSLog("[iCloud] The local file was modified more recently than the iCloud file. The iCloud file will be overwritten with the contents of the local file.")
-
- // Replace iCloud document's content
- document.contents = local_fileData
-
- DispatchQueue.main.async {
- // Save and close the document in iCloud
- document.save(to: document.fileURL, for: .forOverwriting, completionHandler: {
- success in
- if success {
- // Close the document
- document.close(completionHandler: {
- closed in
- repeatingHandler?(item, nil)
- })
- } else {
- NSLog("[iCloud] Error while overwriting old iCloud file: @uploadLocalOfflineDocuments")
- repeatingHandler?(item, NSError(domain: "uploadLocalOfflineDocuments: error while saving the document " + document.fileURL.path + " to iCloud", code: 110, userInfo: ["Filename": item]) as Error)
- }
- })
- }
- } else { // Modification date is same for both, local and cloud file
-
- NSLog("[iCloud] The local file and iCloud file have the same modification date. Before overwriting or deleting, we will check if both files have the same content.")
-
- if self.fileManager.contentsEqual(atPath: cloudURL.path, andPath: localURL.path) {
-
- NSLog("[iCloud] The contents of local file and remote file match. The local file will be deleted.")
-
- do {
- try self.fileManager.removeItem(at: localURL)
- } catch {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + error.localizedDescription);
- }
- } else { // Local and remote file did not match with equal contents.
-
- NSLog("[iCloud] Both the iCloud file and the local file were last modified at the same time, however their contents do not match. You'll need to handle the conflict using the iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
- DispatchQueue.main.async {
- self.delegate?.iCloudFileConflictBetweenCloudFile([
- "fileContents": document.contents,
- "fileURL": cloudURL,
- "modifiedDate": cloud_modDate
- ], with: [
- "fileContents": local_fileData,
- "fileURL": localURL,
- "modifiedDate": local_modDate
- ])
- }
- }
- }
- } else {
-
- NSLog("[iCloud] Failed to retrieve information about either or both, local and remote file. You will need to handle the conflict using iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
- DispatchQueue.main.async {
- self.delegate?.iCloudFileConflictBetweenCloudFile([
- "fileURL": cloudURL
- ], with: [
- "fileURL": localURL
- ])
- }
- }
- }
-
- // Log completion
- if self.verboseLogging { NSLog("[iCloud] Finished uploading all local files to iCloud") }
-
- DispatchQueue.main.async { completion?() }
- }
- }
-
- open func uploadLocalDocumentToCloud(_ name: String, completion: ((Error?) -> Void)? = nil ) {
-
- // Log download
- if self.verboseLogging { NSLog("[iCloud] Attempting to upload document: " + name) }
-
- guard
- self.quickCloudCheck,
- let localDocuments: URL = self.localDocumentsURL,
- let localURL: URL = localDocuments.appendingPathComponent(name) as URL?,
- let cloudURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- // Perform tasks on background thread to avoid problems on the main / UI thread
- DispatchQueue.global(qos: .background).async {
-
- // If the file does not exist in iCloud, upload it
- if (self.previousQueryResults.map{ $0.name }).contains(name) {
-
- if self.verboseLogging { NSLog("[iCloud] Uploading " + name + " to iCloud") }
-
- var err: Error? = nil
- // Move the file to iCloud
- do {
- try self.fileManager.setUbiquitous(true, itemAt: localURL, destinationURL: cloudURL)
- } catch {
- NSLog("[iCloud] Error while uploading document from local directory: " + error.localizedDescription);
- err = error
- }
-
- DispatchQueue.main.async { completion?(err) }
-
- } else {
-
- // Check if the local document is newer than the cloud document
-
- // Log conflict
- if self.verboseLogging { NSLog("[iCloud] Conflict between local file and remote file, attempting to automatically resolve") }
-
- let document: iCloudDocument = iCloudDocument(fileURL: cloudURL)
-
- if
- let cloud_modDate: Date = document.fileModificationDate,
- let fileAttrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: localURL.path),
- let local_modDate: Date = fileAttrs[FileAttributeKey.modificationDate] as? Date,
- let local_fileData: Data = self.fileManager.contents(atPath: localURL.path) {
-
- if cloud_modDate.compare(local_modDate) == .orderedDescending {
- NSLog("[iCloud] The iCloud file was modified more recently than the local file. The local file will be deleted and the iCloud file will be preserved.")
-
- do {
- try self.fileManager.removeItem(at: localURL)
- } catch {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + error.localizedDescription);
- }
- } else if cloud_modDate.compare(local_modDate) == .orderedAscending {
-
- NSLog("[iCloud] The local file was modified more recently than the iCloud file. The iCloud file will be overwritten with the contents of the local file.")
-
- // Replace iCloud document's content
- document.contents = local_fileData
-
- DispatchQueue.main.async {
- // Save and close the document in iCloud
- document.save(to: document.fileURL, for: .forOverwriting, completionHandler: {
- success in
- if success {
- // Close the document
- document.close(completionHandler: {
- closed in
- completion?(nil)
- })
- } else {
- NSLog("[iCloud] Error while overwriting old iCloud file: @uploadLocalDocumentToCloud")
- completion?(NSError(domain: "uploadLocalDocumentToCloud: error while saving the document " + document.fileURL.path + " to iCloud", code: 110, userInfo: ["Filename": name]) as Error)
- }
- })
- }
- } else { // Modification date is same for both, local and cloud file
-
- NSLog("[iCloud] The local file and iCloud file have the same modification date. Before overwriting or deleting, we will check if both files have the same content.")
-
- if self.fileManager.contentsEqual(atPath: cloudURL.path, andPath: localURL.path) {
-
- NSLog("[iCloud] The contents of local file and remote file match. The local file will be deleted.")
-
- do {
- try self.fileManager.removeItem(at: localURL)
- } catch {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + error.localizedDescription);
- }
- } else { // Local and remote file did not match with equal contents.
-
- NSLog("[iCloud] Both the iCloud file and the local file were last modified at the same time, however their contents do not match. You'll need to handle the conflict using the iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
- DispatchQueue.main.async {
- self.delegate?.iCloudFileConflictBetweenCloudFile([
- "fileContents": document.contents,
- "fileURL": cloudURL,
- "modifiedDate": cloud_modDate
- ], with: [
- "fileContents": local_fileData,
- "fileURL": localURL,
- "modifiedDate": local_modDate
- ])
- }
- }
- }
- } else {
-
- NSLog("[iCloud] Failed to retrieve information about either or both, local and remote file. You will need to handle the conflict using iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
- DispatchQueue.main.async {
- self.delegate?.iCloudFileConflictBetweenCloudFile([
- "fileURL": cloudURL
- ], with: [
- "fileURL": localURL
- ])
- }
- }
- }
-
- // Log completion
- if self.verboseLogging { NSLog("[iCloud] Finished uploading local file to iCloud") }
-
- DispatchQueue.main.async { completion?(nil) }
-
- }
- }
-
- /* Sharing iCloud content */
-
- /**
- Share an iCloud document by uploading it to a public URL.
-
- Upload a document stored in iCloud to a public location on the internet for a limited amount of time.
-
- - Parameter name: The name of the iCloud file being uploaded to a public URL.
- - Parameter completion: Code block called after document is uploaded.
-
- - Returns: The public URL where the file is available
- */
- @discardableResult
- open func shareDocument(_ name: String, completion: ((URL?, Date?, Error?) -> Void)? = nil) -> URL? {
-
- if self.verboseLogging { NSLog("[iCloud] Attempting to share document: " + name) }
-
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(nil, nil, NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return nil
- }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- completion?(nil, nil, NSError(domain: "The document, " + name + ", does not exist at path " + fileURL.path, code: 404, userInfo: ["fileURL": fileURL]) as Error)
- return nil
- }
-
- if self.verboseLogging { NSLog("[iCloud] File exists, preparing to share it") }
-
- var resultURL: URL? = nil
-
- // Move to the background thread for safety
- DispatchQueue.global(qos: .background).async {
-
- var date: NSDate? = nil
- var err: Error? = nil
-
- do { // Create URL
- resultURL = try self.fileManager.url(forPublishingUbiquitousItemAt: fileURL, expiration: &date)
- } catch {
- resultURL = nil
- err = error
- }
-
- // Log share
- if self.verboseLogging { NSLog("[iCloud] Shared iCloud document") }
-
- DispatchQueue.main.async { completion?(resultURL, date == nil ? nil : Date(timeIntervalSinceReferenceDate: date!.timeIntervalSinceReferenceDate), err) }
- }
-
- return resultURL
- }
-
- /* Deleting iCloud content */
-
- /**
- Delete a document from iCloud.
-
- Permanently delete a document stored in iCloud. This will only affect copies of the specified file stored in iCloud, if there is a copy stored locally it will not be affected.
-
- - Parameter name: The name of the document to delete from iCloud.
- - Parameter completion: called when a file is successfully deleted from iCloud. Error object contains any error information if an error occurred, otherwise it will be nil.
- */
- open func deleteDocument(_ name: String, completion: ((Error?) -> Void)? = nil) {
- // Log delete
- if self.verboseLogging { NSLog("[iCloud] Attempting to delete document: " + name) }
-
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- completion?(NSError(domain: "The document, " + name + ", does not exist at path " + fileURL.path, code: 404, userInfo: ["fileURL": fileURL]) as Error)
- return
- }
-
- func finish() {
- completion?(nil)
- }
-
- if self.verboseLogging { NSLog("[iCloud] File exists, attempting to delete it") }
-
- let successfulSecurityScopedResourceAccess = fileURL.startAccessingSecurityScopedResource()
-
- // Use a file coordinator to safely delete the file
- let fileCoordinator: NSFileCoordinator = NSFileCoordinator(filePresenter: nil)
- let writingIntent: NSFileAccessIntent = NSFileAccessIntent.writingIntent(with: fileURL, options: .forDeleting)
- let backgroundQueue: OperationQueue = OperationQueue()
- fileCoordinator.coordinate(with: [writingIntent], queue: backgroundQueue, byAccessor: {
- accessError in
-
- if accessError != nil {
- NSLog("[iCloud] Access error occurred while deleting document: " + accessError!.localizedDescription)
- completion?(accessError)
- } else {
-
- var success: Bool = true
- var _error: Error? = nil
-
- do {
- try self.fileManager.removeItem(at: writingIntent.url)
- } catch {
- success = false
- NSLog("[iCloud] An error occurred while deleting document: " + error.localizedDescription)
- _error = error
- DispatchQueue.main.async { completion?(error) }
- }
-
- if successfulSecurityScopedResourceAccess {
- fileURL.stopAccessingSecurityScopedResource()
- }
-
- DispatchQueue.main.async {
- if success {
- self.updateFiles()
- }
- completion?(_error)
- }
- }
- })
- }
-
- /**
- Evict a document from iCloud, move it from iCloud to the current application's local documents directory.
-
- Remove a document from iCloud storage and move it into the local document's directory. This method may call the iCloudFileConflictBetweenCloudFile(cloudFile: [String: Any]?, with localFile: [String: Any]?) iCloud Delegate method if there is a file conflict.
- */
- open func evictCloudDocument(_ name: String, completion: ((Error?) -> Void)? = nil) {
- // Log delete
- if self.verboseLogging { NSLog("[iCloud] Attempting to evict iCloud document: " + name) }
-
- guard
- self.quickCloudCheck,
- let localDocuments: URL = self.localDocumentsURL,
- let localURL: URL = localDocuments.appendingPathComponent(name) as URL?,
- let cloudURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- // Move to the background thread for safety
- DispatchQueue.global(qos: .background).async {
-
- if (self.previousQueryResults.map{ $0.name }).contains(name) {
-
- // Log conflict
- if self.verboseLogging { NSLog("[iCloud] Conflict between local file and remote file, attempting to automatically resolve") }
-
- // Create UIDocument object from URL
- let document: iCloudDocument = iCloudDocument(fileURL: cloudURL)
-
- if
- let cloud_modDate: Date = document.fileModificationDate,
- let fileAttrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: localURL.path),
- let local_modDate: Date = fileAttrs[FileAttributeKey.modificationDate] as? Date,
- let local_fileData: Data = self.fileManager.contents(atPath: localURL.path) {
-
- if local_modDate.compare(cloud_modDate) == .orderedDescending {
-
- NSLog("[iCloud] The local file was modified more recently than the iCloud file. The iCloud file will be deleted and the local file will be preserved.")
-
- self.deleteDocument(name, completion: {
- err in
- if err != nil {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + err!.localizedDescription)
- }
- DispatchQueue.main.async { completion?(err) }
- })
-
- } else if local_modDate.compare(cloud_modDate) == .orderedAscending {
-
- NSLog("[iCloud] The iCloud file was modified more recently than the local file. The local file will be overwritten with the contents of the iCloud file.")
-
- var err: Error? = nil
-
- do {
- try document.contents.write(to: localURL, options: Data.WritingOptions.atomicWrite)
- } catch {
- NSLog("[iCloud] Failed to overwrite file at URL: " + localURL.path)
- err = error
- }
-
- DispatchQueue.main.async { completion?(err) }
-
- } else { // Same
-
- NSLog("[iCloud] The local file and iCloud file have the same modification date. Before overwriting or deleting, we will check if both files have the same content.")
-
- if self.fileManager.contentsEqual(atPath: cloudURL.path, andPath: localURL.path) {
-
- NSLog("[iCloud] The contents of local file and remote file match. Remote file will be deleted.")
-
- self.deleteDocument(name, completion: {
- err in
- if err != nil {
- NSLog("[iCloud] Error deleting " + localURL.path + ".\n\n" + err!.localizedDescription)
- }
- DispatchQueue.main.async { completion?(err) }
- })
-
- return
-
- } else { // Local and remote file did not match with equal contents.
-
- NSLog("[iCloud] Both the iCloud file and the local file were last modified at the same time, however their contents do not match. You'll need to handle the conflict using the iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
- DispatchQueue.main.async {
- self.delegate?.iCloudFileConflictBetweenCloudFileWhenEvict([
- "fileContents": document.contents,
- "fileURL": cloudURL,
- "modifiedDate": cloud_modDate
- ], with: [
- "fileContents": local_fileData,
- "fileURL": localURL,
- "modifiedDate": local_modDate
- ])
- }
- }
- }
-
- } else {
-
- NSLog("[iCloud] Failed to retrieve information about either or both, local and remote file. You will need to handle the conflict using iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) delegate method.")
-
-// DispatchQueue.main.async {
-// self.delegate?.iCloudFileConflictBetweenCloudFileWhenEvict([
-// "fileURL": cloudURL
-// ], with: [
-// "fileURL": localURL
-// ])
-// }
-
- //强制恢复吧
- var err: Error? = nil
-
- do {
- try self.fileManager.setUbiquitous(false, itemAt: cloudURL, destinationURL: localURL)
- } catch {
- err = error
- }
-
- DispatchQueue.main.async { completion?(err) }
- }
-
- } else {
-
- var err: Error? = nil
-
- do {
- try self.fileManager.setUbiquitous(false, itemAt: cloudURL, destinationURL: localURL)
- } catch {
- err = error
- }
-
- DispatchQueue.main.async { completion?(err) }
- }
-
- }
-
- }
-
- /* Retrieving iCloud Content and info */
-
- /**
- Open a UIDocument stored in iCloud. If the document does not exist, a new blank document will be created using the documentName provided. You can use the doesFileExistInCloud: method to check if a file exists before calling this method.
-
- This method will attempt to open the specified document. If the file does not exist, a blank one will be created. The completion handler is called when the file is opened or created (either successfully or not). The completion handler contains a UIDocument, Data, and Error all of which contain information about the opened document.
-
- - Parameter name: The name of the document in iCloud.
- - Parameter completion: Called when the document is successfully retrieved (opened or downloaded). The completion block passes UIDocument and Data objects containing the opened document and it's contents in the form of Data. If there is an error, the Error object will have an error message (may be nil if there is no error). This value must not be nil.
- */
-
- open func retrieveCloudDocument(_ name: String, completion: ((UIDocument?, Data?, Error?) -> Void)!) {
- // Log retrieval
-
- if self.verboseLogging { NSLog("[iCloud] Retrieving iCloud document: " + name) }
-
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion(nil, nil, NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- // If file exists, open it - otherwise, create it
- if self.fileManager.fileExists(atPath: fileURL.path) {
- // Log open
- if self.verboseLogging { NSLog("[iCloud] The document, " + name + ", already exists and will be opened") }
-
- // Create the UIDocument object from the URL
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
-
- if document.documentState == .closed {
- if self.verboseLogging { NSLog("[iCloud] Document is closed and will be opened") }
-
- document.open(completionHandler: {
- success in
- if success { // Log open
- if self.verboseLogging { NSLog("[iCloud] Opened document") }
-
- // Pass data on to the completion handler
- DispatchQueue.main.async { completion(document, document.contents, nil) }
- return
- } else {
- NSLog("[iCloud] Error while retrieving document: @retrieveCloudDocument")
- // Pass data on to the completion handler
- DispatchQueue.main.async {
- completion(document, document.contents, NSError(domain: "retrieveCloudDocument: error while retrieving document, " + document.fileURL.path + " from iCloud", code: 200, userInfo: ["fileURL": fileURL]) as Error)
- }
- return
- }
- })
- } else if document.documentState == .normal {
-
- // Log open
- if self.verboseLogging { NSLog("[iCloud] Document already opened, retrieving content") }
-
- // Pass data on to the completion handler
- DispatchQueue.main.async { completion(document, document.contents, nil) }
- return
-
- } else if document.documentState == .inConflict {
-
- // Log open
- if self.verboseLogging { NSLog("[iCloud] Document in conflict. The document may not contain correct data. An error will be returned along with the other parameters in the completion handler") }
-
- NSLog("[iCloud] Error while retrieving document, " + name + ", because the document is in conflict")
-
- // Pass data on to the completion handler
- DispatchQueue.main.async { completion(document, document.contents, NSError(domain: "The iCloud document, " + name + ", is in conflict. Please resolve this conflict before editing the document.", code: 200, userInfo: ["fileURL": fileURL]) as Error) }
- return
-
-
- } else if document.documentState == .editingDisabled {
-
- // Log open
- if self.verboseLogging { NSLog("[iCloud] Document editing disabled. The document is not currently editable, use the documentState: method to determine when the document is available again. The document and its contents will still be passed as parameters in the completion handler.") }
-
- // Pass data on to the completion handler
- DispatchQueue.main.async { completion(document, document.contents, nil) }
- return
- }
- } else { // File did not exists, create it
- // Log creation
- if self.verboseLogging { NSLog("[iCloud] The document, " + name + ", does not exist and will be created as an empty document") }
-
- // Create UIDocument
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
- document.contents = Data()
-
- // Save the new document to disk
- document.save(to: fileURL, for: .forCreating, completionHandler: {
- success in
-
- var err: Error? = nil
-
- // Log saving
- if self.verboseLogging { NSLog("[iCloud] Saved and opened the document: " + name) }
-
- if !success {
- NSLog("[iCloud] Failure when saving document " + name + " to iCloud: @retrieveCloudDocument")
- err = NSError(domain: "retrieveCloudDocument: error while saving the document " + document.fileURL.path + " to iCloud", code: 110, userInfo: ["Filename": name]) as Error
- }
-
- DispatchQueue.main.async { completion(document, document.contents, err) }
- })
- }
- }
-
- /**
- Get the relevant iCloudDocument object for the specified file
-
- This method serves a very different purpose from the retrieveCloudDocument(_ name: String, completion: (UIDocument?, Data?, Error?) -> Void) method. Understand the differences between both methods and ensure that you are using the correct one. This method does not open, create, or save any UIDocuments - it simply returns the iCloudDocument object which you can then use for various purposes.
-
- - Parameter name: The name of the document in iCloud.
- */
- open func retrieveCloudDocumentObject(_ name: String) -> iCloudDocument? {
-
- // Log retrieval
- if self.verboseLogging { NSLog("[iCloud] Retrieving iCloud document: " + name) }
-
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- return nil
- }
-
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
-
- // If file exists, open it - otherwise, create it
- if self.fileManager.fileExists(atPath: fileURL.path), self.verboseLogging { NSLog("[iCloud] The document, " + name + ", already exists and will be returned as iCloudDocument object")
- } else if self.verboseLogging {
- NSLog("[iCloud] The document, " + name + ", does not exist but will be returned as an empty iCloudDocument object")
- }
-
- return document
- }
-
- /**
- Check if a file exists in iCloud
-
- - Parameter name: The name of the document in iCloud.
-
- - Returns: Boolean value. True if the file does exist in iCloud, false if it does not. May return false also if iCloud is unavailable.
- */
- open func fileExistInCloud(_ name: String) -> Bool {
- // Check for iCloud
- guard
- self.quickCloudCheck,
- !name.isEmpty,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return false }
-
- return self.fileManager.fileExists(atPath: fileURL.path)
- }
-
- /**
- Returns a Boolean indicating whether the item is targeted for storage in iCloud.
-
- This method reflects only whether the item should be stored in iCloud because a call was made to the setUbiquitous(_:itemAt:destinationURL:) method with a value of true for its flag parameter. This method does not reflect whether the file has actually been uploaded to any iCloud servers. To determine a file’s upload status, check the NSURLUbiquitousItemIsUploadedKey attribute of the corresponding NSURL object.
-
- - Parameter name: Specify the name for the file or directory whose status you want to check.
-
- - Returns: true if the item is targeted for iCloud storage or false if it is not. This method also returns false if no item exists at url or iCloud is not available.
- */
- open func isUbiquitousItem(_ name: String) -> Bool {
- // Check for iCloud
- guard
- self.quickCloudCheck,
- !name.isEmpty,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return false }
-
- return self.fileManager.isUbiquitousItem(at: fileURL)
- }
-
- /**
- Get the size of a file stored in iCloud
-
- - Parameter name: name of file in iCloud.
-
- - Returns: The number of bytes in an unsigned long long. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.
- */
-
- open func fileSize(_ name: String) -> NSNumber? {
- // Check for iCloud
- guard
- self.quickCloudCheck,
- !name.isEmpty,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- // Check if file exists, and return it's size
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return nil
- }
-
- guard
- let attrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: fileURL.path),
- let size: NSNumber = attrs[FileAttributeKey.size] as? NSNumber
- else { return nil }
-
- return size
- }
-
- /**
- Get the last modified date of a file stored in iCloud
-
- - Parameter name: name of file in iCloud.
-
- - Returns: The date that the file was last modified. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.
- */
- open func fileModified(_ name: String) -> Date? {
- // Check for iCloud
- guard
- self.quickCloudCheck,
- !name.isEmpty,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- // Check if file exists, and return it's modification date
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return nil
- }
-
- guard
- let attrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: fileURL.path),
- let date: Date = attrs[FileAttributeKey.modificationDate] as? Date
- else { return nil }
-
- return date
- }
-
- /**
- Get the creation date of a file stored in iCloud
-
- - Parameter name: name of file in iCloud.
-
- - Returns: The date that the file was created. Returns nil if the file does not exist. May return a nil value if iCloud is unavailable.
- */
- open func fileCreated(_ name: String) -> Date? {
- // Check for iCloud
- guard
- self.quickCloudCheck,
- !name.isEmpty,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- // Check if file exists, and return it's creation date
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return nil
- }
-
- guard
- let attrs: [FileAttributeKey: Any] = try? self.fileManager.attributesOfItem(atPath: fileURL.path),
- let date: Date = attrs[FileAttributeKey.creationDate] as? Date
- else { return nil }
-
- return date
- }
-
- /**
- Get a list of files stored in iCloud
-
- - Returns: String array with a list of all the files currently stored in your app's iCloud Documents directory. May return a nil value if iCloud is unavailable.
- */
- open var listCloudFiles: [URL]? {
- get {
- if self.verboseLogging { NSLog("[iCloud] Getting list of iCloud documents") }
-
- guard
- self.quickCloudCheck,
- let documentURL: URL = self.cloudDocumentsURL,
- let documentDirectoryContents: [URL] = try? self.fileManager.contentsOfDirectory(at: documentURL, includingPropertiesForKeys: nil, options: [])
- else { return nil }
-
- if self.verboseLogging { NSLog("[iCloud] Retrieved list of iCloud documents") }
-
- return documentDirectoryContents
- }
- }
-
- open var listCloudFileNames: [String]? {
- get {
- if let urls = listCloudFiles, let cloudUrl = self.cloudDocumentsURL {
- var results = [String]()
- for url in urls {
- if isDirectory(at: url) {
- //文件夹
- results.append(contentsOf: getAllFileRelativePaths(documentUrl: cloudUrl, filePath: url.lastPathComponent))
- } else {
- //文件
- results.append(url.path.replacingOccurrences(of: cloudUrl.path + "/", with: ""))
- }
- }
- if results.count > 0 {
- return results
- }
- }
- return nil
- }
- }
-
- /* iCloud content managing */
-
- /**
- Rename a document in iCloud
-
- - Parameter name: name of file in iCloud to be renamed.
- - Parameter newName: The new name which the document should be renamed with. The file specified should not exist, otherwise an error will occur. This value must not be empty.
- - Parameter completion: Code block called when the document renaming has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.
- */
- open func renameDocument(_ name: String, with newName: String, completion: ((Error?) -> Void)? = nil) {
-
- // Log rename
- if self.verboseLogging { NSLog("[iCloud] Attempting to rename document, " + name + ", to the new name " + newName) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name),
- let newFileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(newName)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- completion?(NSError(domain: "The document, " + name + ", does not exist at path " + fileURL.path, code: 404, userInfo: ["fileURL": fileURL]) as Error)
- return
- }
-
- guard !self.fileManager.fileExists(atPath: newFileURL.path) else {
- NSLog("[iCloud] Rename failed. File already exists at: " + newFileURL.path)
- completion?(NSError(domain: "The document, " + newName + ", already exist at path " + newFileURL.path, code: 404, userInfo: ["fileURL": newFileURL]) as Error)
- return
- }
-
- // Log rename
- if self.verboseLogging { NSLog("[iCloud] Renaming Files") }
-
- DispatchQueue.global(qos: .background).async {
-
- var coordinatorError: NSError? = nil
- var _coordinatorError: NSError? {
- get { return coordinatorError }
- }
-
- let fileCoordinator: NSFileCoordinator = NSFileCoordinator(filePresenter: nil)
- fileCoordinator.coordinate(writingItemAt: fileURL, options: .forMoving, writingItemAt: newFileURL, options: .forReplacing, error: &coordinatorError, byAccessor: {
- url1, url2 in
-
- var err: Error? = nil
-
- do {
- try self.fileManager.moveItem(at: fileURL, to: newFileURL)
- } catch {
- NSLog("[iCloud] Failed to rename file, " + name + ", to new name: " + newName + ". Error: " + error.localizedDescription);
- err = error
- }
-
- if err == nil, _coordinatorError == nil {
- // Log success
- if self.verboseLogging { NSLog("[iCloud] Renamed Files") }
-
- DispatchQueue.main.async { completion?(nil) }
- return
- } else if err != nil {
- // Log failure
- NSLog("[iCloud] Failed to rename file, " + name + ", to new name: " + newName + ". Error: " + err!.localizedDescription)
-
- DispatchQueue.main.async { completion?(err) }
- return
- } else if _coordinatorError != nil {
- // Log failure
- NSLog("[iCloud] Failed to rename file, " + name + ", to new name: " + newName + ". Error: " + (_coordinatorError! as Error).localizedDescription)
-
- DispatchQueue.main.async { completion?(_coordinatorError! as Error) }
- return
- }
- })
- }
- }
-
- /**
- Duplicate a document in iCloud
-
- - Parameter name: name of file in iCloud to be renamed.
- - Parameter newName: The new name which the document should be duplicated to. The file specified should not exist, otherwise an error will occur. This value must not be empty.
- - Parameter completion: Code block called when the document duplication has completed. The completion block passes and NSError object which contains any error information if an error occurred, otherwise it will be nil.
- */
- open func duplicateDocument(_ name: String, with newName: String, completion: ((Error?) -> Void)? = nil) {
- // Log duplication
- if self.verboseLogging { NSLog("[iCloud] Attempting to duplicate document, " + name + ", to " + newName) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name),
- let newFileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(newName)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion?(NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- completion?(NSError(domain: "The document, " + name + ", does not exist at path " + fileURL.path, code: 404, userInfo: ["fileURL": fileURL]) as Error)
- return
- }
-
- guard !self.fileManager.fileExists(atPath: newFileURL.path) else {
- NSLog("[iCloud] Duplication failed. Target file already exists at: " + newFileURL.path)
- completion?(NSError(domain: "The document, " + newName + ", already exist at path " + newFileURL.path, code: 404, userInfo: ["fileURL": newFileURL]) as Error)
- return
- }
-
- // Log success of existence and duplication
- if self.verboseLogging {
- NSLog("[iCloud] Files passed existence check, preparing to duplicate")
- NSLog("[iCloud] Duplicating Files")
- }
-
- DispatchQueue.global(qos: .background).async {
-
- var err: Error? = nil
-
- do {
- try self.fileManager.copyItem(at: fileURL, to: newFileURL)
- } catch {
- NSLog("[iCloud] Failed to duplicate file, " + name + ", with new name: " + newName + ". Error: " + error.localizedDescription)
- err = error
- }
-
- DispatchQueue.main.async { completion?(err) }
- }
- }
-
- /* iCloud Document State */
-
- /**
- Get the current document state of a file stored in iCloud
-
- - Parameter name: The name of the file in iCloud. This value must not be nil.
- - Parameter completion: Completion handler that passes three parameters, an NSError, NSString and a UIDocumentState. The documentState parameter represents the document state that the specified file is currently in (may be nil if the file does not exist). The userReadableDocumentState parameter is an NSString which succinctly describes the current document state; if the file does not exist, a non-scary error will be displayed. The NSError parameter will contain a 404 error if the file does not exist.
- */
- open func documentState(_ name: String, completion: ((UIDocument.State?, String?, Error?) -> Void)!) {
-
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- completion(nil, nil, NSError(domain: "The specified document name was empty / blank and could not be saved. Specify a document name next time.", code: 001, userInfo: nil) as Error)
- return
- }
-
- if self.fileManager.fileExists(atPath: fileURL.path) {
- // Create the document
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
- let state: UIDocument.State = document.documentState
- let description: String = document.stateDescription
- completion(state, description, nil)
- } else { // The document didn't exist
- NSLog("[iCloud] File not found: " + name)
-
- completion(nil, nil, NSError(domain: "The document, " + name + ", does not exist at path: " + self.cloudDocumentsURL!.path, code: 404, userInfo: ["fileURL": fileURL]) as Error)
- }
- }
-
- /**
- Observe changes in the state of a document stored in iCloud
-
- - Parameter name: The name of the file in iCloud. This value must not be nil.
- - Parameter observer: Object registering as an observer. This value must not be nil.
- - Parameter selector: Selector to be called when the document state changes. Must only have one argument, an instance of NSNotifcation whose object is an iCloudDocument (UIDocument subclass). This value must not be nil.
-
- - Returns: true if observing was succesfully setup, otherwise false.
- */
-
- @discardableResult
- open func observeDocumentState(_ name: String, observer: Any, selector: Selector) -> Bool {
-
- // Log observing
- if self.verboseLogging { NSLog("[iCloud] Preparing to observe changes to " + name) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return false }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- return false
- }
-
- // Log monitoring
- if self.verboseLogging { NSLog("[iCloud] Checking for existance of " + name) }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return false
- }
-
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
-
- self.notificationCenter.addObserver(observer, selector: selector, name: UIDocument.stateChangedNotification, object: document)
-
- // Log monitoring success
- if self.verboseLogging { NSLog("[iCloud] Observing for changes to " + name) }
- return true
- }
-
- /**
- Stop observing changes to the state of a document stored in iCloud
-
- - Parameter name: The name of the file in iCloud. This value must not be nil.
- - Parameter observer: Object registered as an observer. This value must not be nil.
-
- - Returns: true if observing was succesfully ended, otherwise false.
- */
-
- @discardableResult
- open func removeDocumentStateObserver(_ name: String, observer: Any) -> Bool {
-
- // Log observing
- if self.verboseLogging { NSLog("[iCloud] Preparing to stop observing changes to " + name) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return false }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- return false
- }
-
- // Log monitoring
- if self.verboseLogging { NSLog("[iCloud] Checking for existance of " + name) }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return false
- }
-
- let document: iCloudDocument = iCloudDocument(fileURL: fileURL)
-
- self.notificationCenter.removeObserver(observer, name: UIDocument.stateChangedNotification, object: document)
-
- // Log monitoring success
- if self.verboseLogging { NSLog("[iCloud] Stopped observing for changes to " + name) }
- return true
- }
-
- /**
- Observe changes in the state of iCloud availability
-
- - Parameter observer: Object registering as an observer. This value must not be nil.
- - Parameter selector: Selector to be called when state changes. Must only have one argument, an instance of NSNotifcation whose object is an bool. This value must not be nil.
-
- - Returns: nothing.
- */
-
- open func observeCloudState(_ observer: Any, selector: Selector) {
-
- self.notificationCenter.addObserver(observer, selector: selector, name: NSNotification.Name.NSUbiquityIdentityDidChange, object: self.cloudAvailable)
-
- // Log monitoring success
- if self.verboseLogging { NSLog("[iCloud] Observing for changes to iCloud availability") }
- }
-
- /**
- Stop observing changes to state of iCloud availability
-
- - Parameter observer: Object registered as an observer. This value must not be nil.
-
- - Returns: nothing.
- */
-
- open func removeCloudStateObserver(observer: Any) {
-
- self.notificationCenter.removeObserver(observer, name: NSNotification.Name.NSUbiquityIdentityDidChange, object: self.cloudAvailable)
-
- // Log monitoring success
- if self.verboseLogging { NSLog("[iCloud] Stopped observing for changes to iCloud availability") }
- }
-
- /* Resolving iCloud Conflicts */
-
- /**
- Find all the conflicting versions of a specified document
-
- - Parameter name: The name of the file in iCloud. This value must not be nil.
-
- - Returns: Array of NSFileVersion objects, or nil if no such version object exists.
- */
- open func findUnresolvedConflictingVersionsOfFile(_ name: String) -> [NSFileVersion]? {
-
- // Log conflict search
- if self.verboseLogging { NSLog("[iCloud] Preparing to find all version conflicts for " + name) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return nil }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- return nil
- }
-
- // Log conflict search
- if self.verboseLogging { NSLog("[iCloud] Checking for existance of " + name) }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return nil
- }
-
- // Log conflict search
- if self.verboseLogging { NSLog("[iCloud] " + name + " exists at the correct path, proceeding to find conflicts") }
-
- var fileVersions: [NSFileVersion] = []
-
- if let currentVersion: NSFileVersion = NSFileVersion.currentVersionOfItem(at: fileURL) {
- fileVersions.append(currentVersion)
- }
-
- if let otherVersions: [NSFileVersion] = NSFileVersion.otherVersionsOfItem(at: fileURL) {
- fileVersions.append(contentsOf: otherVersions)
- }
-
- return fileVersions
- }
-
- /**
- Resolve a document conflict for a file stored in iCloud
-
- Your application can follow one of three strategies for resolving document-version conflicts:
-
- * Merge the changes from the conflicting versions.
- * Choose one of the document versions based on some pertinent factor, such as the version with the latest modification date.
- * Enable the user to view conflicting versions of a document and select the one to use.
-
- - Parameter name: The name of the file in iCloud. This value must not be nil.
- - Parameter documentVersion: The version of the document which should be kept and saved. All other conflicting versions will be removed.
- */
- open func resolveConflictForFile(_ name: String, with documentVersion: NSFileVersion) {
-
- if self.verboseLogging { NSLog("[iCloud] Preparing to resolve version conflict for " + name) }
-
- // Check for iCloud
- guard
- self.quickCloudCheck,
- let fileURL: URL = self.cloudDocumentsURL?.appendingPathComponent(name)
- else { return }
-
- guard !name.isEmpty else {
- NSLog("[iCloud] Specified document name must not be empty")
- return
- }
-
- // Log resolution
- if self.verboseLogging { NSLog("[iCloud] Checking for existance of " + name) }
-
- guard self.fileManager.fileExists(atPath: fileURL.path) else {
- NSLog("[iCloud] File not found: " + name)
- return
- }
-
- // Log resolution
- if self.verboseLogging { NSLog("[iCloud] " + name + " exists at the correct path, proceeding to resolve conflict") }
-
- // Force the current version to win comparison in conflict
- if documentVersion != NSFileVersion.currentVersionOfItem(at: fileURL) {
- // Log resolution
-
- if self.verboseLogging { NSLog("iCloud] The current version (" + documentVersion.description + ") of " + name + " matches the selected version. Resolving conflict...") }
-
- let _ = try? documentVersion.replaceItem(at: fileURL, options: [])
- }
-
- try? NSFileVersion.removeOtherVersionsOfItem(at: fileURL)
-
- // Log resolution
- if self.verboseLogging { NSLog("[iCloud] Removing all unresolved other versions of " + name) }
-
- if let conflictVersions: [NSFileVersion] = NSFileVersion.unresolvedConflictVersionsOfItem(at: fileURL) {
- for fileVersion in conflictVersions {
- fileVersion.isResolved = true
- }
- }
-
- // Log resolution
- if self.verboseLogging { NSLog("[iCloud] Finished resolving conflicts for " + name) }
- }
-
-}
diff --git a/iCloudSync/iCloudSync/iCloudCommon.swift b/iCloudSync/iCloudSync/iCloudCommon.swift
deleted file mode 100644
index 4b155e9a..00000000
--- a/iCloudSync/iCloudSync/iCloudCommon.swift
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// iCloudCommon.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-public typealias UbiquityIdentityToken = (NSCoding & NSCopying & NSObjectProtocol)
-
-public struct UbiquitousMetaDataItem {
- public var item: NSMetadataItem
- public var url: URL
- public var name: String
- public var status: URLUbiquitousItemDownloadingStatus
-
- public init?(_ item: NSMetadataItem) {
- guard
- let _url: URL = item.value(forAttribute: NSMetadataItemURLKey) as? URL,
- let _name: String = item.value(forAttribute: NSMetadataItemFSNameKey) as? String,
- let _values: URLResourceValues = try? _url.resourceValues(forKeys: [
- .ubiquitousItemDownloadingStatusKey
- ]),
- let _status: URLUbiquitousItemDownloadingStatus = _values.allValues[.ubiquitousItemDownloadingStatusKey] as? URLUbiquitousItemDownloadingStatus
- else { return nil }
- self.item = item
- self.url = _url
- self.name = _name
- self.status = _status
- }
-}
diff --git a/iCloudSync/iCloudSync/iCloudDelegate.swift b/iCloudSync/iCloudSync/iCloudDelegate.swift
deleted file mode 100644
index 54daf21e..00000000
--- a/iCloudSync/iCloudSync/iCloudDelegate.swift
+++ /dev/null
@@ -1,94 +0,0 @@
-//
-// iCloudDelegate.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-@objc public protocol abstractiCloudDelegate {
- /**
- Called before creating a iCloud Query filter. Specify the type of file to be queried.
-
- If this delegate is not implemented or returns nil, all files stored in the documents directory will be queried.
-
- - returns: String with one file extension formatted like this: "txt"
- */
- @objc optional var iCloudQueryLimitedToFileExtension: [String] { get set }
-}
-
-public protocol iCloudDelegate: abstractiCloudDelegate {
-
- /**
- Called when the availability of iCloud changes
-
- - Parameter isAvailable: Boolean value that is true when iCloud is available. False otherwise.
- - Parameter ubiquityToken: A iCloud ubiquity identity token that represents the current iCloud identity. Can be used to determine if iCloud is available and if the iCloud account has changed (for e.g. user has logged out and again logged in with another account). This object maybe nil if iCloud is not available for any reason.
- - Parameter ubiquityContainer: The root URL path to the current application's ubiquity container. This URL may be nil until the ubiquity container has been initialized.
- */
- func iCloudAvailabilityDidChange(to isAvailable: Bool, token ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?)
-
- /**
- Called when the iCloud initialization process is finished and the iCloud is available
-
- - Parameter ubiquityToken: A iCloud ubiquity identity token that represents current iCloud identity. Can be used to determine if iCloud is available and if the iCloud account has changed ( for e.g. user has logged out and back in with another account ). This object may be nil if iCloud is not available for any reason.
- - Parameter ubiquityContainer: The root URL path to the current application's ubiquity container. This URL may be nil until the ubiquity container is initialized.
- */
- func iCloudDidFinishInitializing(with ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?)
-
- /**
- Called before iCloud query begins.
-
- This may be useful to display interface updates.
- */
- func iCloudFileUpdateDidBegin()
-
- /**
- Called when iCloud query ends.
-
- This may be useful to display interface updates.
- */
- func iCloudFileUpdateDidEnd()
-
- /**
- Tells the delegate that the files in iCloud were modified
-
- - Parameter files: List of the files now in the app's iCloud documents directory - each contains information such as file version, url, localized name, date, etc.
- - Parameter filenames: list of filename's (String) now in the app's iCloud documents directory
- */
- func iCloudFilesDidChange(_ files: [NSMetadataItem], with filenames: [String])
-
- /**
- Sent to the delegate where there is a conflict between a local file and an iCloud file during an upload or download
-
- When both files have the same modification date and file content, iCloud Document Sync will not be able to automatically determine how to handle the conflict. As a result, this delegate method is called to pass the file information to the delegate which should be able to appropriately handle and resolve the conflict. The delegate should, if needed, present the user with a conflict resolution interface. iCloud Document Sync does not need to know the result of the attempted resolution, it will continue to upload all files which are not conflicting.
-
- It is important to note that **this method may be called more than once in a very short period of time** - be prepared to handle the data appropriately.
-
- The delegate is only notified about conflicts during upload and download procedures with iCloud. This method does not monitor for document conflicts between documents which already exist in iCloud. There are other methods provided to you to detect document state and state changes / conflicts.
-
- - Parameter cloudFile: Dictionary with the cloud file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.
- - Parameter localFile: Dictionary with the local file and various other information. This parameter contains the fileContent as NSData, fileURL as NSURL, and modifiedDate as NSDate.
- */
- func iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?)
- func iCloudFileConflictBetweenCloudFileWhenEvict(_ cloudFile: [String: Any]?, with localFile: [String: Any]?)
-}
-
-public extension iCloudDelegate {
-
- func iCloudAvailabilityDidChange(to isAvailable: Bool, token ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) { }
-
- func iCloudDidFinishInitializing(with ubiquityToken: UbiquityIdentityToken?, with ubiquityContainer: URL?) { }
-
- func iCloudFileUpdateDidBegin() { }
-
- func iCloudFileUpdateDidEnd() { }
-
- func iCloudFilesDidChange(_ files: [NSMetadataItem], with filenames: [String]) { }
-
- func iCloudFileConflictBetweenCloudFile(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) { }
-
- func iCloudFileConflictBetweenCloudFileWhenEvict(_ cloudFile: [String: Any]?, with localFile: [String: Any]?) { }
-}
diff --git a/iCloudSync/iCloudSync/iCloudDocument.swift b/iCloudSync/iCloudSync/iCloudDocument.swift
deleted file mode 100644
index 7b3e30a0..00000000
--- a/iCloudSync/iCloudSync/iCloudDocument.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-//
-// iCloudDocument.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-open class iCloudDocument: UIDocument {
-
- /**
- iCloudDocument Delegate helps call methods when document processes begin or end
- */
- open var delegate: (NSObject & iCloudDocumentDelegate)? = nil
-
- internal var _contents: Data? = nil
-
- /**
- The data to read or write to UIDocument
- */
- open var contents: Data {
- get {
- if self._contents == nil { self.contents = Data() }
- return self._contents!
- }
- set { self._contents = newValue }
- }
-
- /**
- Retrieve the localized name of the current document
-
- - Returns: Name of document including file extension
- */
- open override var localizedName: String {
- get { return self.fileURL.lastPathComponent }
- }
-
- /**
- Retrieve a user-readable form of the document state
-
- - Returns: Current state of the document as a user-readable string
- */
- open var stateDescription: String {
- get {
- switch self.documentState {
- case .closed: return "Document is closed"
- case .inConflict: return "Document is in conflict"
- case .savingError: return "Document has error while saving"
- case .editingDisabled: return "Document editing has been disabled"
- default: return "Document state is normal"
- }
- }
- }
-
- /**
- Initialize a new UIDocument with the specified file path
-
- - Parameter fileURL: The path to the UIDocument file
-
- - Returns: UIDocument at specified URL
- */
- public override init(fileURL: URL) {
- self._contents = Data()
- super.init(fileURL: fileURL)
- }
-
- open override func contents(forType typeName: String) throws -> Any {
- return self.contents
- }
-
- open override func load(fromContents contents: Any, ofType typeName: String?) throws {
- if let content: Data = contents as? Data, content.count > 0 {
- self._contents = content
- } else {
- self._contents = Data()
- }
- }
-
- open override func handleError(_ error: Error, userInteractionPermitted: Bool) {
- super.handleError(error, userInteractionPermitted: userInteractionPermitted)
- NSLog("[iCloudDocument] " + error.localizedDescription)
-
- if self.delegate?.responds(to: #selector(iCloudDocumentDelegate.iCloudDocumentErrorOccurred(_:))) ?? false {
- self.delegate?.iCloudDocumentErrorOccurred(error)
- }
- }
-
-}
diff --git a/iCloudSync/iCloudSync/iCloudDocumentDelegate.swift b/iCloudSync/iCloudSync/iCloudDocumentDelegate.swift
deleted file mode 100644
index 518d1b4f..00000000
--- a/iCloudSync/iCloudSync/iCloudDocumentDelegate.swift
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// iCloudDocumentDelegate.swift
-// iCloud
-//
-// Created by Oskari Rauta on 25/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-import Foundation
-
-@objc public protocol iCloudDocumentDelegate {
-
- /**
- Delegate method fired when an error occurs during an attempt to read, save, or revert a document.
-
- - Parameter error: The error that occured during an attempt to read, save, or revert a document.
- */
- @objc func iCloudDocumentErrorOccurred(_ error: Error)
-
-}
diff --git a/iCloudSync/iCloudSync/iCloudSync.h b/iCloudSync/iCloudSync/iCloudSync.h
deleted file mode 100644
index fe0ad77a..00000000
--- a/iCloudSync/iCloudSync/iCloudSync.h
+++ /dev/null
@@ -1,19 +0,0 @@
-//
-// iCloudSync.h
-// iCloudSync
-//
-// Created by Oskari Rauta on 24/12/2018.
-// Copyright © 2018 Oskari Rauta. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-//! Project version number for iCloud.
-FOUNDATION_EXPORT double iCloudSyncVersionNumber;
-
-//! Project version string for iCloud.
-FOUNDATION_EXPORT const unsigned char iCloudSyncVersionString[];
-
-// In this header, you should import all the public headers of your framework using statements like #import <iCloudSync/PublicHeader.h>
-
-