# XCSwiftr
[![Alcatraz compatible](https://img.shields.io/badge/Alcatraz-compatible-4BC51D.svg?style=flat)](http://alcatraz.io/)
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
Convert Objective-C code into Swift from within Xcode.
This plugin uses the Java applet of `objc2swift` to do the conversion.
Noticed that the translation is not always accurate? Does it fail at times? Please consider opening an issue in https://github.com/yahoojapan/objc2swift/issues/new.
## Features
- [Powered by Yahoo Japan's objc2swift project](https://github.com/yahoojapan/objc2swift).
- The plugin is available from the code editor's contextual menu.
- Triggers convertion automatically.
## Missing Features
- Language syntax highlight, hopefully with Xcode's current configured theme
- Auto-convert while typing from the left pane
- Set minimum size for each outlet presented in the modal window
- Test coverage
## How to use
Select any Objective-C snippet you would like to convert and right click on it.
![contextual menu](./Documentation/Screenshots/screenshot_contextual_menu.png)
Click on "Convert to Swift". A modal window will be presented, with the left pane for Objective-C and the left one, for Swift.
![main view](./Documentation/Screenshots/screenshot_main.png)
## Install
Install through [Alcatraz](http://alcatraz.io/), the package manager for Xcode.
Alternatively, clone the project:
1. Build the project to install the plugin. The plugin will be installed in `~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCSwiftr.xcplugin`.
2. Restart Xcode so the plugin bundle is loaded.
## License
(The MIT License)
Copyright (c) 2016 Ignacio Romero Zurbuchen <iromero@dzen.cl>
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.
没有合适的资源?快使用搜索试试~ 我知道了~
一个 XCode 插件,可以将 OC 代码转换成 Swift.zip
共42个文件
ds_store:7个
h:5个
xcscheme:4个
需积分: 50 19 下载量 161 浏览量
2019-09-24
05:24:05
上传
评论 2
收藏 11.11MB ZIP 举报
温馨提示
一个 XCode 插件,可以将 OC 代码转换成 Swift.zip,An Xcode Plugin to convert Objective-C to Swift
资源推荐
资源详情
资源评论
收起资源包目录
XCSwiftr.zip (42个子文件)
XCSwiftr-master
XCSwiftrPlugin
XCSwiftrPlugin.m 7KB
NSObject+Extension.h 260B
Info.plist 2KB
XCSwiftrPlugin.h 287B
README.md 3KB
.gitmodules 216B
XCSwiftrApp
AppDelegate.swift 685B
Base.lproj
MainMenu.xib 23KB
Assets.xcassets
AppIcon.appiconset
Contents.json 903B
Info.plist 1KB
Documentation
Screenshots
screenshot_alcatraz.png 387KB
screenshot_main.png 1.08MB
screenshot_contextual_menu.png 2.02MB
.DS_Store 6KB
Screencasts
.DS_Store 6KB
LICENSE 1KB
XCSwiftr
Vendor
objc2swift
src
product
objc2swift-1.0.jar 8.4MB
.DS_Store 6KB
DTXcodeUtils
XcodeHelpers.h 837B
XcodeHelpers.m 4KB
XcodeHeaders.h 2KB
.DS_Store 6KB
XCSwiftr-Bridging-Header.h 197B
Samples
NSObject_Sample.m 3KB
.DS_Store 6KB
Classes
ViewControllers
XCSConverterWindowController.swift 3KB
XCSConverterWindowController.xib 14KB
DataControllers
XCSCommandController.swift 3KB
XCSSnippetManager.swift 2KB
.DS_Store 6KB
XCSwiftr.xcodeproj
project.xcworkspace
contents.xcworkspacedata 153B
xcuserdata
rimonhanna.xcuserdatad
UserInterfaceState.xcuserstate 13KB
iromero.xcuserdatad
UserInterfaceState.xcuserstate 63KB
project.pbxproj 20KB
xcuserdata
rimonhanna.xcuserdatad
xcschemes
XCSwiftrPlugin.xcscheme 3KB
XCSwiftrApp.xcscheme 3KB
xcschememanagement.plist 677B
iromero.xcuserdatad
xcschemes
XCSwiftrPlugin.xcscheme 3KB
XCSwiftrApp.xcscheme 3KB
xcschememanagement.plist 677B
xcdebugger
Breakpoints_v2.xcbkptlist 91B
.DS_Store 6KB
共 42 条
- 1
资源评论
weixin_38743481
- 粉丝: 694
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- docker一键安装包
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 基于matlab实现自适应波束形成RLS及LMS算法仿真源程序1.rar
- 基于matlab实现自己编写的基于卡尔曼滤波的利用加速度传感器的计步器,测试数据是传感器放在腰部和手臂 .rar
- 基于matlab实现阵列信号处理,波束形成.rar
- 111111111111111111
- 基于matlab实现计步器编程;对当前的计步器装置的数值算法模拟 .rar
- Mdb学习查看PW;access;mdb;pw;password;patch
- 基于matlab实现关于语音信号声源定位DOA估计所用的一些传统算法.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功