A simple iOS application that displays your WordPress website in a native WebView.
- Full WordPress site display in native iOS app
- Native navigation with back/forward gestures
- Loading indicator
- Error handling
- Support for both portrait and landscape orientations
- Works on both iPhone and iPad
WordPressApp/
├── WordPressApp.xcodeproj/ # Xcode project files
└── WordPressApp/ # Source code
├── WordPressAppApp.swift # App entry point
├── ContentView.swift # Main view
├── WebView.swift # WebView wrapper
├── Config.swift # Configuration (WordPress URL)
├── Info.plist # App configuration
└── Assets.xcassets/ # App assets
Open WordPressApp/WordPressApp/Config.swift and replace the placeholder URL with your WordPress site URL:
static let wordPressURL = "https://your-wordpress-site.com"- Make sure you have Xcode installed (version 15.0 or later recommended)
- Open
WordPressApp.xcodeprojin Xcode - Select your development team in the project settings:
- Select the project in the navigator
- Go to "Signing & Capabilities"
- Select your team from the dropdown
- Select a simulator or your connected iOS device
- Click the Run button (or press Cmd+R)
- The app will build and launch, displaying your WordPress site
- iOS 15.0 or later
- Xcode 15.0 or later
- A valid Apple Developer account (for running on physical devices)
Edit the CFBundleDisplayName in WordPressApp/WordPressApp/Info.plist
- Open the project in Xcode
- Select the project in the navigator
- Under "General" > "Identity", change the "Bundle Identifier"
- Prepare app icons in the required sizes (1024x1024 for App Store)
- Open
Assets.xcassetsin Xcode - Drag your icon images into the AppIcon asset
The app is configured to allow arbitrary loads (NSAllowsArbitraryLoads = true in Info.plist). This allows loading both HTTP and HTTPS content. For production apps, you should:
- Use HTTPS for your WordPress site
- Configure App Transport Security properly
- Remove or restrict
NSAllowsArbitraryLoads
- Verify your WordPress URL is correct in
Config.swift - Check that your site is accessible from a browser
- Ensure you have internet connectivity
- Make sure you have selected a development team
- Clean the build folder (Product > Clean Build Folder)
- Restart Xcode
- You need a valid Apple Developer account to run on physical devices
- Simulators don't require signing
Consider adding these features:
- Pull-to-refresh functionality
- Share button to share content
- Custom navigation controls
- Offline mode with caching
- Push notifications integration
- Custom styling to match your WordPress theme
- Deep linking support
This project is provided as-is for personal or commercial use.