Skip to content

Commit

Permalink
Merge pull request #36 from frontegg/release/next
Browse files Browse the repository at this point in the history
v1.2.8
  • Loading branch information
frontegg-david authored Jan 30, 2024
2 parents 2e38679 + db53eb4 commit b7974f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion FronteggSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FronteggSwift'
s.version = '1.2.7'
s.version = '1.2.8'
s.summary = 'A swift library for easy integrating iOS application with Frontegg Services'
s.description = 'Frontegg is an end-to-end user management platform for B2B SaaS, powering strategies from PLG to enterprise readiness. Easy migration, no credit card required'
s.homepage = 'https://github.com/frontegg/frontegg-ios-swift'
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,21 @@ your root project directory, this file will store values to be used variables by
// to navigate your application to the authenticated screen

let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)

// TODO: Set Storyboard ID 'authenticatedScreen' for your authenticated screen
let viewController = mainStoryboard.instantiateViewController(withIdentifier: "authenticatedScreen")
self.view.window?.rootViewController = viewController
self.view.window?.makeKeyAndVisible()
}

}
```
- Create new ViewController and set FronteggController as view custom class from the previous step
![ViewController custom class](./assets/README_custom-class.png)
- Create a new ViewController for AuthenticationController:
1. Change viewController's class to `AuthenticationController`
2. Set Storyboard ID to `fronteggController`
3. Make sure that the view controller is the initial view controller
![AuthenticationController](./assets/README_authentication_controller.png)

- Mark FronteggController as **Storyboard Entry Point**
![ViewController entry point](./assets/README_entry-point.png)

- Setup SceneDelegate for Frontegg universal links:
```swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
Expand Down
Binary file added assets/README_authentication_controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions demo-uikit/demo-uikit/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@
<!--Authentication Controller-->
<scene sceneID="wEe-dg-Fkf">
<objects>
<viewController storyboardIdentifier="fronteggController" id="nxb-iA-gng" customClass="AuthenticationController" customModule="demo_uikit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="W2D-H9-wLn">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="yDd-Gz-bVp"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<viewController storyboardIdentifier="fronteggController" id="nxb-iA-gng" customClass="AuthenticationController" customModule="demo_uikit" customModuleProvider="target" sceneMemberID="viewController"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="YCS-hS-XTC" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-760" y="-23"/>
Expand Down

0 comments on commit b7974f5

Please sign in to comment.