The OldOS是基于SwiftUI 开源的iOS 4主题app,模仿 iOS 4的主要功能和主题,包括拍照、浏览照片、用浏览器访问网页、地图、天气、播放音乐/视频等功能。与目前手机上的数据无缝整合,提供一种活生生的、类似于模拟器的体验。项目遵守CC知识共享协议。
功能包括:
锁屏、解锁
更换壁纸
传统 HOME 返回键
相册
拍照
股票
地图
天气
便签
iTunes
App Store(会跳转回正经 App Store)
游戏中心
联系人
Safari
拨号
iPod
https://github.com/zzanehip/The-OldOS-Project
-----------------------------------------------------------------
Recreating a fully functional version of iOS 4 in SwiftUI.
What and Why?
OldOS is a testament to the days of yesteryear, showcasing what iOS once was ten years ago. The ethos of the app is to merge the technologies of today with a pixel-perfect recreation of the user experience of the past. The vast majority of apps in OldOS are fully functional — meaning they seamlessly integrate with the data on your phone to deliver a live, emulator-esque experience. What does this mean? Well, you can play your music in iPod, get directions in Maps, surf the web in Safari, view the current weather in Weather, and much more. By the same token, no shortcuts were taken in fully fleshing out the operating system. You can change your background, adjust settings, search apps, et cetera. There are a few apps still not ready for primetime but don't worry, they're coming soon.
With OldOS, you no longer need to worry about securing a legacy iPhone to experience nostalgia — it's available on your daily driver.
Part of the goal with OldOS is to enable anyone to understand how iOS works and demonstrate just how powerful SwiftUI truly is. For that reason, the entire app is open-sourced — enabling developers to learn about, modify, and add to the app. I thought building this over my last six or so months in high school and sharing it with the world would be a fun and productive endeavor.
What's Special
* 🧑💻 Built almost entirely using SwiftUI.
* 🎨 Designed to be as close to pixel-perfect as possible.
* 📱 Fully functional, perhaps even usable as a second OS.
* ❤️ A testament to the work of Apple employees of both the past and the present.
* 🗺️ Fully open source for all to learn, modify, and build on.
Where to Beginhttps://github.com/zzanehip/The-OldOS-Project
The project is logically structured in files by app. Inside each app file, you'll see code and commentary behind it. Aside from main apps, there is the Common file. My mindset was to build the app in the same way Apple built interface builder — you have a collection of UI elements at your disposal that are bases. You can then make a copy in whatever other file you'd like if you require custom abilities. If you just need the generic version, you can use the generic. Hence, common, containing all your common UI elements. Lastly, there is HomeScreen, and LockScreen — essentially making up the Springboard. Lastly, in Assets.xcassets, you'll find all the image assets structured by app.
Building on Monterey
For reasons unclear to me, Mac OS Moneterey officially drops support for Xcode 12. However, OldOS, for now, is only supported on Xcode 12. Fortunately for us we can get around this with a few easy steps.
* Step 1: Open a terminal window.
* Step 2: Type in <path to Xcode 12.5>/Contents/MacOS/Xcode and press enter. Xcode 12.5 should launch.
* Step 3: Open OldOS via File->Open->OldOS.
* That's it!